Changeset 56048 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- May 23, 2015 8:28:52 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100570
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp ¶
r55899 r56048 715 715 #endif 716 716 717 int rc;717 VBOXSTRICTRC rcStrict; 718 718 if (VM_IS_EMT(pVM)) 719 rc = PGMPhysRead(pVM, GCPhys, pvBuf, cbRead, PGMACCESSORIGIN_DEVICE); 720 else 721 rc = PGMR3PhysReadExternal(pVM, GCPhys, pvBuf, cbRead, PGMACCESSORIGIN_DEVICE); 722 723 Log(("pdmR3DevHlp_PhysRead: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); 724 return rc; 719 rcStrict = PGMPhysRead(pVM, GCPhys, pvBuf, cbRead, PGMACCESSORIGIN_DEVICE); 720 else 721 rcStrict = PGMR3PhysReadExternal(pVM, GCPhys, pvBuf, cbRead, PGMACCESSORIGIN_DEVICE); 722 AssertMsg(rcStrict == VINF_SUCCESS, ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict))); /** @todo track down the users for this bugger. */ 723 724 Log(("pdmR3DevHlp_PhysRead: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, VBOXSTRICTRC_VAL(rcStrict) )); 725 return VBOXSTRICTRC_VAL(rcStrict); 725 726 } 726 727 … … 743 744 #endif 744 745 745 int rc;746 VBOXSTRICTRC rcStrict; 746 747 if (VM_IS_EMT(pVM)) 747 rc = PGMPhysWrite(pVM, GCPhys, pvBuf, cbWrite, PGMACCESSORIGIN_DEVICE); 748 else 749 rc = PGMR3PhysWriteExternal(pVM, GCPhys, pvBuf, cbWrite, PGMACCESSORIGIN_DEVICE); 750 751 Log(("pdmR3DevHlp_PhysWrite: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); 752 return rc; 748 rcStrict = PGMPhysWrite(pVM, GCPhys, pvBuf, cbWrite, PGMACCESSORIGIN_DEVICE); 749 else 750 rcStrict = PGMR3PhysWriteExternal(pVM, GCPhys, pvBuf, cbWrite, PGMACCESSORIGIN_DEVICE); 751 AssertMsg(rcStrict == VINF_SUCCESS, ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict))); /** @todo track down the users for this bugger. */ 752 753 Log(("pdmR3DevHlp_PhysWrite: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, VBOXSTRICTRC_VAL(rcStrict) )); 754 return VBOXSTRICTRC_VAL(rcStrict); 753 755 } 754 756 -
TabularUnified trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp ¶
r55909 r56048 90 90 PGMACCESSORIGIN enmOrigin) 91 91 { 92 PGMPhysRead(pVM, *pGCPhys, pvBuf, cbRead, enmOrigin); 92 VBOXSTRICTRC rcStrict = PGMPhysRead(pVM, *pGCPhys, pvBuf, cbRead, enmOrigin); 93 AssertMsg(rcStrict == VINF_SUCCESS, ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict))); NOREF(rcStrict); 93 94 return VINF_SUCCESS; 94 95 } … … 221 222 { 222 223 /** @todo VERR_EM_NO_MEMORY */ 223 PGMPhysWrite(pVM, *pGCPhys, pvBuf, cbWrite, enmOrigin); 224 VBOXSTRICTRC rcStrict = PGMPhysWrite(pVM, *pGCPhys, pvBuf, cbWrite, enmOrigin); 225 AssertMsg(rcStrict == VINF_SUCCESS, ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict))); NOREF(rcStrict); 224 226 return VINF_SUCCESS; 225 227 } -
TabularUnified trunk/src/VBox/VMM/VMMR3/PGMPhysRWTmpl.h ¶
r55899 r56048 31 31 Assert(VM_IS_EMT(pVM)); 32 32 PGMPHYS_DATATYPE val; 33 PGMPhysRead(pVM, GCPhys, &val, sizeof(val), enmOrigin); 33 VBOXSTRICTRC rcStrict = PGMPhysRead(pVM, GCPhys, &val, sizeof(val), enmOrigin); 34 AssertMsg(rcStrict == VINF_SUCCESS, ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict))); NOREF(rcStrict); 34 35 return val; 35 36 } … … 50 51 { 51 52 Assert(VM_IS_EMT(pVM)); 52 PGMPhysWrite(pVM, GCPhys, &val, sizeof(val), enmOrigin); 53 VBOXSTRICTRC rcStrict = PGMPhysWrite(pVM, GCPhys, &val, sizeof(val), enmOrigin); 54 AssertMsg(rcStrict == VINF_SUCCESS, ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict))); NOREF(rcStrict); 53 55 } 54 56
Note:
See TracChangeset
for help on using the changeset viewer.