VirtualBox

Changeset 50657 in vbox


Ignore:
Timestamp:
Feb 28, 2014 8:05:08 PM (11 years ago)
Author:
vboxsync
Message:

VBoxCpuReport: Filled in some msrs for sandybridge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/tools/VBoxCpuReport.cpp

    r50653 r50657  
    951951        case 0x00000395: return g_enmMicroarch < kCpumMicroarch_Intel_Core7_SandyBridge ? "I7_UNC_PERF_FIXED_CTR_CTRL" /* X*/ : "I7_UNC_PERF_FIXED_CTR";      /* >= S,H */
    952952        case 0x00000396: return g_enmMicroarch < kCpumMicroarch_Intel_Core7_SandyBridge ? "I7_UNC_ADDR_OPCODE_MATCH" /* X */  : "I7_UNC_CBO_CONFIG";          /* >= S,H */
    953         case 0x00000397: return g_enmMicroarch < kCpumMicroarch_Intel_Core7_IvyBridge   ? NULL                                : "I7_IB_UNK_0000_0397";
     953        case 0x00000397: return g_enmMicroarch < kCpumMicroarch_Intel_Core7_SandyBridge ? NULL                                : "I7_SB_UNK_0000_0397";
    954954        case 0x0000039c: return "I7_SB_MSR_PEBS_NUM_ALT";
    955955        case 0x000003a0: return g_fIntelNetBurst ? "P4_MSR_BSU_ESCR0"   : NULL;
     
    10591059        case 0x00000604: return "I7_IB_UNK_0000_0602";
    10601060        case 0x00000606: return "I7_SB_MSR_RAPL_POWER_UNIT"; /* SandyBridge, IvyBridge. */
     1061        case 0x00000609: return "I7_SB_UNK_0000_0609";  /* SandyBridge (non EP). */
    10611062        case 0x0000060a: return "I7_SB_MSR_PKGC3_IRTL"; /* SandyBridge, IvyBridge. */
    10621063        case 0x0000060b: return "I7_SB_MSR_PKGC6_IRTL"; /* SandyBridge, IvyBridge. */
     
    15821583
    15831584    /*
     1585     * Uncore stuff on Sandy. Putting it here to avoid ugly microarch checks for each register.
     1586     * Note! These are found on model 42 (2a) but not 45 (2d), the latter is the EP variant.
     1587     */
     1588    if (g_enmMicroarch == kCpumMicroarch_Intel_Core7_SandyBridge)
     1589        switch (uMsr)
     1590        {
     1591            case 0x00000700: return "MSR_UNC_CBO_0_PERFEVTSEL0";
     1592            case 0x00000701: return "MSR_UNC_CBO_0_PERFEVTSEL1";
     1593            case 0x00000702: return "MSR_UNC_CBO_0_PERFEVTSEL2?";
     1594            case 0x00000703: return "MSR_UNC_CBO_0_PERFEVTSEL3?";
     1595            case 0x00000704: return "MSR_UNC_CBO_0_UNK_4";
     1596            case 0x00000705: return "MSR_UNC_CBO_0_UNK_5";
     1597            case 0x00000706: return "MSR_UNC_CBO_0_PER_CTR0";
     1598            case 0x00000707: return "MSR_UNC_CBO_0_PER_CTR1";
     1599            case 0x00000708: return "MSR_UNC_CBO_0_PER_CTR2?";
     1600            case 0x00000709: return "MSR_UNC_CBO_0_PER_CTR3?";
     1601            case 0x00000710: return "MSR_UNC_CBO_1_PERFEVTSEL0";
     1602            case 0x00000711: return "MSR_UNC_CBO_1_PERFEVTSEL1";
     1603            case 0x00000712: return "MSR_UNC_CBO_1_PERFEVTSEL2?";
     1604            case 0x00000713: return "MSR_UNC_CBO_1_PERFEVTSEL3?";
     1605            case 0x00000714: return "MSR_UNC_CBO_1_UNK_4";
     1606            case 0x00000715: return "MSR_UNC_CBO_1_UNK_5";
     1607            case 0x00000716: return "MSR_UNC_CBO_1_PER_CTR0";
     1608            case 0x00000717: return "MSR_UNC_CBO_1_PER_CTR1";
     1609            case 0x00000718: return "MSR_UNC_CBO_1_PER_CTR2?";
     1610            case 0x00000719: return "MSR_UNC_CBO_1_PER_CTR3?";
     1611            case 0x00000720: return "MSR_UNC_CBO_2_PERFEVTSEL0";
     1612            case 0x00000721: return "MSR_UNC_CBO_2_PERFEVTSEL1";
     1613            case 0x00000722: return "MSR_UNC_CBO_2_PERFEVTSEL2?";
     1614            case 0x00000723: return "MSR_UNC_CBO_2_PERFEVTSEL3?";
     1615            case 0x00000724: return "MSR_UNC_CBO_2_UNK_4";
     1616            case 0x00000725: return "MSR_UNC_CBO_2_UNK_5";
     1617            case 0x00000726: return "MSR_UNC_CBO_2_PER_CTR0";
     1618            case 0x00000727: return "MSR_UNC_CBO_2_PER_CTR1";
     1619            case 0x00000728: return "MSR_UNC_CBO_2_PER_CTR2?";
     1620            case 0x00000729: return "MSR_UNC_CBO_2_PER_CTR3?";
     1621            case 0x00000730: return "MSR_UNC_CBO_3_PERFEVTSEL0";
     1622            case 0x00000731: return "MSR_UNC_CBO_3_PERFEVTSEL1";
     1623            case 0x00000732: return "MSR_UNC_CBO_3_PERFEVTSEL2?";
     1624            case 0x00000733: return "MSR_UNC_CBO_3_PERFEVTSEL3?";
     1625            case 0x00000734: return "MSR_UNC_CBO_3_UNK_4";
     1626            case 0x00000735: return "MSR_UNC_CBO_3_UNK_5";
     1627            case 0x00000736: return "MSR_UNC_CBO_3_PER_CTR0";
     1628            case 0x00000737: return "MSR_UNC_CBO_3_PER_CTR1";
     1629            case 0x00000738: return "MSR_UNC_CBO_3_PER_CTR2?";
     1630            case 0x00000739: return "MSR_UNC_CBO_3_PER_CTR3?";
     1631            case 0x00000740: return "MSR_UNC_CBO_4_PERFEVTSEL0?";
     1632            case 0x00000741: return "MSR_UNC_CBO_4_PERFEVTSEL1?";
     1633            case 0x00000742: return "MSR_UNC_CBO_4_PERFEVTSEL2?";
     1634            case 0x00000743: return "MSR_UNC_CBO_4_PERFEVTSEL3?";
     1635            case 0x00000744: return "MSR_UNC_CBO_4_UNK_4";
     1636            case 0x00000745: return "MSR_UNC_CBO_4_UNK_5";
     1637            case 0x00000746: return "MSR_UNC_CBO_4_PER_CTR0?";
     1638            case 0x00000747: return "MSR_UNC_CBO_4_PER_CTR1?";
     1639            case 0x00000748: return "MSR_UNC_CBO_4_PER_CTR2?";
     1640            case 0x00000749: return "MSR_UNC_CBO_4_PER_CTR3?";
     1641
     1642        }
     1643
     1644    /*
    15841645     * Bunch of unknown sandy bridge registers.  They might seem like the
    15851646     * nehalem based xeon stuff, but the layout doesn't match.  I bet it's the
Note: See TracChangeset for help on using the changeset viewer.

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