Changeset 60875 in vbox for trunk/src/VBox
- Timestamp:
- May 7, 2016 6:09:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMRC/PATMRC.cpp
r58126 r60875 27 27 #include <VBox/vmm/mm.h> 28 28 #include <VBox/vmm/em.h> 29 #ifdef VBOX_WITH_IEM 30 # include <VBox/vmm/iem.h> 31 #endif 29 #include <VBox/vmm/iem.h> 32 30 #include <VBox/vmm/selm.h> 33 31 #include <VBox/vmm/mm.h> … … 462 460 { 463 461 PPATMPATCHREC pRec; 464 int rc;465 462 466 463 AssertReturn(!pCtxCore->eflags.Bits.u1VM … … 532 529 } 533 530 534 #ifdef VBOX_WITH_IEM535 531 VBOXSTRICTRC rcStrict; 536 532 rcStrict = IEMExecOneBypassWithPrefetchedByPC(pVCpu, pCtxCore, pCtxCore->rip, 537 533 pRec->patch.aPrivInstr, pRec->patch.cbPrivInstr); 538 rc = VBOXSTRICTRC_TODO(rcStrict); 539 #else 540 uint32_t cbOp; 541 DISCPUSTATE cpu; 542 rc = DISInstr(&pRec->patch.aPrivInstr[0], enmCpuMode, &cpu, &cbOp); 543 if (RT_FAILURE(rc)) 544 { 545 Log(("DISCoreOne failed with %Rrc\n", rc)); 534 if (RT_FAILURE(rcStrict)) 535 { 536 Log(("EMInterpretInstructionCPU failed with %Rrc\n", VBOXSTRICTRC_TODO(rcStrict))); 546 537 PATM_STAT_FAULT_INC(&pRec->patch); 547 538 pRec->patch.cTraps++; 548 539 return VINF_EM_RAW_EMULATE_INSTR; 549 540 } 550 551 rc = VBOXSTRICTRC_TODO(EMInterpretInstructionDisasState(pVCpu, &cpu, pCtxCore, 0 /* not relevant here */, 552 EMCODETYPE_SUPERVISOR)); 553 #endif 554 if (RT_FAILURE(rc)) 555 { 556 Log(("EMInterpretInstructionCPU failed with %Rrc\n", rc)); 557 PATM_STAT_FAULT_INC(&pRec->patch); 558 pRec->patch.cTraps++; 559 return VINF_EM_RAW_EMULATE_INSTR; 560 } 561 return rc; 541 return VBOXSTRICTRC_TODO(rcStrict); 562 542 } 563 543 }
Note:
See TracChangeset
for help on using the changeset viewer.