Commit b2a856d9 authored by Andreas Färber's avatar Andreas Färber
Browse files

target-i386: Change CPUID model of 486 to 8



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: default avatarH. Peter Anvin <hpa@zytor.com>
[AF: Add compat_props entry]
Tested-by: default avatarEduardo Habkost <ehabkost@redhat.com>
Reviewed-by: default avatarEduardo Habkost <ehabkost@redhat.com>
Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
parent ba2bc7a4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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,