Changeset 40451 in vbox
- Timestamp:
- Mar 13, 2012 4:13:54 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/em.h
r40450 r40451 158 158 PDISCPUSTATE pDISState, unsigned *pcbInstr); 159 159 VMMDECL(VBOXSTRICTRC) EMInterpretInstruction(PVMCPU pVCpu, PCPUMCTXCORE pCoreCtx, RTGCPTR pvFault); 160 VMMDECL(VBOXSTRICTRC) EMInterpretInstructionEx(PVMCPU pVCpu, PCPUMCTXCORE p CoreCtx, RTGCPTR pvFault, uint32_t *pcbSize);161 VMMDECL(VBOXSTRICTRC) EMInterpretInstruction CpuUpdtPC(PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pCoreCtx, RTGCPTR pvFault, EMCODETYPE enmCodeType);160 VMMDECL(VBOXSTRICTRC) EMInterpretInstructionEx(PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbWritten); 161 VMMDECL(VBOXSTRICTRC) EMInterpretInstructionDisasState(PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pCoreCtx, RTGCPTR pvFault, EMCODETYPE enmCodeType); 162 162 163 163 #ifndef VBOX_WITH_IEM -
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r40450 r40451 541 541 * to worry about e.g. invalid modrm combinations (!) 542 542 */ 543 VMMDECL(VBOXSTRICTRC) EMInterpretInstructionEx(PVM pVM, PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbWritten)543 VMMDECL(VBOXSTRICTRC) EMInterpretInstructionEx(PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbWritten) 544 544 { 545 545 LogFlow(("EMInterpretInstructionEx %RGv fault %RGv\n", (RTGCPTR)pRegFrame->rip, pvFault)); … … 606 606 * Make sure this can't happen!! (will add some assertions/checks later) 607 607 */ 608 VMMDECL(VBOXSTRICTRC) EMInterpretInstruction CpuUpdtPC(PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame,609 RTGCPTR pvFault, EMCODETYPE enmCodeType)608 VMMDECL(VBOXSTRICTRC) EMInterpretInstructionDisasState(PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, 609 RTGCPTR pvFault, EMCODETYPE enmCodeType) 610 610 { 611 611 STAM_PROFILE_START(&pVCpu->em.s.CTX_SUFF(pStats)->CTX_MID_Z(Stat,Emulate), a); -
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r40450 r40451 840 840 * Must do this in raw mode (!); XP boot will fail otherwise. 841 841 */ 842 VBOXSTRICTRC rc2 = EMInterpretInstruction CpuUpdtPC(pVCpu, pDis, pRegFrame, pvFault, EMCODETYPE_ALL);842 VBOXSTRICTRC rc2 = EMInterpretInstructionDisasState(pVCpu, pDis, pRegFrame, pvFault, EMCODETYPE_ALL); 843 843 if (RT_SUCCESS(rc2)) 844 844 AssertMsg(rc2 == VINF_SUCCESS, ("%Rrc\n", VBOXSTRICTRC_VAL(rc2))); /* ASSUMES no complicated stuff here. */ … … 979 979 * Interpret the instruction. 980 980 */ 981 VBOXSTRICTRC rc = EMInterpretInstruction CpuUpdtPC(pVCpu, pDis, pRegFrame, pvFault, EMCODETYPE_ALL);981 VBOXSTRICTRC rc = EMInterpretInstructionDisasState(pVCpu, pDis, pRegFrame, pvFault, EMCODETYPE_ALL); 982 982 if (RT_SUCCESS(rc)) 983 983 AssertMsg(rc == VINF_SUCCESS, ("%Rrc\n", VBOXSTRICTRC_VAL(rc))); /* ASSUMES no complicated stuff here. */ -
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r40450 r40451 3335 3335 3336 3336 default: 3337 rc = EMInterpretInstruction CpuUpdtPC(pVCpu, pDis, CPUMCTX2CORE(pCtx), 0, EMCODETYPE_SUPERVISOR);3337 rc = EMInterpretInstructionDisasState(pVCpu, pDis, CPUMCTX2CORE(pCtx), 0, EMCODETYPE_SUPERVISOR); 3338 3338 fUpdateRIP = false; 3339 3339 break; -
trunk/src/VBox/VMM/VMMR3/EMRaw.cpp
r40450 r40451 605 605 AssertRC(rc); 606 606 607 rc = VBOXSTRICTRC_TODO(EMInterpretInstruction CpuUpdtPC(pVCpu, &cpu, CPUMCTX2CORE(pCtx), 0, EMCODETYPE_SUPERVISOR));607 rc = VBOXSTRICTRC_TODO(EMInterpretInstructionDisasState(pVCpu, &cpu, CPUMCTX2CORE(pCtx), 0, EMCODETYPE_SUPERVISOR)); 608 608 if (RT_SUCCESS(rc)) 609 609 return rc; … … 1094 1094 #endif 1095 1095 1096 rc = VBOXSTRICTRC_TODO(EMInterpretInstruction CpuUpdtPC(pVCpu, &Cpu, CPUMCTX2CORE(pCtx), 0, EMCODETYPE_SUPERVISOR));1096 rc = VBOXSTRICTRC_TODO(EMInterpretInstructionDisasState(pVCpu, &Cpu, CPUMCTX2CORE(pCtx), 0, EMCODETYPE_SUPERVISOR)); 1097 1097 if (RT_SUCCESS(rc)) 1098 1098 { -
trunk/src/VBox/VMM/VMMRC/PATMRC.cpp
r40450 r40451 520 520 } 521 521 522 rc = EMInterpretInstruction CpuUpdtPC(VMMGetCpu0(pVM), &cpu, pRegFrame, 0 /* not relevant here */,523 EMCODETYPE_SUPERVISOR);522 rc = EMInterpretInstructionDisasState(VMMGetCpu0(pVM), &cpu, pRegFrame, 0 /* not relevant here */, 523 EMCODETYPE_SUPERVISOR); 524 524 if (rc != VINF_SUCCESS) 525 525 { -
trunk/src/VBox/VMM/VMMRC/TRPMRCHandlers.cpp
r40450 r40451 556 556 { 557 557 LogFlow(("TRPMGCTrap06Handler: -> EMInterpretInstructionCPU\n")); 558 rc = EMInterpretInstruction CpuUpdtPC(pVCpu, &Cpu, pRegFrame, PC, EMCODETYPE_SUPERVISOR);558 rc = EMInterpretInstructionDisasState(pVCpu, &Cpu, pRegFrame, PC, EMCODETYPE_SUPERVISOR); 559 559 } 560 560 /* Never generate a raw trap here; it might be an instruction, that requires emulation. */ … … 798 798 case OP_WRMSR: 799 799 { 800 rc = EMInterpretInstruction CpuUpdtPC(pVCpu, pCpu, pRegFrame, PC, EMCODETYPE_SUPERVISOR);800 rc = EMInterpretInstructionDisasState(pVCpu, pCpu, pRegFrame, PC, EMCODETYPE_SUPERVISOR); 801 801 if (rc == VERR_EM_INTERPRETER) 802 802 rc = VINF_EM_RAW_EXCEPTION_PRIVILEGED; … … 874 874 case OP_RDPMC: 875 875 { 876 rc = EMInterpretInstruction CpuUpdtPC(pVCpu, pCpu, pRegFrame, PC, EMCODETYPE_SUPERVISOR);876 rc = EMInterpretInstructionDisasState(pVCpu, pCpu, pRegFrame, PC, EMCODETYPE_SUPERVISOR); 877 877 if (rc == VERR_EM_INTERPRETER) 878 878 rc = VINF_EM_RAW_EXCEPTION_PRIVILEGED;
Note:
See TracChangeset
for help on using the changeset viewer.