VirtualBox

Changeset 49945 in vbox for trunk


Ignore:
Timestamp:
Dec 17, 2013 1:28:11 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91354
Message:

PAT hack for a core 2 duo.

File:
1 edited

Legend:

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

    r49936 r49945  
    28852885static int reportMsr_Ia32MtrrFixedOrPat(uint32_t uMsr)
    28862886{
    2887     /* Every 8 bytes is a type, check the type ranges one by one. */
    2888     for (uint32_t iBit = 0; iBit < 64; iBit += 8)
    2889     {
    2890         int rc = msrVerifyMtrrTypeGPs(uMsr, iBit, 7 + (uMsr == 0x00000277));
    2891         if (RT_FAILURE(rc))
    2892             return rc;
     2887    /* Had a spot of trouble on an old macbook pro with core2 duo T9900 (penryn)
     2888       running 64-bit win81pe. Not giving PAT such a scrutiny fixes it. */
     2889    if (   uMsr != 0x00000277
     2890        || g_enmMicroarch >= kCpumMicroarch_Intel_Core7_First)
     2891    {
     2892        /* Every 8 bytes is a type, check the type ranges one by one. */
     2893        for (uint32_t iBit = 0; iBit < 64; iBit += 8)
     2894        {
     2895            int rc = msrVerifyMtrrTypeGPs(uMsr, iBit, 7 + (uMsr == 0x00000277));
     2896            if (RT_FAILURE(rc))
     2897                return rc;
     2898        }
    28932899    }
    28942900
     
    34623468        int         rc;
    34633469#if 1
    3464         //if (uMsr < 0xc0000000)
    3465         //    continue;
    3466         if (uMsr >= 0xc0010000)
     3470        if (   0 //(uMsr >= 0x00000268 && uMsr <= 0x0000026f)
     3471            || uMsr == 0x00000277
     3472            || uMsr == 0x000002ff
     3473           )
    34673474        {
    34683475            vbCpuRepDebug("produceMsrReport: uMsr=%#x (%s)...\n", uMsr, getMsrNameHandled(uMsr));
    3469             RTThreadSleep(1000);
     3476            RTThreadSleep(2000);
    34703477        }
    34713478#endif
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