mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-13 09:55:36 +00:00
target-sparc: fix immediate UA2005 traps
Backports commit 5c65df364af0a2cc60af318e5a3011ae5fce293a from qemu
This commit is contained in:
parent
2f2bde32bf
commit
f07be0ac3f
|
@ -3500,7 +3500,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn, bool hook_ins
|
|||
|
||||
rs1 = GET_FIELD_SP(insn, 14, 18);
|
||||
if (IS_IMM) {
|
||||
rs2 = GET_FIELD_SP(insn, 0, 6);
|
||||
rs2 = GET_FIELD_SP(insn, 0, 7);
|
||||
if (rs1 == 0) {
|
||||
tcg_gen_movi_i32(tcg_ctx, trap, (rs2 & mask) + TT_TRAP);
|
||||
/* Signal that the trap value is fully constant. */
|
||||
|
|
Loading…
Reference in a new issue