VirtualBox

Changeset 42607 in vbox


Ignore:
Timestamp:
Aug 5, 2012 7:27:20 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79793
Message:

PGM.cpp: Must update the GCPhysA20Mask member when changing fA20Enabled at reset (and other times). Fixes the assertion in PGMR3PhysTlbGCPhys2Ptr when resetting before the guest has reprogrammed the A20 gate.

File:
1 edited

Legend:

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

    r41965 r42607  
    12861286
    12871287        pPGM->fA20Enabled      = true;
    1288         pPGM->GCPhysA20Mask    = ~(RTGCPHYS)(!pPGM->fA20Enabled << 20);
     1288        pPGM->GCPhysA20Mask    = ~((RTGCPHYS)!pPGM->fA20Enabled << 20);
    12891289    }
    12901290
     
    24872487     */
    24882488    pVCpu->pgm.s.fA20Enabled = true;
     2489    pVCpu->pgm.s.GCPhysA20Mask = ~((RTGCPHYS)!pVCpu->pgm.s.fA20Enabled << 20);
    24892490
    24902491    /*
     
    25642565
    25652566        pVCpu->pgm.s.fA20Enabled = true;
     2567        pVCpu->pgm.s.GCPhysA20Mask = ~((RTGCPHYS)!pVCpu->pgm.s.fA20Enabled << 20);
    25662568        pVCpu->pgm.s.fGst32BitPageSizeExtension = false;
    25672569        PGMNotifyNxeChanged(pVCpu, false);
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