]> Git Repo - qemu.git/blobdiff - cpus.c
target-arm/arm-powerctl: wake up sleeping CPUs
[qemu.git] / cpus.c
diff --git a/cpus.c b/cpus.c
index 31204bb4b3dd3ecd750af00a50fb4a0e1cea4092..5324ba3ae0fbfebd157bec2eb1f6bdda438c7b75 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -1207,17 +1207,17 @@ void qemu_mutex_unlock_iothread(void)
     qemu_mutex_unlock(&qemu_global_mutex);
 }
 
-static int all_vcpus_paused(void)
+static bool all_vcpus_paused(void)
 {
     CPUState *cpu;
 
     CPU_FOREACH(cpu) {
         if (!cpu->stopped) {
-            return 0;
+            return false;
         }
     }
 
-    return 1;
+    return true;
 }
 
 void pause_all_vcpus(void)
@@ -1497,6 +1497,8 @@ static void tcg_exec_all(void)
             if (r == EXCP_DEBUG) {
                 cpu_handle_guest_debug(cpu);
                 break;
+            } else if (r == EXCP_ATOMIC) {
+                cpu_exec_step_atomic(cpu);
             }
         } else if (cpu->stop || cpu->stopped) {
             if (cpu->unplug) {
This page took 0.023502 seconds and 4 git commands to generate.