aboutsummaryrefslogtreecommitdiff
path: root/target-i386/helper.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 /target-i386/helper.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 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index ef760ad..4656596 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -1653,7 +1653,7 @@ void helper_cpuid(void)
break;
case 1:
EAX = env->cpuid_version;
- EBX = 8 << 8; /* CLFLUSH size in quad words, Linux wants it. */
+ EBX = (env->cpuid_apic_id << 24) | 8 << 8; /* CLFLUSH size in quad words, Linux wants it. */
ECX = env->cpuid_ext_features;
EDX = env->cpuid_features;
break;