VirtualBox

Changeset 16598 in vbox for trunk


Ignore:
Timestamp:
Feb 9, 2009 4:09:14 PM (16 years ago)
Author:
vboxsync
Message:

Added CPUMIsGuestInPAEMode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/cpum.h

    r14870 r16598  
    826826 *
    827827 * @returns true if in PAE mode, otherwise false.
     828 * @param   pVM     The VM handle.
     829 */
     830DECLINLINE(bool) CPUMIsGuestInPAEMode(PVM pVM)
     831{
     832    return (    CPUMIsGuestInPagedProtectedMode(pVM)
     833            &&  (CPUMGetGuestCR4(pVM) & X86_CR4_PAE)
     834            &&  !CPUMIsGuestInLongMode(pVM));
     835}
     836
     837/**
     838 * Tests if the guest is running in PAE mode or not.
     839 *
     840 * @returns true if in PAE mode, otherwise false.
    828841 * @param   pCtx    Current CPU context
    829842 */
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