Commit 8289336c9867f227c2ae7f037904e83480a476c6

Authored by bellard
1 parent a332e112

kqemu_enabled test


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1567 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 1 deletions
@@ -876,7 +876,9 @@ static void host_alarm_handler(int host_signum) @@ -876,7 +876,9 @@ static void host_alarm_handler(int host_signum)
876 /* stop the cpu because a timer occured */ 876 /* stop the cpu because a timer occured */
877 cpu_interrupt(global_env, CPU_INTERRUPT_EXIT); 877 cpu_interrupt(global_env, CPU_INTERRUPT_EXIT);
878 #ifdef USE_KQEMU 878 #ifdef USE_KQEMU
879 - kqemu_cpu_interrupt(global_env); 879 + if (global_env->kqemu_enabled) {
  880 + kqemu_cpu_interrupt(global_env);
  881 + }
880 #endif 882 #endif
881 } 883 }
882 } 884 }