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:
parent
43db583802
commit
04d5bf3041
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user