Skip to content

Commit

Permalink
cpu-exec: remove unnecessary check of cpu->exit_request
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Feb 24, 2017
1 parent cfb2d02 commit 55ac0a9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cpu-exec.c
Expand Up @@ -535,10 +535,6 @@ static inline void cpu_loop_exec_tb(CPUState *cpu, TranslationBlock *tb,
uintptr_t ret;
int32_t insns_left;

if (unlikely(atomic_read(&cpu->exit_request))) {
return;
}

trace_exec_tb(tb, tb->pc);
ret = cpu_tb_exec(cpu, tb);
tb = (TranslationBlock *)(ret & ~TB_EXIT_MASK);
Expand Down

0 comments on commit 55ac0a9

Please sign in to comment.