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:
Paolo Bonzini 2018-03-02 11:21:22 -05:00 committed by Lioncash
parent 33ab5f71c9
commit 11709d0afa
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

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