- Timestamp:
- Jul 8, 2008 4:52:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r10277 r10379 348 348 /* Convert source address ds:esi. */ 349 349 RTGCUINTPTR pu8Virt; 350 rc = SELMToFlatEx(pVM, DIS_SELREG_DS, pRegFrame, (RTGCPTR)pRegFrame-> esi,350 rc = SELMToFlatEx(pVM, DIS_SELREG_DS, pRegFrame, (RTGCPTR)pRegFrame->rsi, 351 351 SELMTOFLAT_FLAGS_HYPER | SELMTOFLAT_FLAGS_NO_PL, 352 352 (PRTGCPTR)&pu8Virt); … … 380 380 pu8Virt += offIncrement; 381 381 Phys += offIncrement; 382 pRegFrame-> esi += offIncrement;383 pRegFrame-> edi += offIncrement;382 pRegFrame->rsi += offIncrement; 383 pRegFrame->rdi += offIncrement; 384 384 cTransfers--; 385 385 } … … 407 407 /* Convert destination address. */ 408 408 RTGCUINTPTR pu8Virt; 409 rc = SELMToFlatEx(pVM, DIS_SELREG_ES, pRegFrame, (RTGCPTR)pRegFrame-> edi,409 rc = SELMToFlatEx(pVM, DIS_SELREG_ES, pRegFrame, (RTGCPTR)pRegFrame->rdi, 410 410 SELMTOFLAT_FLAGS_HYPER | SELMTOFLAT_FLAGS_NO_PL, 411 411 (RTGCPTR *)&pu8Virt); … … 447 447 Phys += offIncrement; 448 448 PhysDst += offIncrement; 449 pRegFrame-> esi += offIncrement;450 pRegFrame-> edi += offIncrement;449 pRegFrame->rsi += offIncrement; 450 pRegFrame->rdi += offIncrement; 451 451 cTransfers--; 452 452 } … … 489 489 pu8Virt += offIncrement; 490 490 Phys += offIncrement; 491 pRegFrame-> esi += offIncrement;492 pRegFrame-> edi += offIncrement;491 pRegFrame->rsi += offIncrement; 492 pRegFrame->rdi += offIncrement; 493 493 cTransfers--; 494 494 } … … 582 582 { 583 583 /* Update registers. */ 584 pRegFrame-> edi += cTransfers << SIZE_2_SHIFT(cb);584 pRegFrame->rdi += cTransfers << SIZE_2_SHIFT(cb); 585 585 if (pCpu->prefix & PREFIX_REP) 586 586 pRegFrame->ecx = 0; … … 594 594 { 595 595 /* Update registers. */ 596 pRegFrame-> edi -= cTransfers << SIZE_2_SHIFT(cb);596 pRegFrame->rdi -= cTransfers << SIZE_2_SHIFT(cb); 597 597 if (pCpu->prefix & PREFIX_REP) 598 598 pRegFrame->ecx = 0; … … 615 615 616 616 Phys += offIncrement; 617 pRegFrame-> edi += offIncrement;617 pRegFrame->rdi += offIncrement; 618 618 cTransfers--; 619 619 } while (cTransfers); … … 671 671 int rc = iomMMIODoRead(pVM, pRange, GCPhysFault, &pRegFrame->eax, cb); 672 672 if (rc == VINF_SUCCESS) 673 pRegFrame-> esi += offIncrement;673 pRegFrame->rsi += offIncrement; 674 674 675 675 /* … … 1332 1332 /* Convert destination address es:edi. */ 1333 1333 RTGCPTR GCPtrDst; 1334 int rc = SELMToFlatEx(pVM, DIS_SELREG_ES, pRegFrame, (RTGCPTR)pRegFrame-> edi,1334 int rc = SELMToFlatEx(pVM, DIS_SELREG_ES, pRegFrame, (RTGCPTR)pRegFrame->rdi, 1335 1335 SELMTOFLAT_FLAGS_HYPER | SELMTOFLAT_FLAGS_NO_PL, 1336 1336 &GCPtrDst); … … 1360 1360 rc = IOMIOPortReadString(pVM, uPort, &GCPtrDst, &cTransfers, cbTransfer); 1361 1361 AssertRC(rc); Assert(cTransfers <= cTransfersOrg); 1362 pRegFrame-> edi += (cTransfersOrg - cTransfers) * cbTransfer;1362 pRegFrame->rdi += (cTransfersOrg - cTransfers) * cbTransfer; 1363 1363 } 1364 1364 … … 1376 1376 Assert(rc2 == VINF_SUCCESS); NOREF(rc2); 1377 1377 GCPtrDst = (RTGCPTR)((RTGCUINTPTR)GCPtrDst + cbTransfer); 1378 pRegFrame-> edi += cbTransfer;1378 pRegFrame->rdi += cbTransfer; 1379 1379 cTransfers--; 1380 1380 } … … 1487 1487 /* Convert source address ds:esi. */ 1488 1488 RTGCPTR GCPtrSrc; 1489 int rc = SELMToFlatEx(pVM, DIS_SELREG_DS, pRegFrame, (RTGCPTR)pRegFrame-> esi,1489 int rc = SELMToFlatEx(pVM, DIS_SELREG_DS, pRegFrame, (RTGCPTR)pRegFrame->rsi, 1490 1490 SELMTOFLAT_FLAGS_HYPER | SELMTOFLAT_FLAGS_NO_PL, 1491 1491 &GCPtrSrc); … … 1516 1516 rc = IOMIOPortWriteString(pVM, uPort, &GCPtrSrc, &cTransfers, cbTransfer); 1517 1517 AssertRC(rc); Assert(cTransfers <= cTransfersOrg); 1518 pRegFrame-> esi += (cTransfersOrg - cTransfers) * cbTransfer;1518 pRegFrame->rsi += (cTransfersOrg - cTransfers) * cbTransfer; 1519 1519 } 1520 1520 … … 1533 1533 break; 1534 1534 GCPtrSrc = (RTGCPTR)((RTUINTPTR)GCPtrSrc + cbTransfer); 1535 pRegFrame-> esi += cbTransfer;1535 pRegFrame->rsi += cbTransfer; 1536 1536 cTransfers--; 1537 1537 }
Note:
See TracChangeset
for help on using the changeset viewer.