X86: Fix chks checking the submode for stack segments.
This commit is contained in:
parent
9e1fe2050a
commit
15f5bb3055
1 changed files with 2 additions and 1 deletions
|
@ -1048,7 +1048,8 @@ let {{
|
|||
return new StackFault;
|
||||
}
|
||||
} else {
|
||||
if ((m5reg.mode != SixtyFourBitMode || m5reg.cpl == 3) ||
|
||||
if ((m5reg.submode != SixtyFourBitMode ||
|
||||
m5reg.cpl == 3) ||
|
||||
!(desc.s == 1 &&
|
||||
desc.type.codeOrData == 0 && desc.type.w) ||
|
||||
(desc.dpl != m5reg.cpl) ||
|
||||
|
|
Loading…
Reference in a new issue