VirtualBox

Changeset 70399 in vbox for trunk/src/VBox/VMM/VMMR3/cpus


Ignore:
Timestamp:
Jan 1, 2018 12:31:26 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120004
Message:

VMM: Hacked up a 486 CPU profile.

Location:
trunk/src/VBox/VMM/VMMR3/cpus
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/cpus/Intel_80386.h

    r69111 r70399  
    2424 * Fake CPUID leaves for Intel(R) 80386.
    2525 *
    26  * We fake these to keep the CPUM ignorant of CPUs wihtout CPUID leaves
     26 * We fake these to keep the CPUM ignorant of CPUs withou CPUID leaves
    2727 * and avoid having to seed CPUM::GuestFeatures filling with bits from the
    2828 * CPUMDBENTRY.
  • trunk/src/VBox/VMM/VMMR3/cpus/Intel_80486.h

    r70393 r70399  
    11/* $Id$ */
    22/** @file
    3  * CPU database entry "Intel 80386".
     3 * CPU database entry "Intel 80486".
    44 * Handcrafted.
    55 */
     
    1717 */
    1818
    19 #ifndef VBOX_CPUDB_Intel_80386
    20 #define VBOX_CPUDB_Intel_80386
     19#ifndef VBOX_CPUDB_Intel_80486
     20#define VBOX_CPUDB_Intel_80486
    2121
    2222#ifndef CPUM_DB_STANDALONE
    2323/**
    24  * Fake CPUID leaves for Intel(R) 80386.
     24 * Fake CPUID leaves for Intel(R) 80486(DX2).
    2525 *
    26  * We fake these to keep the CPUM ignorant of CPUs wihtout CPUID leaves
    27  * and avoid having to seed CPUM::GuestFeatures filling with bits from the
    28  * CPUMDBENTRY.
     26 * The extended leaves are fake to make CPUM happy.
    2927 */
    30 static CPUMCPUIDLEAF const g_aCpuIdLeaves_Intel_80386[] =
     28static CPUMCPUIDLEAF const g_aCpuIdLeaves_Intel_80486[] =
    3129{
    3230    { 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x756e6547, 0x6c65746e, 0x49656e69, 0 },
    33     { 0x00000001, 0x00000000, 0x00000000, 0x00000300, 0x00000100, 0x00000000, 0x00000000, 0 },
     31    { 0x00000001, 0x00000000, 0x00000000, 0x00000430, 0x00000100, 0x00000000, 0x00000111, 0 },
    3432    { 0x80000000, 0x00000000, 0x00000000, 0x80000008, 0x00000000, 0x00000000, 0x00000000, 0 },
    3533    { 0x80000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0 },
    36     { 0x80000002, 0x00000000, 0x00000000, 0x65746e49, 0x2952286c, 0x33303820, 0x20203638, 0 },
    37     { 0x80000003, 0x00000000, 0x00000000, 0x20202020, 0x20202020, 0x20202020, 0x20202020, 0 },
     34    { 0x80000002, 0x00000000, 0x00000000, 0x65746e49, 0x2952286c, 0x34303820, 0x58443638, 0 },
     35    { 0x80000003, 0x00000000, 0x00000000, 0x20202032, 0x20202020, 0x20202020, 0x20202020, 0 },
    3836    { 0x80000004, 0x00000000, 0x00000000, 0x20202020, 0x20202020, 0x20202020, 0x20202020, 0 },
    3937    { 0x80000005, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0 },
    4038    { 0x80000006, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0 },
    4139    { 0x80000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0 },
    42     { 0x80000008, 0x00000000, 0x00000000, 0x00001818, 0x00000000, 0x00000000, 0x00000000, 0 },
     40    { 0x80000008, 0x00000000, 0x00000000, 0x00002020, 0x00000000, 0x00000000, 0x00000000, 0 },
    4341};
    4442#endif /* !CPUM_DB_STANDALONE */
    4543
    4644/**
    47  * Database entry for Intel(R) 80386.
     45 * Database entry for Intel(R) 80486.
    4846 */
    49 static CPUMDBENTRY const g_Entry_Intel_80386 =
     47static CPUMDBENTRY const g_Entry_Intel_80486 =
    5048{
    51     /*.pszName          = */ "Intel 80386",
    52     /*.pszFullName      = */ "Intel(R) 80386",
     49    /*.pszName          = */ "Intel 80486",
     50    /*.pszFullName      = */ "Intel(R) 80486DX2",
    5351    /*.enmVendor        = */ CPUMCPUVENDOR_INTEL,
    54     /*.uFamily          = */ 3,
    55     /*.uModel           = */ 0,
     52    /*.uFamily          = */ 4,
     53    /*.uModel           = */ 3,
    5654    /*.uStepping        = */ 0,
    57     /*.enmMicroarch     = */ kCpumMicroarch_Intel_80386,
     55    /*.enmMicroarch     = */ kCpumMicroarch_Intel_80486,
    5856    /*.uScalableBusFreq = */ CPUM_SBUSFREQ_UNKNOWN,
    59     /*.fFlags           = */ CPUDB_F_EXECUTE_ALL_IN_IEM,
    60     /*.cMaxPhysAddrWidth= */ 24,
     57    /*.fFlags           = */ 0,
     58    /*.cMaxPhysAddrWidth= */ 32,
    6159    /*.fMxCsrMask       = */ 0,
    62     /*.paCpuIdLeaves    = */ NULL_ALONE(g_aCpuIdLeaves_Intel_80386),
    63     /*.cCpuIdLeaves     = */ ZERO_ALONE(RT_ELEMENTS(g_aCpuIdLeaves_Intel_80386)),
     60    /*.paCpuIdLeaves    = */ NULL_ALONE(g_aCpuIdLeaves_Intel_80486),
     61    /*.cCpuIdLeaves     = */ ZERO_ALONE(RT_ELEMENTS(g_aCpuIdLeaves_Intel_80486)),
    6462    /*.enmUnknownCpuId  = */ CPUMUNKNOWNCPUID_DEFAULTS,
    6563    /*.DefUnknownCpuId  = */ { 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
     
    6967};
    7068
    71 #endif /* !VBOX_CPUDB_Intel_80386 */
     69#endif /* !VBOX_CPUDB_Intel_80486 */
    7270
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette