From 58012d66dc7323f48e9bad3be6d65a50ed3d76bc 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 b949e6044b..4b6bdabecb 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,