VirtualBox

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


Ignore:
Timestamp:
Jun 27, 2012 11:59:46 PM (12 years ago)
Author:
vboxsync
Message:

CPUMGetGuestCPL: Drop the context core pointer and use the Guest state in CPUMCPU via pVCpu.

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

Legend:

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

    r41931 r41939  
    41494149     * Get the CPL first.
    41504150     */
    4151     *puCpl = CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(&pVCpu->cpum.s.Guest));
     4151    *puCpl = CPUMGetGuestCPL(pVCpu);
    41524152
    41534153    /*
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r41906 r41939  
    962962#ifdef LOG_ENABLED
    963963    PCPUMCTX pCtx = pVCpu->em.s.pCtx;
    964     uint32_t cpl = CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(pCtx));
     964    uint32_t cpl = CPUMGetGuestCPL(pVCpu);
    965965
    966966    if (pCtx->eflags.Bits.u1VM)
  • trunk/src/VBox/VMM/VMMR3/EMHwaccm.cpp

    r41906 r41939  
    511511            Log(("CPU%d: Pending hardware interrupt=0x%x cs:rip=%04X:%RGv\n", pVCpu->idCpu, TRPMGetTrapNo(pVCpu), pCtx->cs.Sel, (RTGCPTR)pCtx->rip));
    512512
    513         uint32_t cpl = CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(pCtx));
     513        uint32_t cpl = CPUMGetGuestCPL(pVCpu);
    514514
    515515        if (pVM->cCpus == 1)
  • trunk/src/VBox/VMM/VMMR3/EMRaw.cpp

    r41906 r41939  
    534534     * instead. One example is #DE.
    535535     */
    536     uint32_t uCpl = CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(pCtx));
     536    uint32_t uCpl = CPUMGetGuestCPL(pVCpu);
    537537    if (    uCpl == 0
    538538        &&  PATMIsPatchGCAddr(pVM, pCtx->eip))
  • trunk/src/VBox/VMM/VMMR3/PATM.cpp

    r41906 r41939  
    40834083    /* Make sure the code selector is wide open; otherwise refuse. */
    40844084    pCtx = CPUMQueryGuestCtxPtr(pVCpu);
    4085     if (CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(pCtx)) == 0)
     4085    if (CPUMGetGuestCPL(pVCpu) == 0)
    40864086    {
    40874087        RTRCPTR pInstrGCFlat = SELMToFlat(pVM, DISSELREG_CS, CPUMCTX2CORE(pCtx), pInstrGC);
Note: See TracChangeset for help on using the changeset viewer.

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