From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDFEK-0002Kf-I0 for qemu-devel@nongnu.org; Sun, 07 Jun 2009 06:03:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDFEE-0002F1-5e for qemu-devel@nongnu.org; Sun, 07 Jun 2009 06:03:54 -0400 Received: from [199.232.76.173] (port=50779 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDFEE-0002Eq-03 for qemu-devel@nongnu.org; Sun, 07 Jun 2009 06:03:50 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35459) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDFED-0007Xp-Aj for qemu-devel@nongnu.org; Sun, 07 Jun 2009 06:03:49 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n57A3mVS011510 for ; Sun, 7 Jun 2009 06:03:48 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n57A3l1H021306 for ; Sun, 7 Jun 2009 06:03:47 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n57A3ks5023141 for ; Sun, 7 Jun 2009 06:03:47 -0400 Date: Sun, 7 Jun 2009 13:03:46 +0300 From: Gleb Natapov Message-ID: <20090607100346.GB29048@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] apic creation should not depend on pci List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anybody knows why it currently does? Signed-off-by: Gleb Natapov diff --git a/hw/pc.c b/hw/pc.c index 0934778..15c3efe 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -881,11 +881,9 @@ static void pc_init1(ram_addr_t ram_size, 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) { apic_init(env); } + qemu_register_reset(main_cpu_reset, 0, env); } vmport_init(); -- Gleb.