qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/2] Apic creation should not depend on pci


From: Gleb Natapov
Subject: [Qemu-devel] [PATCH 1/2] Apic creation should not depend on pci
Date: Tue, 9 Jun 2009 12:10:56 +0300

It should depend on whether cpu has APIC.

Signed-off-by: Gleb Natapov <address@hidden>
---
 hw/pc.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/hw/pc.c b/hw/pc.c
index 0934778..d5b4112 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -878,12 +878,8 @@ static void pc_init1(ram_addr_t ram_size,
         }
         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);
         }
     }
-- 
1.6.2.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]