arm: early check to see if the address of this block is the until address

This commit is contained in:
Nguyen Anh Quynh 2015-09-17 09:16:57 +07:00
parent d6b9c31dc9
commit 5005b4a6e2

View file

@ -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