summaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@amd.com>2010-03-11 14:39:06 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-03-13 16:50:54 +0100
commit58012d66dc7323f48e9bad3be6d65a50ed3d76bc (patch)
tree7bd815d50650faf78d69a3a419cc0cc205f65d8d /target-i386
parentd3bf59157c8b7f35935266f145723d9c9585f783 (diff)
downloadqemu-58012d66dc7323f48e9bad3be6d65a50ed3d76bc.tar.gz
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 <andre.przywara@amd.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/cpuid.c4
1 files 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,