VirtualBox

Changeset 42186 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jul 17, 2012 1:32:15 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79186
Message:

SELM,DIS,CPUM,EM: Hidden selector register cleanups.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CSAM.cpp

    r41965 r42186  
    22952295    {
    22962296        /* 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);
    22982298
    22992299        pInstrGC = SELMToFlat(pVM, DISSELREG_CS, pCtxCore, pInstrGC);
  • trunk/src/VBox/VMM/VMMR3/EMRaw.cpp

    r41939 r42186  
    685685            {
    686686                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);
    689688                if (RT_SUCCESS(rc))
    690689                {
     
    936935        {
    937936            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);
    940938            if (RT_SUCCESS(rc))
    941939            {
     
    10441042        if (    (pCtx->ss.Sel & X86_SEL_RPL) == 0
    10451043            &&  !pCtx->eflags.Bits.u1VM
    1046             &&  SELMGetCpuModeFromSelector(pVCpu, pCtx->eflags, pCtx->cs.Sel, &pCtx->cs) == DISCPUMODE_32BIT)
     1044            &&  CPUMGetGuestCodeBits(pVCpu) == 32)
    10471045        {
    10481046            STAM_PROFILE_START(&pVCpu->em.s.StatPrivEmu, a);
  • trunk/src/VBox/VMM/VMMR3/HWACCM.cpp

    r42033 r42186  
    18681868    PDISCPUSTATE    pDis = &pVCpu->hwaccm.s.DisState;
    18691869    uint32_t        cbOp;
    1870     int rc = EMInterpretDisasOne(pVM, pVCpu, CPUMCTX2CORE(pCtx), pDis, &cbOp);
     1870    int rc = EMInterpretDisasCurrent(pVM, pVCpu, pDis, &cbOp);
    18711871    AssertRC(rc);
    18721872    if (    rc == VINF_SUCCESS
     
    19201920
    19211921            pCtx->rip += cbOp;
    1922             rc = EMInterpretDisasOne(pVM, pVCpu, CPUMCTX2CORE(pCtx), pDis, &cbOp);
     1922            rc = EMInterpretDisasCurrent(pVM, pVCpu, pDis, &cbOp);
    19231923            DBGFR3DisasInstrCurrentLog(pVCpu, "Following read");
    19241924            pCtx->rip = uSavedRip;
     
    20412041    PDISCPUSTATE    pDis   = &pVCpu->hwaccm.s.DisState;
    20422042    uint32_t        cbOp;
    2043     int rc = EMInterpretDisasOne(pVM, pVCpu, CPUMCTX2CORE(pCtx), pDis, &cbOp);
     2043    int rc = EMInterpretDisasCurrent(pVM, pVCpu, pDis, &cbOp);
    20442044    AssertRC(rc);
    20452045    if (    rc == VINF_SUCCESS
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette