VirtualBox

Changeset 9649 in vbox for trunk/include


Ignore:
Timestamp:
Jun 12, 2008 9:48:30 AM (17 years ago)
Author:
vboxsync
Message:

Added CPUMIsGuestInLongMode.

File:
1 edited

Legend:

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

    r9647 r9649  
    518518
    519519/**
     520 * Tests if the guest is running in long mode or not.
     521 *
     522 * @returns true if in long mode, otherwise false.
     523 * @param   pVM     The VM handle.
     524 */
     525DECLINLINE(bool) CPUMIsGuestInLongMode(PVM pVM)
     526{
     527    return (CPUMGetGuestEFER(pVM) & MSR_K6_EFER_LMA) == MSR_K6_EFER_LMA;
     528}
     529
     530/**
    520531 * Tests if the guest is running in paged protected or not.
    521532 *
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