aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-02-07 16:26:47 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2017-02-24 15:51:19 +0100
commit55ac0a9bf4e1b1adfc7d73586a7aa085f58c9851 (patch)
treeaba9cd9ed5a4d8a3ce115a0763563c30e1749382
parentcfb2d02be9413d45b30ed6d8e38800250b6b4b48 (diff)
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. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--cpu-exec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/cpu-exec.c b/cpu-exec.c
index 7ddf66cf23..7db959c821 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -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);