VirtualBox

Changeset 44189 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Dec 20, 2012 10:57:24 AM (12 years ago)
Author:
vboxsync
Message:

CPUM: helper function.

File:
1 edited

Legend:

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

    r44078 r44189  
    220220
    221221/**
     222 * Tests if the guest is running in virtual 8086 mode.
     223 *
     224 * @returns @c true if it is, @c false if not.
     225 * @param   pCtx    Current CPU context
     226 */
     227DECLINLINE(bool) CPUMIsGuestInV86ModeEx(PCPUMCTX pCtx)
     228{
     229    return (pCtx->eflags.Bits.u1VM == 1);
     230}
     231
     232/**
    222233 * Tests if the guest is running in paged protected or not.
    223234 *
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