mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 19:18:06 +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
1 changed files with 0 additions and 4 deletions
|
@ -390,10 +390,6 @@ static inline void cpu_loop_exec_tb(CPUState *cpu, TranslationBlock *tb,
|
|||
{
|
||||
uintptr_t ret;
|
||||
|
||||
if (unlikely(cpu->exit_request)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* execute the generated code */
|
||||
ret = cpu_tb_exec(cpu, tb);
|
||||
tb = (TranslationBlock *)(ret & ~TB_EXIT_MASK);
|
||||
|
|
Loading…
Reference in a new issue