Address Translation: Make the Generic TLB only compile in SE mode.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 28 Aug 2007 01:30:58 +0000 (18:30 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 28 Aug 2007 01:30:58 +0000 (18:30 -0700)
--HG--
extra : convert_revision : 7eb9a78480174f754f51f75983ee5a1b31280bd3

src/sim/SConscript
src/sim/tlb.hh

index 1753b33c0879352edebb76fe28fbbfa96a8aa419..b0af4c795a11623ddd623738a4c310a051e28ec7 100644 (file)
@@ -48,12 +48,12 @@ Source('simulate.cc')
 Source('startup.cc')
 Source('stat_control.cc')
 Source('system.cc')
-Source('tlb.cc')
 
 if env['FULL_SYSTEM']:
     Source('arguments.cc')
     Source('pseudo_inst.cc')
 else:
+    Source('tlb.cc')
     SimObject('Process.py')
 
     Source('process.cc')
index b54eb501fd061a7456e0744ea4d91dc47791652f..c4c171015566ec8469d9e5abaced85c75a1d4725 100644 (file)
@@ -67,7 +67,7 @@ class GenericTLB : public GenericTLBBase
         if(doSizeCheck && !isPowerOf2(size))
             panic("Invalid request size!\n");
         if (doAlignmentCheck && ((size - 1) & paddr))
-            return Fault(new GenericAlignmentFault(paddr));
+            return new GenericAlignmentFault(paddr);
 
         return NoFault;
     }