summaryrefslogtreecommitdiff
path: root/src/arch/power/tlb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/power/tlb.cc')
-rw-r--r--src/arch/power/tlb.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/power/tlb.cc b/src/arch/power/tlb.cc
index 0b3edd5a2..9f535e9e5 100644
--- a/src/arch/power/tlb.cc
+++ b/src/arch/power/tlb.cc
@@ -50,6 +50,7 @@
#include "debug/TLB.hh"
#include "mem/page_table.hh"
#include "params/PowerTLB.hh"
+#include "sim/full_system.hh"
#include "sim/process.hh"
using namespace std;
@@ -308,14 +309,13 @@ TLB::translateData(RequestPtr req, ThreadContext *tc, bool write)
Fault
TLB::translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode)
{
-#if !FULL_SYSTEM
+ if (FullSystem)
+ fatal("translate atomic not yet implemented in full system mode.\n");
+
if (mode == Execute)
return translateInst(req, tc);
else
return translateData(req, tc, mode == Write);
-#else
- fatal("translate atomic not yet implemented\n");
-#endif
}
void