vbox的更動 12561 路徑 trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
- 時間撮記:
- 2008-9-18 上午11:54:34 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r12545 r12561 84 84 #endif 85 85 86 unsigned idCPU = (pRange->enmCtx == MMIO_REGCTX_GLOBAL) ? 0 : pVM->idCPU;87 Assert(pRange-> u[idCPU].CTXALLSUFF(pDevIns));86 unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU; 87 Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */ 88 88 89 89 int rc; 90 90 if (RT_LIKELY(pRange->CTXALLSUFF(pfnWriteCallback))) 91 rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange-> u[idCPU].CTXALLSUFF(pDevIns), pRange->u[idCPU].CTXALLSUFF(pvUser), GCPhysFault, (void *)pvData, cb); /* @todo fix const!! */91 rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhysFault, (void *)pvData, cb); /* @todo fix const!! */ 92 92 else 93 93 rc = VINF_SUCCESS; … … 107 107 #endif 108 108 109 unsigned idCPU = (pRange->enmCtx == MMIO_REGCTX_GLOBAL) ? 0 : pVM->idCPU;110 Assert(pRange-> u[idCPU].CTXALLSUFF(pDevIns));109 unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU; 110 Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */ 111 111 112 112 int rc; 113 113 if (RT_LIKELY(pRange->CTXALLSUFF(pfnReadCallback))) 114 rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange-> u[idCPU].CTXALLSUFF(pDevIns), pRange->u[idCPU].CTXALLSUFF(pvUser), GCPhysFault, pvData, cb);114 rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhysFault, pvData, cb); 115 115 else 116 116 { … … 589 589 if (pRange->CTXALLSUFF(pfnFillCallback)) 590 590 { 591 unsigned idCPU = (pRange->enmCtx == MMIO_REGCTX_GLOBAL) ? 0 : pVM->idCPU;592 Assert(pRange-> u[idCPU].CTXALLSUFF(pDevIns));591 unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU; 592 Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */ 593 593 594 594 /* … … 599 599 { 600 600 /* addr++ variant. */ 601 rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange-> u[idCPU].CTXALLSUFF(pDevIns), pRange->u[idCPU].CTXALLSUFF(pvUser), Phys, u32Data, cb, cTransfers);601 rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), Phys, u32Data, cb, cTransfers); 602 602 if (rc == VINF_SUCCESS) 603 603 { … … 611 611 { 612 612 /* addr-- variant. */ 613 rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange-> u[idCPU].CTXALLSUFF(pDevIns), pRange->u[idCPU].CTXALLSUFF(pvUser), (Phys - (cTransfers - 1)) << SIZE_2_SHIFT(cb), u32Data, cb, cTransfers);613 rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), (Phys - (cTransfers - 1)) << SIZE_2_SHIFT(cb), u32Data, cb, cTransfers); 614 614 if (rc == VINF_SUCCESS) 615 615 { … … 1277 1277 * Perform the read and deal with the result. 1278 1278 */ 1279 unsigned idCPU = (pRange->enmCtx == MMIO_REGCTX_GLOBAL) ? 0 : pVM->idCPU;1280 Assert(pRange-> u[idCPU].CTXALLSUFF(pDevIns));1279 unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU; 1280 Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */ 1281 1281 1282 1282 #ifdef VBOX_WITH_STATISTICS … … 1284 1284 STAM_PROFILE_ADV_START(&pStats->CTXALLSUFF(ProfRead), a); 1285 1285 #endif 1286 int rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange-> u[idCPU].CTXALLSUFF(pDevIns), pRange->u[idCPU].CTXALLSUFF(pvUser), GCPhys, pu32Value, cbValue);1286 int rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhys, pu32Value, cbValue); 1287 1287 #ifdef VBOX_WITH_STATISTICS 1288 1288 if (pStats) … … 1387 1387 if (pRange->CTXALLSUFF(pfnWriteCallback)) 1388 1388 { 1389 unsigned idCPU = (pRange->enmCtx == MMIO_REGCTX_GLOBAL) ? 0 : pVM->idCPU;1390 Assert(pRange-> u[idCPU].CTXALLSUFF(pDevIns));1389 unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU; 1390 Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */ 1391 1391 1392 1392 #ifdef VBOX_WITH_STATISTICS … … 1394 1394 STAM_PROFILE_ADV_START(&pStats->CTXALLSUFF(ProfWrite), a); 1395 1395 #endif 1396 int rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange-> u[idCPU].CTXALLSUFF(pDevIns), pRange->u[idCPU].CTXALLSUFF(pvUser), GCPhys, &u32Value, cbValue);1396 int rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhys, &u32Value, cbValue); 1397 1397 #ifdef VBOX_WITH_STATISTICS 1398 1398 if (pStats)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器