summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-12 20:29:52 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-12 20:29:52 -0700
commit15f5bb3055b70a43ba8b504b1453f51b2a6e1ee3 (patch)
treefa14bbc8f7ae13c01a8b702c81e361df85878c87 /src/arch
parent9e1fe2050ac55c28b6601770014193321a4013d0 (diff)
downloadgem5-15f5bb3055b70a43ba8b504b1453f51b2a6e1ee3.tar.xz
X86: Fix chks checking the submode for stack segments.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/isa/microops/regop.isa3
1 files changed, 2 insertions, 1 deletions
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) ||