From 17c0513bce18a50ce6a6f73a32f00e7b2d4e9850 Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Thu, 11 Mar 2010 14:39:06 +0100 Subject: [PATCH] x86/cpuid: fix CPUID levels 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 Signed-off-by: Aurelien Jarno --- target-i386/cpuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index b949e60..4b6bdab 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -357,7 +357,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, }, { @@ -381,7 +381,7 @@ static x86_def_t builtin_x86_defs[] = { }, { .name = "486", - .level = 0, + .level = 1, .family = 4, .model = 0, .stepping = 0, -- 2.7.4