X86: Fix chks checking the submode for stack segments.

This commit is contained in:
Gabe Black 2008-10-12 20:29:52 -07:00
parent 9e1fe2050a
commit 15f5bb3055

View file

@ -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) ||