VirtualBox

Ignore:
Timestamp:
Jan 15, 2010 2:26:49 PM (15 years ago)
Author:
vboxsync
Message:

VMM: More micro optimizations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r25837 r25866  
    105105    if (    !Pde.b.u1Size
    106106# if PGM_GST_TYPE != PGM_TYPE_AMD64
    107         ||  !(CPUMGetGuestCR4(pVCpu) & X86_CR4_PSE)
     107        ||  !CPUMIsGuestPageSizeExtEnabled(pVCpu)
    108108# endif
    109109        )
     
    222222        if (    !Pde.b.u1Size
    223223# if PGM_GST_TYPE != PGM_TYPE_AMD64
    224             ||  !(CPUMGetGuestCR4(pVCpu) & X86_CR4_PSE)
     224            ||  !CPUMIsGuestPageSizeExtEnabled(pVCpu)
    225225# endif
    226226            )
     
    331331static DECLCALLBACK(int) PGM_GST_NAME(VirtHandlerUpdateOne)(PAVLROGCPTRNODECORE pNode, void *pvUser)
    332332{
    333     PPGMVIRTHANDLER pCur  = (PPGMVIRTHANDLER)pNode;
     333    PPGMVIRTHANDLER pCur   = (PPGMVIRTHANDLER)pNode;
    334334    PPGMHVUSTATE    pState = (PPGMHVUSTATE)pvUser;
    335     PVM             pVM = pState->pVM;
    336     PVMCPU          pVCpu = pState->pVCpu;
     335    PVM             pVM    = pState->pVM;
     336    PVMCPU          pVCpu  = pState->pVCpu;
    337337    Assert(pCur->enmType != PGMVIRTHANDLERTYPE_HYPERVISOR);
    338338
     
    341341#endif
    342342
    343     RTGCPTR         GCPtr = pCur->Core.Key;
     343    RTGCPTR         GCPtr  = pCur->Core.Key;
    344344#if PGM_GST_MODE != PGM_MODE_AMD64
    345345    /* skip all stuff above 4GB if not AMD64 mode. */
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