]> git.proxmox.com Git - qemu.git/commitdiff
target-i386: Change CPUID model of 486 to 8
authorAndreas Färber <afaerber@suse.de>
Wed, 1 May 2013 15:30:51 +0000 (17:30 +0200)
committerAndreas Färber <afaerber@suse.de>
Mon, 6 May 2013 17:55:18 +0000 (19:55 +0200)
This changes the model number of 486 to 8 (DX4) which matches the
feature set presented, and actually has the CPUID instruction.

This adds a compatibility property, to keep model=0 on pc-*-1.4 and older.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
[AF: Add compat_props entry]
Tested-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
include/hw/i386/pc.h
target-i386/cpu.c

index 41869e56e9daefcf0d8a68d3930aaf1b38cd0228..417afe4ef0a9fa2d0c371a9d6ed4639275a76be8 100644 (file)
@@ -242,6 +242,10 @@ int e820_add_entry(uint64_t, uint64_t, uint32_t);
             .driver   = "pc-sysfw",\
             .property = "rom_only",\
             .value    = stringify(0),\
+        },{\
+            .driver   = "486-" TYPE_X86_CPU,\
+            .property = "model",\
+            .value    = stringify(0),\
         }
 
 #endif
index b43847835b6c8980fe3df4a12ddd26eb003b089d..8e21c94d82521c3f0a80a46d02e926b6bed31a7d 100644 (file)
@@ -588,7 +588,7 @@ static x86_def_t builtin_x86_defs[] = {
         .level = 1,
         .vendor = CPUID_VENDOR_INTEL,
         .family = 4,
-        .model = 0,
+        .model = 8,
         .stepping = 0,
         .features[FEAT_1_EDX] =
             I486_FEATURES,