VirtualBox

Changeset 31080 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Jul 24, 2010 5:25:32 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64027
Message:

PGM: Micro optimizations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r31067 r31080  
    20062006
    20072007/**
    2008  * Called whenever CR0 or CR4 in a way which may change
    2009  * the paging mode.
     2008 * Called whenever CR0 or CR4 in a way which may affect the paging mode.
    20102009 *
    20112010 * @returns VBox status code, with the following informational code for
     
    20342033        enmGuestMode = PGMMODE_PROTECTED;
    20352034    else if (!(cr4 & X86_CR4_PAE))
     2035    {
     2036        bool const fPse = !!(cr4 & X86_CR4_PSE);
     2037        if (pVCpu->pgm.s.fGst32BitPageSizeExtension != fPse)
     2038            Log(("PGMChangeMode: CR4.PSE %d -> %d\n", pVCpu->pgm.s.fGst32BitPageSizeExtension, fPse));
     2039        pVCpu->pgm.s.fGst32BitPageSizeExtension = fPse;
    20362040        enmGuestMode = PGMMODE_32_BIT;
     2041    }
    20372042    else if (!(efer & MSR_K6_EFER_LME))
    20382043    {
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