summaryrefslogtreecommitdiff
path: root/src/sim/tlb.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-11-02 02:11:14 -0700
committerGabe Black <gblack@eecs.umich.edu>2011-11-02 02:11:14 -0700
commit8b4a3f4070f6d0af07c3f08dcdbd8b6aa05e34f4 (patch)
tree181f9eb23643f80043908b1726c71846beae0463 /src/sim/tlb.cc
parentfb15604f2c20391ec47bc9727b0fc1eceb4467db (diff)
downloadgem5-8b4a3f4070f6d0af07c3f08dcdbd8b6aa05e34f4.tar.xz
SE/FS: Get rid of FULL_SYSTEM in sim.
Diffstat (limited to 'src/sim/tlb.cc')
-rw-r--r--src/sim/tlb.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sim/tlb.cc b/src/sim/tlb.cc
index 8cde0db2e..86428f168 100644
--- a/src/sim/tlb.cc
+++ b/src/sim/tlb.cc
@@ -31,23 +31,23 @@
#include "cpu/thread_context.hh"
#include "mem/page_table.hh"
#include "sim/faults.hh"
+#include "sim/full_system.hh"
#include "sim/process.hh"
#include "sim/tlb.hh"
Fault
GenericTLB::translateAtomic(RequestPtr req, ThreadContext *tc, Mode)
{
-#if FULL_SYSTEM
+ if (FullSystem)
panic("Generic translation shouldn't be used in full system mode.\n");
-#else
- Process * p = tc->getProcessPtr();
- Fault fault = p->pTable->translate(req);
- if(fault != NoFault)
- return fault;
+ Process * p = tc->getProcessPtr();
- return NoFault;
-#endif
+ Fault fault = p->pTable->translate(req);
+ if(fault != NoFault)
+ return fault;
+
+ return NoFault;
}
void