Changeset 41674 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jun 12, 2012 8:16:31 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78481
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r41668 r41674 364 364 State.GCPtr = NIL_RTGCPTR; 365 365 } 366 return DIS CoreOneWithReader(InstrGC, pDis->mode, emReadBytes, &State, pDis, pOpsize);366 return DISInstrWithReader(InstrGC, pDis->mode, emReadBytes, &State, pDis, pOpsize); 367 367 } 368 368 … … 377 377 State.GCPtr = InstrGC; 378 378 379 return DIS CoreOneWithReader(InstrGC, pDis->mode, emReadBytes, &State, pDis, pOpsize);379 return DISInstrWithReader(InstrGC, pDis->mode, emReadBytes, &State, pDis, pOpsize); 380 380 } 381 381 … … 460 460 461 461 DISCPUMODE enmCpuMode = SELMGetCpuModeFromSelector(pVCpu, pCtxCore->eflags, pCtxCore->cs, (PCPUMSELREGHID)&pCtxCore->csHid); 462 rc = DIS CoreOneWithReader(GCPtrInstr, enmCpuMode, emReadBytes, &State, pDis, pcbInstr);462 rc = DISInstrWithReader(GCPtrInstr, enmCpuMode, emReadBytes, &State, pDis, pcbInstr); 463 463 if (RT_SUCCESS(rc)) 464 464 return VINF_SUCCESS; -
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r41671 r41674 3676 3676 uint32_t cbInstr; 3677 3677 #ifndef LOG_ENABLED 3678 rc = DIS CoreOneWithReader(GCPtrPC, enmDisCpuMode, cpumR3DisasInstrRead, &State, pCpu, &cbInstr);3678 rc = DISInstrWithReader(GCPtrPC, enmDisCpuMode, cpumR3DisasInstrRead, &State, pCpu, &cbInstr); 3679 3679 if (RT_SUCCESS(rc)) 3680 3680 { -
trunk/src/VBox/VMM/VMMR3/CSAM.cpp
r41673 r41674 765 765 { 766 766 (pCpu)->apvUserData[1] = InstrHC; 767 (pCpu)->apvUserData[2] = (void *)(uintptr_t)InstrGC; Assert(sizeof(InstrGC) <= sizeof(pCpu->apvUserData[0]));768 767 #ifdef DEBUG 769 768 return DISInstrToStrEx(InstrGC, enmCpuMode, CSAMR3ReadBytes, pVM, OPTYPE_ALL, … … 774 773 return DISInstrToStrEx(InstrGC, enmCpuMode, CSAMR3ReadBytes, pVM, ~(OPTYPE_INVALID | OPTYPE_HARMLESS | OPTYPE_RRM_MASK), 775 774 pCpu, pcbInstr, pszOutput, cbOutput); 776 return DIS CoreOneExEx(InstrGC, enmCpuMode, ~(OPTYPE_INVALID | OPTYPE_HARMLESS | OPTYPE_RRM_MASK), CSAMR3ReadBytes, pVM,777 775 return DISInstEx(InstrGC, enmCpuMode, ~(OPTYPE_INVALID | OPTYPE_HARMLESS | OPTYPE_RRM_MASK), CSAMR3ReadBytes, pVM, 776 pCpu, pcbInstr); 778 777 #endif 779 778 } -
trunk/src/VBox/VMM/VMMR3/DBGFDisas.cpp
r41668 r41674 140 140 141 141 uint32_t cbInstr; 142 int rc = DIS CoreOneWithReader(GCPtr,143 144 145 146 147 142 int rc = DISInstrWithReader(GCPtr, 143 enmCpuMode, 144 dbgfR3DisasInstrRead, 145 &pState->Cpu, 146 &pState->Cpu, 147 &cbInstr); 148 148 if (RT_SUCCESS(rc)) 149 149 { -
trunk/src/VBox/VMM/VMMR3/PATM.cpp
r41671 r41674 603 603 disinfo.pInstrGC = InstrGCPtr32; 604 604 disinfo.fReadFlags = fReadFlags; 605 (pCpu)->pfnReadBytes = patmReadBytes;606 (pCpu)->apvUserData[0] = &disinfo;607 605 return RT_SUCCESS(DISInstrToStrWithReader(InstrGCPtr32, 608 606 (pPatch->flags & PATMFL_CODE32) ? CPUMODE_32BIT : CPUMODE_16BIT, … … 621 619 disinfo.pInstrGC = InstrGCPtr32; 622 620 disinfo.fReadFlags = fReadFlags; 623 (pCpu)->pfnReadBytes = patmReadBytes; 624 (pCpu)->apvUserData[0] = &disinfo; 625 return RT_SUCCESS(DISCoreOneWithReader(InstrGCPtr32, 626 (pPatch->flags & PATMFL_CODE32) ? CPUMODE_32BIT : CPUMODE_16BIT, 627 patmReadBytes, &disinfo, 628 pCpu, pcbInstr)); 621 return RT_SUCCESS(DISInstrWithReader(InstrGCPtr32, 622 (pPatch->flags & PATMFL_CODE32) ? CPUMODE_32BIT : CPUMODE_16BIT, 623 patmReadBytes, &disinfo, 624 pCpu, pcbInstr)); 629 625 } 630 626 … … 640 636 disinfo.pInstrGC = InstrGCPtr32; 641 637 disinfo.fReadFlags = fReadFlags; 642 (pCpu)->pfnReadBytes = patmReadBytes; 643 (pCpu)->apvUserData[0] = &disinfo; 644 return RT_SUCCESS(DISCoreOneWithReader(InstrGCPtr32, pPatch->uOpMode, patmReadBytes, &disinfo, 645 pCpu, pcbInstr)); 638 return RT_SUCCESS(DISInstrWithReader(InstrGCPtr32, pPatch->uOpMode, patmReadBytes, &disinfo, 639 pCpu, pcbInstr)); 646 640 } 647 641 -
trunk/src/VBox/VMM/VMMR3/VMMSwitcher.cpp
r41671 r41674 835 835 DISCPUSTATE Cpu; 836 836 char szDisas[256]; 837 int rc = DIS CoreOne((uintptr_t)pu8CodeR3 + offCode, CPUMODE_32BIT, &Cpu, &cbInstr);837 int rc = DISInstr(pu8CodeR3 + offCode, CPUMODE_32BIT, &Cpu, &cbInstr); 838 838 if (RT_SUCCESS(rc)) 839 839 { -
trunk/src/VBox/VMM/VMMRC/PATMRC.cpp
r41668 r41674 523 523 rc = VBOXSTRICTRC_TODO(rcStrict); 524 524 #else 525 rc = DIS CoreOne((uintptr_t)&pRec->patch.aPrivInstr[0], cpu.mode, &cpu, &cbOp);525 rc = DISInstr(&pRec->patch.aPrivInstr[0], cpu.mode, &cpu, &cbOp); 526 526 if (RT_FAILURE(rc)) 527 527 {
Note:
See TracChangeset
for help on using the changeset viewer.