VirtualBox

Changeset 41393 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
May 22, 2012 2:23:13 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78102
Message:

PGM: Initialize the A20 mask correctly.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PGM.cpp

    r40274 r41393  
    12511251
    12521252        pPGM->fA20Enabled      = true;
     1253        pPGM->GCPhysA20Mask    = ~(RTGCPHYS)(!pPGM->fA20Enabled << 20);
    12531254    }
    12541255
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r41388 r41393  
    33913391    Log5(("pgmR3PhysRomWriteHandler: %d %c %#08RGp %#04zx\n", pRomPage->enmProt, enmAccessType == PGMACCESSTYPE_READ ? 'R' : 'W', GCPhys, cbBuf));
    33923392    NOREF(pvPhys);
     3393RTLogPrintf("pgmPhysRomWriteHandler: enmAccessType=%d GCPhys=%RGp\n", (uint32_t)enmAccessType, GCPhys);
    33933394
    33943395    if (enmAccessType == PGMACCESSTYPE_READ)
  • trunk/src/VBox/VMM/VMMR3/PGMSavedState.cpp

    r39402 r41393  
    30173017
    30183018    /*
     3019     * Fix the A20 mask.
     3020     */
     3021    for (VMCPUID i = 0; i < pVM->cCpus; i++)
     3022        pVM->aCpus[i].pgm.s.GCPhysA20Mask = ~(RTGCPHYS)(!pVM->aCpus[i].pgm.s.fA20Enabled << 20);
     3023
     3024    /*
    30193025     * The guest mappings - skipped now, see re-fixation in the caller.
    30203026     */
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