Changeset 13146 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Oct 9, 2008 10:58:12 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 37655
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/DBGFMem.cpp
r13144 r13146 145 145 || enmMode == PGMMODE_PROTECTED 146 146 || DBGFADDRESS_IS_PHYS(pAddress) ) 147 rc = PGMPhys ReadGCPhys(pVM, pvBuf, pAddress->FlatPtr, cbRead);147 rc = PGMPhysSimpleReadGCPhys(pVM, pvBuf, pAddress->FlatPtr, cbRead); 148 148 else 149 149 rc = PGMPhysSimpleReadGCPtr(pVM, pvBuf, pAddress->FlatPtr, cbRead); … … 203 203 || enmMode == PGMMODE_PROTECTED 204 204 || DBGFADDRESS_IS_PHYS(pAddress) ) 205 rc = PGMPhys ReadGCPhys(pVM, pszBuf, pAddress->FlatPtr, cchBuf);205 rc = PGMPhysSimpleReadGCPhys(pVM, pszBuf, pAddress->FlatPtr, cchBuf); 206 206 else 207 207 rc = PGMPhysSimpleReadGCPtr(pVM, pszBuf, pAddress->FlatPtr, cchBuf); -
trunk/src/VBox/VMM/PGM.cpp
r13107 r13146 229 229 * 230 230 * Allocation points: 231 * - PGMPhys WriteGCPhys and PGMPhysWrite.231 * - PGMPhysSimpleWriteGCPhys and PGMPhysWrite. 232 232 * - Replacing a zero page mapping at \#PF. 233 233 * - Replacing a shared page mapping at \#PF. -
trunk/src/VBox/VMM/PGMPhysRWTmpl.h
r13060 r13146 24 24 * Read physical memory. (one byte/word/dword) 25 25 * 26 * This API respects access handlers and MMIO. Use PGMPhys ReadGCPhys() if you26 * This API respects access handlers and MMIO. Use PGMPhysSimpleReadGCPhys() if you 27 27 * want to ignore those. 28 28 * … … 65 65 * Write to physical memory. (one byte/word/dword) 66 66 * 67 * This API respects access handlers and MMIO. Use PGMPhys ReadGCPhys() if you67 * This API respects access handlers and MMIO. Use PGMPhysSimpleReadGCPhys() if you 68 68 * want to ignore those. 69 69 * -
trunk/src/VBox/VMM/VM.cpp
r12989 r13146 1326 1326 "ss:sp=0000:%04x ", esp); 1327 1327 uint32_t Start = esp & ~(uint32_t)63; 1328 int rc = PGMPhys ReadGCPhys(pVM, abBuf, Start, 0x100);1328 int rc = PGMPhysSimpleReadGCPhys(pVM, abBuf, Start, 0x100); 1329 1329 if (VBOX_SUCCESS(rc)) 1330 1330 RTLogRelPrintf("0000:%04x TO 0000:%04x:\n" … … 1338 1338 if (esp < 0x2000 && esp > 0x1fc0) 1339 1339 { 1340 rc = PGMPhys ReadGCPhys(pVM, abBuf, 0x8000, 0x800);1340 rc = PGMPhysSimpleReadGCPhys(pVM, abBuf, 0x8000, 0x800); 1341 1341 if (VBOX_SUCCESS(rc)) 1342 1342 RTLogRelPrintf("0000:8000 TO 0000:87ff:\n" … … 1347 1347 if (true) 1348 1348 { 1349 rc = PGMPhys ReadGCPhys(pVM, abBuf, 0x8000, 0x200);1349 rc = PGMPhysSimpleReadGCPhys(pVM, abBuf, 0x8000, 0x200); 1350 1350 if (VBOX_SUCCESS(rc)) 1351 1351 RTLogRelPrintf("2000:0000 TO 2000:01ff:\n" -
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r13144 r13146 330 330 return VINF_SUCCESS; 331 331 #else 332 return PGMPhysReadGCPtr Safe(pVM, pDest, GCSrc, cb);332 return PGMPhysReadGCPtr(pVM, pDest, GCSrc, cb); 333 333 #endif 334 334 } … … 361 361 362 362 #else 363 return PGMPhysWriteGCPtr Safe(pVM, GCDest, pSrc, cb);363 return PGMPhysWriteGCPtr(pVM, GCDest, pSrc, cb); 364 364 #endif 365 365 } … … 1340 1340 LogFlow(("emInterpretStosWD dest=%04X:%VGv (%VGv) cbSize=%d\n", pRegFrame->es, GCOffset, GCDest, cbSize)); 1341 1341 1342 rc = PGMPhysWriteGCPtr Safe(pVM, GCDest, &pRegFrame->rax, cbSize);1342 rc = PGMPhysWriteGCPtr(pVM, GCDest, &pRegFrame->rax, cbSize); 1343 1343 if (VBOX_FAILURE(rc)) 1344 1344 return VERR_EM_INTERPRETER; … … 1381 1381 while (cTransfers) 1382 1382 { 1383 rc = PGMPhysWriteGCPtr Safe(pVM, GCDest, &pRegFrame->rax, cbSize);1383 rc = PGMPhysWriteGCPtr(pVM, GCDest, &pRegFrame->rax, cbSize); 1384 1384 if (VBOX_FAILURE(rc)) 1385 1385 { -
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r12989 r13146 258 258 return MMGCRamReadNoTrapHandler(pDest, (void *)GCSrc, cb); 259 259 #else 260 return PGMPhysReadGCPtr Safe(pVM, pDest, GCSrc, cb);260 return PGMPhysReadGCPtr(pVM, pDest, GCSrc, cb); 261 261 #endif 262 262 } … … 269 269 return MMGCRamWriteNoTrapHandler((void *)GCDest, pSrc, cb); 270 270 #else 271 return PGMPhysWriteGCPtr Safe(pVM, GCDest, pSrc, cb);271 return PGMPhysWriteGCPtr(pVM, GCDest, pSrc, cb); 272 272 #endif 273 273 } -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r13145 r13146 1131 1131 * Read physical memory. 1132 1132 * 1133 * This API respects access handlers and MMIO. Use PGMPhys ReadGCPhys() if you1133 * This API respects access handlers and MMIO. Use PGMPhysSimpleReadGCPhys() if you 1134 1134 * want to ignore those. 1135 1135 * … … 1389 1389 * Write to physical memory. 1390 1390 * 1391 * This API respects access handlers and MMIO. Use PGMPhys ReadGCPhys() if you1391 * This API respects access handlers and MMIO. Use PGMPhysSimpleReadGCPhys() if you 1392 1392 * want to ignore those. 1393 1393 * … … 1731 1731 * @param cb The number of bytes to read. 1732 1732 */ 1733 VMMDECL(int) PGMPhys ReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb)1733 VMMDECL(int) PGMPhysSimpleReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb) 1734 1734 { 1735 1735 # if defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0) || defined(VBOX_WITH_NEW_PHYS_CODE) … … 1873 1873 * @param cb The number of bytes to write. 1874 1874 */ 1875 VMMDECL(int) PGMPhys WriteGCPhys(PVM pVM, RTGCPHYS GCPhysDst, const void *pvSrc, size_t cb)1875 VMMDECL(int) PGMPhysSimpleWriteGCPhys(PVM pVM, RTGCPHYS GCPhysDst, const void *pvSrc, size_t cb) 1876 1876 { 1877 1877 # if defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0) || defined(VBOX_WITH_NEW_PHYS_CODE) 1878 LogFlow(("PGMPhys WriteGCPhys: %RGp %zu\n", GCPhysDst, cb));1878 LogFlow(("PGMPhysSimpleWriteGCPhys: %RGp %zu\n", GCPhysDst, cb)); 1879 1879 1880 1880 /* … … 1943 1943 return VINF_SUCCESS; 1944 1944 1945 LogFlow(("PGMPhys WriteGCPhys: %RGp %zu\n", GCPhysDst, cb));1945 LogFlow(("PGMPhysSimpleWriteGCPhys: %RGp %zu\n", GCPhysDst, cb)); 1946 1946 1947 1947 /* … … 2398 2398 * @param cb The number of bytes to read. 2399 2399 */ 2400 /** @todo use the PGMPhysSimpleReadGCPtr name and rename the unsafe one to something appropriate */ 2401 VMMDECL(int) PGMPhysReadGCPtrSafe(PVM pVM, void *pvDst, RTGCPTR GCPtrSrc, size_t cb) 2400 VMMDECL(int) PGMPhysReadGCPtr(PVM pVM, void *pvDst, RTGCPTR GCPtrSrc, size_t cb) 2402 2401 { 2403 2402 RTGCPHYS GCPhys; … … 2410 2409 return VINF_SUCCESS; 2411 2410 2412 LogFlow(("PGMPhysReadGCPtr Safe: %VGv %d\n", GCPtrSrc, cb));2411 LogFlow(("PGMPhysReadGCPtr: %VGv %d\n", GCPtrSrc, cb)); 2413 2412 2414 2413 /* … … 2472 2471 */ 2473 2472 /** @todo use the PGMPhysWriteGCPtr name and rename the unsafe one to something appropriate */ 2474 VMMDECL(int) PGMPhysWriteGCPtr Safe(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb)2473 VMMDECL(int) PGMPhysWriteGCPtr(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb) 2475 2474 { 2476 2475 RTGCPHYS GCPhys; … … 2483 2482 return VINF_SUCCESS; 2484 2483 2485 LogFlow(("PGMPhysWriteGCPtr Safe: %VGv %d\n", GCPtrDst, cb));2484 LogFlow(("PGMPhysWriteGCPtr: %VGv %d\n", GCPtrDst, cb)); 2486 2485 2487 2486 /* -
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r13100 r13146 898 898 *(uint32_t *)pu32 = pRegFrame->eax; 899 899 #else 900 PGMPhys WriteGCPhys(pVM, GCPhysFault, &pRegFrame->eax, 4);900 PGMPhysSimpleWriteGCPhys(pVM, GCPhysFault, &pRegFrame->eax, 4); 901 901 #endif 902 902 pu32 += 4;
Note:
See TracChangeset
for help on using the changeset viewer.