Skip to contentSkip to conversation

CPUID xlevel

PATCH New Filip Navara 1 participant 1 message Sep 8, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CPUID xlevel

Fix the reported xlevel for Intel CPU. We support the extended CPUID calls, so report that we support them.

Index: target-i386/helper2.c
===================================================================
RCS file: /sources/qemu/qemu/target-i386/helper2.c,v retrieving revision 1.48

helper2.c +1 -1
diff -u -r1.48 helper2.c
@@ -114,7 +114,7 @@
         env->cpuid_ext_features = CPUID_EXT_SSE3;
         env->cpuid_features |= CPUID_FXSR | CPUID_MMX | CPUID_SSE | CPUID_SSE2 | CPUID_PAE | CPUID_SEP;
         env->cpuid_features |= CPUID_APIC;
-        env->cpuid_xlevel = 0;
+        env->cpuid_xlevel = 0x80000006;
         {
             const char *model_id = "QEMU Virtual CPU version " QEMU_VERSION;
             int c, len, i;