summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-04-13 04:14:15 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-04-13 04:14:15 -0700
commit5c791916036b800509a6b1b72d442cb9858d995c (patch)
treed80072c6afe4d7467fb7351ec8cfcc4f6c8bdfb6
parentc87c9950dfa094b0c3820f9abca721b0d32d2a09 (diff)
downloadgem5-5c791916036b800509a6b1b72d442cb9858d995c.tar.xz
X86: Fix minor bug in the page table walker from TLB shuffling.
-rw-r--r--src/arch/x86/pagetable_walker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/pagetable_walker.cc b/src/arch/x86/pagetable_walker.cc
index 69ded7cbc..d43502760 100644
--- a/src/arch/x86/pagetable_walker.cc
+++ b/src/arch/x86/pagetable_walker.cc
@@ -98,7 +98,7 @@ Walker::doNext(PacketPtr &write)
bool uncacheable = pte.pcd;
Addr nextRead = 0;
bool doWrite = false;
- bool badNX = pte.nx && mode == BaseTLB::Write && enableNX;
+ bool badNX = pte.nx && mode == BaseTLB::Execute && enableNX;
switch(state) {
case LongPML4:
DPRINTF(PageTableWalker,