Changeset 26272 in vbox
- Timestamp:
- Feb 5, 2010 4:18:52 AM (15 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r26271 r26272 155 155 if (!PATMIsPatchGCAddr(pVM, pSrc)) 156 156 { 157 int rc = MMGCRamRead(pVM, pDest, (void *) pSrc, cb);157 int rc = MMGCRamRead(pVM, pDest, (void *)(uintptr_t)pSrc, cb); 158 158 if (rc == VERR_ACCESS_DENIED) 159 159 { … … 164 164 } 165 165 else /* the hypervisor region is always present. */ 166 memcpy(pDest, (RTRCPTR) pSrc, cb);166 memcpy(pDest, (RTRCPTR)(uintptr_t)pSrc, cb); 167 167 168 168 # endif /* IN_RING3 */ … … 412 412 { 413 413 #ifdef IN_RC 414 int rc = MMGCRamRead(pVM, pvDst, (void *) GCPtrSrc, cb);414 int rc = MMGCRamRead(pVM, pvDst, (void *)(uintptr_t)GCPtrSrc, cb); 415 415 if (RT_LIKELY(rc != VERR_ACCESS_DENIED)) 416 416 return rc; … … 937 937 GCPtrPar1 = emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, GCPtrPar1); 938 938 #ifdef IN_RC 939 pvParam1 = (void *) GCPtrPar1;939 pvParam1 = (void *)(uintptr_t)GCPtrPar1; 940 940 #else 941 941 PGMPAGEMAPLOCK Lock; … … 1670 1670 { 1671 1671 case PARMTYPE_ADDRESS: 1672 pParam1 = (RTRCPTR)param1.val.val64; 1673 pParam1 = (RTRCPTR)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTGCPTR)(RTRCUINTPTR)pParam1); 1672 pParam1 = (RTRCPTR)(uintptr_t)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTRCUINTPTR)param1.val.val64); 1674 1673 EM_ASSERT_FAULT_RETURN(pParam1 == (RTRCPTR)pvFault, VERR_EM_INTERPRETER); 1675 1674 break; … … 1742 1741 { 1743 1742 case PARMTYPE_ADDRESS: 1744 pParam1 = (RTRCPTR)param1.val.val64; 1745 pParam1 = (RTRCPTR)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTGCPTR)(RTRCUINTPTR)pParam1); 1743 pParam1 = (RTRCPTR)(uintptr_t)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTRCUINTPTR)param1.val.val64); 1746 1744 EM_ASSERT_FAULT_RETURN(pParam1 == (RTRCPTR)pvFault, VERR_EM_INTERPRETER); 1747 1745 break; … … 1813 1811 { 1814 1812 case PARMTYPE_ADDRESS: 1815 pParam1 = (RTRCPTR)param1.val.val64; 1816 pParam1 = (RTRCPTR)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTGCPTR)(RTRCUINTPTR)pParam1); 1813 pParam1 = (RTRCPTR)(uintptr_t)emConvertToFlatAddr(pVM, pRegFrame, pDis, &pDis->param1, (RTRCUINTPTR)param1.val.val64); 1817 1814 EM_ASSERT_FAULT_RETURN(pParam1 == (RTRCPTR)pvFault, VERR_EM_INTERPRETER); 1818 1815 break; -
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r26177 r26272 275 275 isn't a problem though since the operation can be restarted in REM. */ 276 276 #ifdef IN_RC 277 return MMGCRamReadNoTrapHandler(pDest, (void *) GCSrc, cb);277 return MMGCRamReadNoTrapHandler(pDest, (void *)(uintptr_t)GCSrc, cb); 278 278 #else 279 279 return PGMPhysReadGCPtr(pVCpu, pDest, GCSrc, cb); … … 296 296 #ifdef IN_RC 297 297 NOREF(pCtxCore); 298 return MMGCRamWriteNoTrapHandler((void *) GCPtrDst, pvSrc, cb);298 return MMGCRamWriteNoTrapHandler((void *)(uintptr_t)GCPtrDst, pvSrc, cb); 299 299 #elif IN_RING0 300 300 return PGMPhysInterpretedWriteNoHandlers(pVCpu, pCtxCore, GCPtrDst, pvSrc, cb, false /*fRaiseTrap*/);
Note:
See TracChangeset
for help on using the changeset viewer.