From: Gabe Black Date: Mon, 13 Oct 2008 03:29:52 +0000 (-0700) Subject: X86: Fix chks checking the submode for stack segments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15f5bb3055b70a43ba8b504b1453f51b2a6e1ee3;p=gem5.git X86: Fix chks checking the submode for stack segments. --- diff --git a/src/arch/x86/isa/microops/regop.isa b/src/arch/x86/isa/microops/regop.isa index 4f93fad80..b7883b2e2 100644 --- a/src/arch/x86/isa/microops/regop.isa +++ b/src/arch/x86/isa/microops/regop.isa @@ -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) ||