Changeset 105745 in vbox for trunk/src/VBox/VMM/VMMR3/DBGFMem.cpp
- Timestamp:
- Aug 21, 2024 7:16:50 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGFMem.cpp
r105352 r105745 80 80 PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu); 81 81 PGMMODE enmMode = PGMGetGuestMode(pVCpu); 82 if ( enmMode == PGMMODE_REAL 83 || enmMode == PGMMODE_PROTECTED 82 if ( !PGMMODE_WITH_PAGING(enmMode) 84 83 || DBGFADDRESS_IS_PHYS(pAddress) 85 84 ) … … 98 97 if ( ( pAddress->FlatPtr >= _4G 99 98 || pAddress->FlatPtr + cbRange > _4G) 100 && enmMode != PGMMODE_AMD64 101 && enmMode != PGMMODE_AMD64_NX) 99 && !PGMMODE_IS_64BIT_MODE(enmMode)) 102 100 return VERR_DBGF_MEM_NOT_FOUND; 103 101 #endif … … 174 172 PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu); 175 173 PGMMODE enmMode = PGMGetGuestMode(pVCpu); 176 if ( enmMode == PGMMODE_REAL 177 || enmMode == PGMMODE_PROTECTED 178 || DBGFADDRESS_IS_PHYS(pAddress) ) 174 if ( !PGMMODE_WITH_PAGING(enmMode) 175 || DBGFADDRESS_IS_PHYS(pAddress)) 179 176 rc = PGMPhysSimpleReadGCPhys(pVM, pvBuf, pAddress->FlatPtr, cbRead); 180 177 else … … 183 180 if ( ( pAddress->FlatPtr >= _4G 184 181 || pAddress->FlatPtr + cbRead > _4G) 185 && enmMode != PGMMODE_AMD64 186 && enmMode != PGMMODE_AMD64_NX) 182 && !PGMMODE_IS_64BIT_MODE(enmMode)) 187 183 return VERR_PAGE_TABLE_NOT_PRESENT; 188 184 #endif … … 327 323 PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu); 328 324 PGMMODE enmMode = PGMGetGuestMode(pVCpu); 329 if ( enmMode == PGMMODE_REAL 330 || enmMode == PGMMODE_PROTECTED 331 || DBGFADDRESS_IS_PHYS(pAddress) ) 325 if ( !PGMMODE_WITH_PAGING(enmMode) 326 || DBGFADDRESS_IS_PHYS(pAddress)) 332 327 rc = PGMPhysSimpleWriteGCPhys(pVM, pAddress->FlatPtr, pvBuf, cbWrite); 333 328 else … … 336 331 if ( ( pAddress->FlatPtr >= _4G 337 332 || pAddress->FlatPtr + cbWrite > _4G) 338 && enmMode != PGMMODE_AMD64 339 && enmMode != PGMMODE_AMD64_NX) 333 && !PGMMODE_IS_64BIT_MODE(enmMode)) 340 334 return VERR_PAGE_TABLE_NOT_PRESENT; 341 335 #endif … … 512 506 switch (enmMode) 513 507 { 508 #if !defined(VBOX_VMM_TARGET_ARMV8) 514 509 case PGMMODE_32_BIT: 515 510 return DBGFPGDMP_FLAGS_PSE; … … 534 529 default: 535 530 AssertFailedReturn(UINT32_MAX); 531 #else 532 case PGMMODE_NONE: 533 return 0; 534 default: 535 AssertFailedReturn(UINT32_MAX); 536 #endif 536 537 } 537 538 }
Note:
See TracChangeset
for help on using the changeset viewer.