mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 23:37:01 +00:00
target/arm/translate: Subtract PC value properly for thumb tracecode calls
This commit is contained in:
parent
b9d1002609
commit
5d6ddec7fb
|
@ -12614,11 +12614,11 @@ static void disas_thumb_insn(DisasContext *s, uint32_t insn)
|
||||||
case 0xe800:
|
case 0xe800:
|
||||||
case 0xf000:
|
case 0xf000:
|
||||||
case 0xf800:
|
case 0xf800:
|
||||||
gen_uc_tracecode(tcg_ctx, 4, UC_HOOK_CODE_IDX, s->uc, s->pc);
|
gen_uc_tracecode(tcg_ctx, 4, UC_HOOK_CODE_IDX, s->uc, s->pc - 4);
|
||||||
break;
|
break;
|
||||||
// Thumb: 16-bit
|
// Thumb: 16-bit
|
||||||
default:
|
default:
|
||||||
gen_uc_tracecode(tcg_ctx, 2, UC_HOOK_CODE_IDX, s->uc, s->pc);
|
gen_uc_tracecode(tcg_ctx, 2, UC_HOOK_CODE_IDX, s->uc, s->pc - 2);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// the callback might want to stop emulation immediately
|
// the callback might want to stop emulation immediately
|
||||||
|
|
Loading…
Reference in a new issue