summaryrefslogtreecommitdiff
path: root/hw/pc.h
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-06-10 15:40:48 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-13 19:19:22 -0500
commit678e12cc9054e8a9eafc43a5b4b65d335d6651d4 (patch)
treee70fc49775b9312023fec2130c3d9b685016ece1 /hw/pc.h
parentc4f31a0a0c1f44a5253f892fea4e711028021c66 (diff)
Don't use cpu_index as apic_id.
(patch is on top of "Apic creation should not depend on pci" series) Currently cpu_index is used as cpu apic id on x86. This is incorrect since apic ids not have to be continuous (they can also encode cpu hierarchy information). This patch uses cpuid_apic_id for initial apic id value. For now cpuid_apic_id is set to be equal to cpu_index so behaviour is fully backward compatible, but it allows us to add qemu option to provide other values for cpu apic id. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pc.h')
-rw-r--r--hw/pc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pc.h b/hw/pc.h
index acdd7eeddd..0afffa2caa 100644
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -162,4 +162,5 @@ void pci_piix4_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn,
void isa_ne2000_init(int base, qemu_irq irq, NICInfo *nd);
+int cpu_is_bsp(CPUState *env);
#endif