mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-08 22:40:38 +00:00
cpu-exec: remove unnecessary check of cpu->exit_request
The cpu->exit_request check in cpu_loop_exec_tb is unnecessary, because cpu->tcg_exit_req is always set after cpu->exit_request. So let the TB exit and we will pick up the exit request later in cpu_handle_interrupt. Backports commit 55ac0a9bf4e1b1adfc7d73586a7aa085f58c9851 from qemu
This commit is contained in:
parent
33ab5f71c9
commit
11709d0afa
|
@ -390,10 +390,6 @@ static inline void cpu_loop_exec_tb(CPUState *cpu, TranslationBlock *tb,
|
||||||
{
|
{
|
||||||
uintptr_t ret;
|
uintptr_t ret;
|
||||||
|
|
||||||
if (unlikely(cpu->exit_request)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* execute the generated code */
|
/* execute the generated code */
|
||||||
ret = cpu_tb_exec(cpu, tb);
|
ret = cpu_tb_exec(cpu, tb);
|
||||||
tb = (TranslationBlock *)(ret & ~TB_EXIT_MASK);
|
tb = (TranslationBlock *)(ret & ~TB_EXIT_MASK);
|
||||||
|
|
Loading…
Reference in a new issue