OSDN Git Service

kqemu_enabled test
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 3 Sep 2005 21:33:43 +0000 (21:33 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 3 Sep 2005 21:33:43 +0000 (21:33 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1567 c046a42c-6fe2-441c-8c8c-71466251a162

vl.c

diff --git a/vl.c b/vl.c
index ea46bdc..e7cd966 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -876,7 +876,9 @@ static void host_alarm_handler(int host_signum)
         /* stop the cpu because a timer occured */
         cpu_interrupt(global_env, CPU_INTERRUPT_EXIT);
 #ifdef USE_KQEMU
-        kqemu_cpu_interrupt(global_env);
+        if (global_env->kqemu_enabled) {
+            kqemu_cpu_interrupt(global_env);
+        }
 #endif
     }
 }