mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-03 16:11:12 +00:00
arm: properly handle the case when first insn in block is until address
This commit is contained in:
parent
4a42041a83
commit
3ca8774f1a
|
@ -11234,7 +11234,7 @@ static inline void gen_intermediate_code_internal(ARMCPU *cpu,
|
||||||
// imitate WFI instruction to halt emulation
|
// imitate WFI instruction to halt emulation
|
||||||
gen_tb_start(tcg_ctx);
|
gen_tb_start(tcg_ctx);
|
||||||
dc->is_jmp = DISAS_WFI;
|
dc->is_jmp = DISAS_WFI;
|
||||||
goto done_generating;
|
goto tb_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unicorn: trace this block on request
|
// Unicorn: trace this block on request
|
||||||
|
@ -11417,6 +11417,8 @@ static inline void gen_intermediate_code_internal(ARMCPU *cpu,
|
||||||
block_full = true;
|
block_full = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tb_end:
|
||||||
|
|
||||||
/* At this stage dc->condjmp will only be set when the skipped
|
/* At this stage dc->condjmp will only be set when the skipped
|
||||||
instruction was a conditional branch or trap, and the PC has
|
instruction was a conditional branch or trap, and the PC has
|
||||||
already been written. */
|
already been written. */
|
||||||
|
|
Loading…
Reference in a new issue