VirtualBox

Ignore:
Timestamp:
Jan 12, 2009 4:17:02 PM (16 years ago)
Author:
vboxsync
Message:

REM: restored 0xffff'ing of mask, made IF reading in VME fully correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/target-i386/op_helper.c

    r15899 r15901  
    153153        raise_exception(EXCP0D_GPF);
    154154    } else {
    155         load_eflags(new_eflags, TF_MASK | AC_MASK | ID_MASK | NT_MASK);
     155        load_eflags(new_eflags,
     156                    (TF_MASK | AC_MASK | ID_MASK | NT_MASK) & 0xffff);
    156157
    157158        if (new_eflags & IF_MASK) {
     
    171172    if (env->eflags & VIF_MASK)
    172173        eflags |= IF_MASK;
    173     return eflags;
     174    else
     175        eflags &= ~IF_MASK;
     176    return eflags & 0xffff;
    174177}
    175178
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