mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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 <gleb@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5390 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ede46085c2
commit
3003b8bbf9
1 changed files with 5 additions and 0 deletions
|
@ -458,6 +458,11 @@ static void apic_init_ipi(APICState *s)
|
|||
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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue