qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] icount: remove useless exit_request assignment


From: Pavel Dovgalyuk
Subject: [Qemu-devel] [PATCH] icount: remove useless exit_request assignment
Date: Tue, 7 Feb 2017 09:54:57 +0300

This patch removes unneeded assignment to cpu->exit_request.
cpu_exec_nocache executes all available instructions and therefore
icount becomes 0. Then other conditions will break the execution
loop, making assignment to cpu->exit_request useless.

This patch should be applied over Paolo's series:
https://www.mail-archive.com/address@hidden/msg426058.html

Signed-off-by: Pavel Dovgalyuk <address@hidden>
---
 cpu-exec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/cpu-exec.c b/cpu-exec.c
index 5cef8bc..91d1faf 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -577,7 +577,6 @@ static inline void cpu_loop_exec_tb(CPUState *cpu, 
TranslationBlock *tb,
         if (insns_left > 0) {
             cpu_exec_nocache(cpu, insns_left, tb, false);
         }
-        atomic_set(&cpu->exit_request, 1);
     }
 }
 
-- 
2.8.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]