Skip to contentSkip to conversation

[5390] Reset CPU on INIT IPI

Qemu-devel Aurelien Jarno 1 participant 1 message Oct 1, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5390

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5390
Author:   aurel32
Date:     2008-10-01 22:01:28 +0000 (Wed, 01 Oct 2008)

Log Message:
-----------
Reset CPU on INIT IPI

INIT IPI should reset CPU. Also non boot CPU should be halted. It will be un-halted by SIPI.

Modified Paths:
--------------
trunk/hw/apic.c

Modified: trunk/hw/apic.c
===================================================================

hw/apic.c +5 -0
@@ -458,6 +458,11 @@
     s->initial_count = 0;
     s->initial_count_load_time = 0;
     s->next_time = 0;
+
+    cpu_reset(s->cpu_env);
+
+    if (!(s->apicbase & MSR_IA32_APICBASE_BSP))
+        s->cpu_env->halted = 1;
 }
 
 /* send a SIPI message to the CPU to start it */