CPUID Fn8000_0001.EAX is family/model/stepping, not features
authorAndre Przywara <andre.przywara@amd.com>
Wed, 24 Jun 2009 22:08:01 +0000 (00:08 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Jun 2009 18:52:11 +0000 (13:52 -0500)
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

target-i386/helper.c

index d7563f7..d4498e5 100644 (file)
@@ -1651,7 +1651,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count,
         *ecx = env->cpuid_vendor3;
         break;
     case 0x80000001:
-        *eax = env->cpuid_features;
+        *eax = env->cpuid_version;
         *ebx = 0;
         *ecx = env->cpuid_ext3_features;
         *edx = env->cpuid_ext2_features;