[5390] Reset CPU on INIT IPI
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.
Signed-off-by Gleb Natapov <[email protected]>
Signed-off-by Aurelien Jarno <[email protected]>
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 */