diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-06-08 15:59:46 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-13 19:18:54 -0500 |
commit | b7ece203b608f903c0326ec8db95022d1d64d902 (patch) | |
tree | c85c59494c019ca2bc47af6518276df29b0ffb92 | |
parent | 583081059f9c29abafda764e6de11f30ac4b26b5 (diff) | |
download | qemu-b7ece203b608f903c0326ec8db95022d1d64d902.tar.gz qemu-b7ece203b608f903c0326ec8db95022d1d64d902.tar.bz2 qemu-b7ece203b608f903c0326ec8db95022d1d64d902.zip |
Apic creation should not depend on pci
It should depend on whether cpu has APIC.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | hw/pc.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -876,16 +876,10 @@ static void pc_init1(ram_addr_t ram_size, fprintf(stderr, "Unable to find x86 CPU definition\n"); exit(1); } - if (i != 0) - env->halted = 1; - if (smp_cpus > 1) { - /* XXX: enable it in all cases */ - env->cpuid_features |= CPUID_APIC; - } - qemu_register_reset(main_cpu_reset, 0, env); - if (pci_enabled) { + if ((env->cpuid_features & CPUID_APIC) || smp_cpus > 1) { apic_init(env); } + qemu_register_reset(main_cpu_reset, 0, env); } vmport_init(); |