mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/sparc: Fix do_dc
Apply DFPREG to compute the register number. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -4253,6 +4253,7 @@ static bool do_dc(DisasContext *dc, int rd, int64_t c)
|
||||
return true;
|
||||
}
|
||||
|
||||
rd = DFPREG(rd);
|
||||
tcg_gen_movi_i64(cpu_fpr[rd / 2], c);
|
||||
gen_update_fprs_dirty(dc, rd);
|
||||
return advance_pc(dc);
|
||||
|
||||
Reference in New Issue
Block a user