diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-02-25 10:18:22 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-02-25 10:18:22 -0800 |
commit | dc53ca89f685155ff00103ed013b1ed6a6ad91a6 (patch) | |
tree | 828f6e8583bc62e3182ff48e90e299138acd4307 /src/arch/x86/tlb.cc | |
parent | 897c3748925e83301027d85dbc4c0479d972fda4 (diff) | |
download | gem5-dc53ca89f685155ff00103ed013b1ed6a6ad91a6.tar.xz |
X86: Add a flag to force memory accesses to happen at CPL 0.
Diffstat (limited to 'src/arch/x86/tlb.cc')
-rw-r--r-- | src/arch/x86/tlb.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/x86/tlb.cc b/src/arch/x86/tlb.cc index 3962cd607..372c8b997 100644 --- a/src/arch/x86/tlb.cc +++ b/src/arch/x86/tlb.cc @@ -59,6 +59,7 @@ #include "config/full_system.hh" +#include "arch/x86/insts/microldstop.hh" #include "arch/x86/pagetable.hh" #include "arch/x86/tlb.hh" #include "arch/x86/x86_traits.hh" @@ -195,7 +196,7 @@ TLB::translate(RequestPtr req, ThreadContext *tc, uint32_t flags = req->getFlags(); bool storeCheck = flags & StoreCheck; - int seg = flags & mask(4); + int seg = flags & SegmentFlagMask; //XXX Junk code to surpress the warning if (storeCheck); |