mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-10 23:45:33 +00:00
arm: early check to see if the address of this block is the until address
This commit is contained in:
parent
d6b9c31dc9
commit
5005b4a6e2
|
@ -11228,6 +11228,13 @@ static inline void gen_intermediate_code_internal(ARMCPU *cpu,
|
|||
|
||||
tcg_clear_temp_count();
|
||||
|
||||
// Unicorn: early check to see if the address of this block is the until address
|
||||
if (tb->pc == env->uc->addr_end) {
|
||||
gen_tb_start(tcg_ctx);
|
||||
gen_exception_insn(dc, 0, EXCP_SWI, 0);
|
||||
goto done_generating;
|
||||
}
|
||||
|
||||
// Unicorn: trace this block on request
|
||||
// Only hook this block if it is not broken from previous translation due to
|
||||
// full translation cache
|
||||
|
|
Loading…
Reference in a new issue