mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 10:51:06 +00:00
target/mips: use lookup_and_goto_ptr on BS_STOP
The TB after BS_STOP is not fixed (e.g. helper_mtc0_hwrena changes hflags, which ends up changing the TB flags via cpu_get_tb_cpu_state). This requires a full lookup (i.e. with flags) via lookup_and_goto_ptr instead of gen_goto_tb, since the latter only looks at the PC for in-page goto's. Fix it. Backports commit cd314a7d0190a03122ca0606ecf71b4b873a22c6 from qemu.
This commit is contained in:
parent
26dc4a6682
commit
8a416b8146
|
@ -20581,7 +20581,8 @@ void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb)
|
|||
} else {
|
||||
switch (ctx.bstate) {
|
||||
case BS_STOP:
|
||||
gen_goto_tb(&ctx, 0, ctx.pc);
|
||||
gen_save_pc(tcg_ctx, ctx.pc);
|
||||
tcg_gen_lookup_and_goto_ptr(tcg_ctx);
|
||||
env->uc->next_pc = ctx.pc;
|
||||
break;
|
||||
case BS_NONE:
|
||||
|
|
Loading…
Reference in a new issue