Changeset 25554 in vbox
- Timestamp:
- Dec 22, 2009 10:09:05 AM (15 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r25550 r25554 258 258 VMMDECL(int) EMInterpretDisasOneEx(PVM pVM, PVMCPU pVCpu, RTGCUINTPTR GCPtrInstr, PCCPUMCTXCORE pCtxCore, PDISCPUSTATE pDis, unsigned *pcbInstr) 259 259 { 260 int rc; 261 262 #ifndef IN_RC 260 int rc; 263 261 EMDISSTATE State; 264 262 … … 266 264 State.pVCpu = pVCpu; 267 265 266 #ifdef IN_RC 267 State.GCPtr = GCPtrInstr; 268 #else /* ring 0/3 */ 268 269 rc = PGMPhysSimpleReadGCPtr(pVCpu, &State.aOpcode, GCPtrInstr, sizeof(State.aOpcode)); 269 270 if (RT_SUCCESS(rc)) … … 286 287 287 288 rc = DISCoreOneEx(GCPtrInstr, SELMGetCpuModeFromSelector(pVM, pCtxCore->eflags, pCtxCore->cs, (PCPUMSELREGHID)&pCtxCore->csHid), 288 #ifdef IN_RC 289 NULL, NULL, 290 #else 291 EMReadBytes, &State, 292 #endif 293 pDis, pcbInstr); 289 EMReadBytes, &State, 290 pDis, pcbInstr); 294 291 if (RT_SUCCESS(rc)) 295 292 return VINF_SUCCESS; -
trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp
r25252 r25554 862 862 DISCPUSTATE Cpu; 863 863 uint32_t cbOp; 864 rc = DISCoreOneEx((RTGCUINTPTR)PC, cBits == 32 ? CPUMODE_32BIT : cBits == 16 ? CPUMODE_16BIT : CPUMODE_64BIT, 865 NULL, NULL, &Cpu, &cbOp); 864 rc = EMInterpretDisasOneEx(pVM, pVCpu, (RTGCUINTPTR)PC, pRegFrame, &Cpu, &cbOp); 866 865 if (RT_FAILURE(rc)) 867 866 {
Note:
See TracChangeset
for help on using the changeset viewer.