Changeset 12566 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Sep 18, 2008 12:42:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r12561 r12566 84 84 #endif 85 85 86 unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU;87 Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */88 89 86 int rc; 90 87 if (RT_LIKELY(pRange->CTXALLSUFF(pfnWriteCallback))) 91 rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange-> a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhysFault, (void *)pvData, cb); /* @todo fix const!! */88 rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), GCPhysFault, (void *)pvData, cb); /* @todo fix const!! */ 92 89 else 93 90 rc = VINF_SUCCESS; … … 107 104 #endif 108 105 109 unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU;110 Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */111 112 106 int rc; 113 107 if (RT_LIKELY(pRange->CTXALLSUFF(pfnReadCallback))) 114 rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange-> a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhysFault, pvData, cb);108 rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), GCPhysFault, pvData, cb); 115 109 else 116 110 { … … 589 583 if (pRange->CTXALLSUFF(pfnFillCallback)) 590 584 { 591 unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU;592 Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */593 594 585 /* 595 586 * Use the fill callback. … … 599 590 { 600 591 /* addr++ variant. */ 601 rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange-> a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), Phys, u32Data, cb, cTransfers);592 rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), Phys, u32Data, cb, cTransfers); 602 593 if (rc == VINF_SUCCESS) 603 594 { … … 611 602 { 612 603 /* addr-- variant. */ 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);604 rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), (Phys - (cTransfers - 1)) << SIZE_2_SHIFT(cb), u32Data, cb, cTransfers); 614 605 if (rc == VINF_SUCCESS) 615 606 { … … 1277 1268 * Perform the read and deal with the result. 1278 1269 */ 1279 unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU;1280 Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */1281 1282 1270 #ifdef VBOX_WITH_STATISTICS 1283 1271 if (pStats) 1284 1272 STAM_PROFILE_ADV_START(&pStats->CTXALLSUFF(ProfRead), a); 1285 1273 #endif 1286 int rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange-> a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhys, pu32Value, cbValue);1274 int rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), GCPhys, pu32Value, cbValue); 1287 1275 #ifdef VBOX_WITH_STATISTICS 1288 1276 if (pStats) … … 1387 1375 if (pRange->CTXALLSUFF(pfnWriteCallback)) 1388 1376 { 1389 unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU;1390 Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */1391 1392 1377 #ifdef VBOX_WITH_STATISTICS 1393 1378 if (pStats) 1394 1379 STAM_PROFILE_ADV_START(&pStats->CTXALLSUFF(ProfWrite), a); 1395 1380 #endif 1396 int rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange-> a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhys, &u32Value, cbValue);1381 int rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), GCPhys, &u32Value, cbValue); 1397 1382 #ifdef VBOX_WITH_STATISTICS 1398 1383 if (pStats)
Note:
See TracChangeset
for help on using the changeset viewer.