vbox的更動 9083 路徑 trunk/src/VBox/VMM/VMMAll/EMAll.cpp
- 時間撮記:
- 2008-5-23 下午01:16:23 (17 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器