VirtualBox

Changeset 1516 in vbox for trunk/src/recompiler/target-i386


Ignore:
Timestamp:
Mar 15, 2007 3:58:38 PM (18 years ago)
Author:
vboxsync
Message:

iret with cpl=0 is allowed to change VIF_MASK & VIP_MASK too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/target-i386/helper.c

    r1505 r1516  
    24112411        eflags_mask = TF_MASK | AC_MASK | ID_MASK | RF_MASK | NT_MASK;
    24122412        if (cpl == 0)
     2413#ifdef VBOX
     2414            eflags_mask |= IOPL_MASK | VIF_MASK | VIP_MASK;
     2415#else
    24132416            eflags_mask |= IOPL_MASK;
     2417#endif
     2418
    24142419        iopl = (env->eflags >> IOPL_SHIFT) & 3;
    24152420        if (cpl <= iopl)
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