Changeset 66024 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Mar 9, 2017 7:15:40 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMSavedState.cpp
r65919 r66024 3216 3216 3217 3217 /* 3218 * Change the paging mode and restore PGMCPU::GCPhysCR3.3219 * ( The latter requires the CPUM state to be restored already.)3218 * Change the paging mode (indirectly restores PGMCPU::GCPhysCR3). 3219 * (Requires the CPUM state to be restored already!) 3220 3220 */ 3221 3221 if (CPUMR3IsStateRestorePending(pVM)) … … 3229 3229 rc = PGMR3ChangeMode(pVM, pVCpu, pVCpu->pgm.s.enmGuestMode); 3230 3230 AssertLogRelRCReturn(rc, rc); 3231 3232 /* Update pVM->pgm.s.GCPhysCR3. */3233 Assert(pVCpu->pgm.s.GCPhysCR3 == NIL_RTGCPHYS || FTMIsDeltaLoadSaveActive(pVM));3234 RTGCPHYS GCPhysCR3 = CPUMGetGuestCR3(pVCpu);3235 if ( pVCpu->pgm.s.enmGuestMode == PGMMODE_PAE3236 || pVCpu->pgm.s.enmGuestMode == PGMMODE_PAE_NX3237 || pVCpu->pgm.s.enmGuestMode == PGMMODE_AMD643238 || pVCpu->pgm.s.enmGuestMode == PGMMODE_AMD64_NX)3239 GCPhysCR3 = (GCPhysCR3 & X86_CR3_PAE_PAGE_MASK);3240 else3241 GCPhysCR3 = (GCPhysCR3 & X86_CR3_PAGE_MASK);3242 pVCpu->pgm.s.GCPhysCR3 = GCPhysCR3;3243 3231 3244 3232 /* Update the PSE, NX flags and validity masks. */
Note:
See TracChangeset
for help on using the changeset viewer.