From patchwork Thu Mar 11 13:39:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [12/13] x86/cpuid: fix CPUID levels Date: Thu, 11 Mar 2010 03:39:06 -0000 From: Andre Przywara X-Patchwork-Id: 47321 Message-Id: <1268314747-11111-13-git-send-email-andre.przywara@amd.com> To: anthony@codemonkey.ws Cc: Andre Przywara , qemu-devel@nongnu.org, aurelien@aurel32.net Bump up the xlevel number for qemu32 to allow parsing of the processor name string for this model. Similiarly the 486 processor should have at least the feature bit leaf enabled. Signed-off-by: Andre Przywara --- target-i386/cpuid.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index e3c36be..076f6cc 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -356,7 +356,7 @@ static x86_def_t builtin_x86_defs[] = { .stepping = 3, .features = PPRO_FEATURES, .ext_features = CPUID_EXT_SSE3 | CPUID_EXT_POPCNT, - .xlevel = 0, + .xlevel = 0x80000004, .model_id = "QEMU Virtual CPU version " QEMU_VERSION, }, { @@ -394,7 +394,7 @@ static x86_def_t builtin_x86_defs[] = { }, { .name = "486", - .level = 0, + .level = 1, .family = 4, .model = 0, .stepping = 0,