]> git.proxmox.com Git - qemu.git/commitdiff
cpus: Pass CPUState to flush_queued_work()
authorAndreas Färber <afaerber@suse.de>
Thu, 3 May 2012 00:13:22 +0000 (02:13 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 31 Oct 2012 00:02:45 +0000 (01:02 +0100)
CPUArchState is no longer needed there.

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus.c

diff --git a/cpus.c b/cpus.c
index 307c1f286c606d7714e01b55c96ac4ea0182dc31..e40823c6f16634165f4bbc4e5ebcdc35b7e3664f 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -670,9 +670,8 @@ void run_on_cpu(CPUArchState *env, void (*func)(void *data), void *data)
     }
 }
 
-static void flush_queued_work(CPUArchState *env)
+static void flush_queued_work(CPUState *cpu)
 {
-    CPUState *cpu = ENV_GET_CPU(env);
     struct qemu_work_item *wi;
 
     if (cpu->queued_work_first == NULL) {
@@ -697,7 +696,7 @@ static void qemu_wait_io_event_common(CPUArchState *env)
         cpu->stopped = true;
         qemu_cond_signal(&qemu_pause_cond);
     }
-    flush_queued_work(env);
+    flush_queued_work(cpu);
     cpu->thread_kicked = false;
 }