mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[FAST486]
Don't overwrite the masked flags in IRET. svn path=/trunk/; revision=67533
This commit is contained in:
parent
dff30c48fa
commit
1317139297
1 changed files with 10 additions and 2 deletions
|
@ -4739,8 +4739,16 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeIret)
|
|||
State->Cpl = GET_SEGMENT_RPL(CodeSel);
|
||||
|
||||
/* Set the new flags */
|
||||
if (Size) State->Flags.Long = NewFlags.Long & PROT_MODE_FLAGS_MASK;
|
||||
else State->Flags.LowWord = NewFlags.LowWord & PROT_MODE_FLAGS_MASK;
|
||||
if (Size)
|
||||
{
|
||||
State->Flags.Long = (State->Flags.Long & ~PROT_MODE_FLAGS_MASK)
|
||||
| (NewFlags.Long & PROT_MODE_FLAGS_MASK);
|
||||
}
|
||||
else
|
||||
{
|
||||
State->Flags.LowWord = (State->Flags.LowWord & ~PROT_MODE_FLAGS_MASK)
|
||||
| (NewFlags.LowWord & PROT_MODE_FLAGS_MASK);
|
||||
}
|
||||
State->Flags.AlwaysSet = TRUE;
|
||||
|
||||
/* Set additional flags */
|
||||
|
|
Loading…
Reference in a new issue