]> git.proxmox.com Git - mirror_qemu.git/blobdiff - cpus.c
Refactor debug and vmstop request interface
[mirror_qemu.git] / cpus.c
diff --git a/cpus.c b/cpus.c
index ca1f01d9dab4251eb88819384720dcbc83a19874..97a6d4f5b9312aeeb0add92c4ce3b695fecb9fb7 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -168,8 +168,7 @@ static bool all_cpu_threads_idle(void)
 static void cpu_debug_handler(CPUState *env)
 {
     gdb_set_stop_cpu(env);
-    debug_requested = VMSTOP_DEBUG;
-    vm_stop(VMSTOP_DEBUG);
+    qemu_system_debug_request();
 }
 
 #ifdef CONFIG_LINUX
@@ -990,12 +989,6 @@ void qemu_notify_event(void)
     qemu_event_increment();
 }
 
-static void qemu_system_vmstop_request(int reason)
-{
-    vmstop_requested = reason;
-    qemu_notify_event();
-}
-
 void cpu_stop_current(void)
 {
     if (cpu_single_env) {