VirtualBox

Changeset 12728 in vbox


Ignore:
Timestamp:
Sep 25, 2008 12:51:51 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37046
Message:

Added CPUMIsGuestInRealModeEx

File:
1 edited

Legend:

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

    r12662 r12728  
    709709
    710710/**
     711 * Tests if the guest is running in real mode or not.
     712 *
     713 * @returns true if in real mode, otherwise false.
     714 * @param   pCtx    Current CPU context
     715 */
     716DECLINLINE(bool) CPUMIsGuestInRealModeEx(PCPUMCTX pCtx)
     717{
     718    return !(pCtx->cr0 & X86_CR0_PE);
     719}
     720
     721/**
    711722 * Tests if the guest is running in protected or not.
    712723 *
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