Changeset 9083 in vbox for trunk/src/VBox
- Timestamp:
- May 23, 2008 1:16:23 PM (17 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r9069 r9083 85 85 * @param pSrc GC source pointer 86 86 * @param pDest HC destination pointer 87 * @param sizeNumber of bytes to read87 * @param cb Number of bytes to read 88 88 * @param dwUserdata Callback specific user data (pCpu) 89 89 * 90 90 */ 91 DECLCALLBACK(int) EMReadBytes(RTHCUINTPTR pSrc, uint8_t *pDest, unsigned size, void *pvUserdata)91 DECLCALLBACK(int) EMReadBytes(RTHCUINTPTR pSrc, uint8_t *pDest, unsigned cb, void *pvUserdata) 92 92 { 93 93 DISCPUSTATE *pCpu = (DISCPUSTATE *)pvUserdata; 94 94 PVM pVM = (PVM)pCpu->apvUserData[0]; 95 95 #ifdef IN_RING0 96 int rc = PGMPhysReadGCPtr(pVM, pDest, pSrc, size);96 int rc = PGMPhysReadGCPtr(pVM, pDest, pSrc, cb); 97 97 AssertRC(rc); 98 98 #else 99 99 if (!PATMIsPatchGCAddr(pVM, pSrc)) 100 100 { 101 int rc = PGMPhysReadGCPtr(pVM, pDest, pSrc, size);101 int rc = PGMPhysReadGCPtr(pVM, pDest, pSrc, cb); 102 102 AssertRC(rc); 103 103 } 104 104 else 105 105 { 106 for (uint32_t i = 0; i < size; i++)106 for (uint32_t i = 0; i < cb; i++) 107 107 { 108 108 uint8_t opcode; -
trunk/src/VBox/VMM/VMMAll/TMAllCpu.cpp
r8155 r9083 34 34 #include <iprt/assert.h> 35 35 #include <iprt/asm.h> 36 #include < iprt/log.h>36 #include <VBox/log.h> 37 37 38 38
Note:
See TracChangeset
for help on using the changeset viewer.