X86: Fix chks checking the submode for stack segments.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 13 Oct 2008 03:29:52 +0000 (20:29 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 13 Oct 2008 03:29:52 +0000 (20:29 -0700)
src/arch/x86/isa/microops/regop.isa

index 4f93fad8050ae401f547be494a8cf15d0b517e9a..b7883b2e2a3f6f9f5f96bd153ebda07f23ffb5a0 100644 (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) ||