mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 19:38:16 +00:00
target/i386: optimize cross-page direct jumps in softmmu
Instead of unconditionally exiting to the exec loop, use the gen_jr helper to jump to the target if it is valid. Perf impact: see next commit's log. Backports commit fe62089563ffc6a42f16ff28a6b6be34d2697766 from qemu
This commit is contained in:
parent
baa017d29b
commit
3895eea3b4
1 changed files with 2 additions and 3 deletions
|
@ -2430,9 +2430,8 @@ static inline void gen_goto_tb(DisasContext *s, int tb_num, target_ulong eip)
|
|||
gen_jmp_im(s, eip);
|
||||
tcg_gen_exit_tb(tcg_ctx, (uintptr_t)s->tb + tb_num);
|
||||
} else {
|
||||
/* jump to another page: currently not optimized */
|
||||
gen_jmp_im(s, eip);
|
||||
gen_eob(s);
|
||||
/* jump to another page */
|
||||
gen_jr(s, tcg_ctx->cpu_tmp0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue