Changeset 5054 in vbox
- Timestamp:
- Sep 26, 2007 3:54:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/CPUM.cpp
r5053 r5054 1516 1516 /** The lock information that PGMPhysReleasePageMappingLock needs. */ 1517 1517 PGMPAGEMAPLOCK PageMapLock; 1518 /** Whether the PageMapLock is valid or not. */ 1519 bool fLocked; 1518 1520 } CPUMDISASSTATE, *PCPUMDISASSTATE; 1519 1521 … … 1556 1558 { 1557 1559 /* Release mapping lock previously acquired. */ 1558 if ( PGMPhysIsPageMappingLockValid(pState->pVM, &pState->PageMapLock))1560 if (pState->fLocked) 1559 1561 PGMPhysReleasePageMappingLock(pState->pVM, &pState->PageMapLock); 1560 1561 1562 rc = PGMPhysGCPtr2CCPtrReadOnly(pState->pVM, pState->pvPageGC, &pState->pvPageHC, &pState->PageMapLock); 1563 pState->fLocked = RT_SUCCESS_NP(rc); 1562 1564 } 1563 1565 if (VBOX_FAILURE(rc)) … … 1611 1613 State.pvPageHC = NULL; 1612 1614 State.pVM = pVM; 1615 State.fLocked = false; 1613 1616 1614 1617 /* … … 1688 1691 1689 1692 /* Release mapping lock acquired in cpumR3DisasInstrRead. */ 1690 if ( PGMPhysIsPageMappingLockValid(pVM, &State.PageMapLock))1693 if (State.fLocked) 1691 1694 PGMPhysReleasePageMappingLock(pVM, &State.PageMapLock); 1692 1695
Note:
See TracChangeset
for help on using the changeset viewer.