SE/FS: Remove the last references to FULL_SYSTEM from POWER.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 30 Oct 2011 10:55:24 +0000 (03:55 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 30 Oct 2011 10:55:24 +0000 (03:55 -0700)
src/arch/power/SConscript
src/arch/power/tlb.cc

index 366fc1e65af73eaf0687c421ac9723e5817fc122..e8d385f4d0087861f50e07a14a5c46712acd02c5 100644 (file)
@@ -41,7 +41,10 @@ if env['TARGET_ISA'] == 'power':
     Source('insts/condition.cc')
     Source('insts/static_inst.cc')
     Source('interrupts.cc')
+    Source('linux/linux.cc')
+    Source('linux/process.cc')
     Source('pagetable.cc')
+    Source('process.cc')
     Source('tlb.cc')
     Source('utility.cc')
     Source('vtophys.cc')
@@ -51,11 +54,6 @@ if env['TARGET_ISA'] == 'power':
 
     DebugFlag('Power')
 
-    if not env['FULL_SYSTEM']:
-        Source('process.cc')
-        Source('linux/linux.cc')
-        Source('linux/process.cc')
-
     # Add in files generated by the ISA description.
     isa_desc_files = env.ISADesc('isa/main.isa')
 
index 8a088032c77b38cb61dfbbf823e39307402d5a21..d9be7fa696d94ade5cd865923f78c3eb1b88b6d4 100644 (file)
@@ -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;
@@ -310,14 +311,14 @@ TLB::translateData(RequestPtr req, ThreadContext *tc, bool write)
 Fault
 TLB::translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode)
 {
-#if !FULL_SYSTEM
-    if (mode == Execute)
-        return translateInst(req, tc);
-    else
-        return translateData(req, tc, mode == Write);
-#else
-  fatal("translate atomic not yet implemented\n");
-#endif
+    if (FullSystem) {
+        fatal("translate atomic not yet implemented in full system mode.\n");
+    } else {
+        if (mode == Execute)
+            return translateInst(req, tc);
+        else
+            return translateData(req, tc, mode == Write);
+    }
 }
 
 void