Changeset 42186 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Jul 17, 2012 1:32:15 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 79186
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CSAM.cpp
r41965 r42186 2295 2295 { 2296 2296 /* Assuming 32 bits code for now. */ 2297 Assert( SELMGetCpuModeFromSelector(VMMGetCpu0(pVM), pCtxCore->eflags, pCtxCore->cs.Sel, &pCtxCore->cs) == DISCPUMODE_32BIT);2297 Assert(CPUMGetGuestCodeBits(VMMGetCpu0(pVM)) == 32); 2298 2298 2299 2299 pInstrGC = SELMToFlat(pVM, DISSELREG_CS, pCtxCore, pInstrGC); -
trunk/src/VBox/VMM/VMMR3/EMRaw.cpp
r41939 r42186 685 685 { 686 686 rc = PATMR3InstallPatch(pVM, SELMToFlat(pVM, DISSELREG_CS, CPUMCTX2CORE(pCtx), pCtx->eip), 687 SELMGetCpuModeFromSelector(pVCpu, pCtx->eflags, pCtx->cs.Sel, &pCtx->cs) 688 == DISCPUMODE_32BIT ? PATMFL_CODE32 : 0); 687 CPUMGetGuestCodeBits(pVCpu) == 32 ? PATMFL_CODE32 : 0); 689 688 if (RT_SUCCESS(rc)) 690 689 { … … 936 935 { 937 936 int rc = PATMR3InstallPatch(pVM, SELMToFlat(pVM, DISSELREG_CS, CPUMCTX2CORE(pCtx), pCtx->eip), 938 ( SELMGetCpuModeFromSelector(pVCpu, pCtx->eflags, pCtx->cs.Sel, &pCtx->cs) 939 == DISCPUMODE_32BIT) ? PATMFL_CODE32 : 0); 937 CPUMGetGuestCodeBits(pVCpu) == 32 ? PATMFL_CODE32 : 0); 940 938 if (RT_SUCCESS(rc)) 941 939 { … … 1044 1042 if ( (pCtx->ss.Sel & X86_SEL_RPL) == 0 1045 1043 && !pCtx->eflags.Bits.u1VM 1046 && SELMGetCpuModeFromSelector(pVCpu, pCtx->eflags, pCtx->cs.Sel, &pCtx->cs) == DISCPUMODE_32BIT)1044 && CPUMGetGuestCodeBits(pVCpu) == 32) 1047 1045 { 1048 1046 STAM_PROFILE_START(&pVCpu->em.s.StatPrivEmu, a); -
trunk/src/VBox/VMM/VMMR3/HWACCM.cpp
r42033 r42186 1868 1868 PDISCPUSTATE pDis = &pVCpu->hwaccm.s.DisState; 1869 1869 uint32_t cbOp; 1870 int rc = EMInterpretDisas One(pVM, pVCpu, CPUMCTX2CORE(pCtx), pDis, &cbOp);1870 int rc = EMInterpretDisasCurrent(pVM, pVCpu, pDis, &cbOp); 1871 1871 AssertRC(rc); 1872 1872 if ( rc == VINF_SUCCESS … … 1920 1920 1921 1921 pCtx->rip += cbOp; 1922 rc = EMInterpretDisas One(pVM, pVCpu, CPUMCTX2CORE(pCtx), pDis, &cbOp);1922 rc = EMInterpretDisasCurrent(pVM, pVCpu, pDis, &cbOp); 1923 1923 DBGFR3DisasInstrCurrentLog(pVCpu, "Following read"); 1924 1924 pCtx->rip = uSavedRip; … … 2041 2041 PDISCPUSTATE pDis = &pVCpu->hwaccm.s.DisState; 2042 2042 uint32_t cbOp; 2043 int rc = EMInterpretDisas One(pVM, pVCpu, CPUMCTX2CORE(pCtx), pDis, &cbOp);2043 int rc = EMInterpretDisasCurrent(pVM, pVCpu, pDis, &cbOp); 2044 2044 AssertRC(rc); 2045 2045 if ( rc == VINF_SUCCESS
Note:
See TracChangeset
for help on using the changeset viewer.