aboutsummaryrefslogtreecommitdiff
path: root/hw/apic.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-03 16:38:34 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-03 16:38:34 +0000
commiteae7629bfdb25f5d89444fcae532b13e78c6d608 (patch)
tree1f9e9ac1db142372ab148abb772794b5e7a6ace4 /hw/apic.c
parentaf655b6d827d7e56b945032adbb6359cfe58dbad (diff)
downloadqemu-eae7629bfdb25f5d89444fcae532b13e78c6d608.zip
qemu-eae7629bfdb25f5d89444fcae532b13e78c6d608.tar.gz
qemu-eae7629bfdb25f5d89444fcae532b13e78c6d608.tar.bz2
i386 return APIC ID with cpuid, by Bernhard Kauer.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2591 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/apic.c')
-rw-r--r--hw/apic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/apic.c b/hw/apic.c
index 8c97761..f964360 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -816,6 +816,7 @@ int apic_init(CPUState *env)
env->apic_state = s;
apic_init_ipi(s);
s->id = last_apic_id++;
+ env->cpuid_apic_id = s->id;
s->cpu_env = env;
s->apicbase = 0xfee00000 |
(s->id ? 0 : MSR_IA32_APICBASE_BSP) | MSR_IA32_APICBASE_ENABLE;