From: Gabe Black Date: Tue, 28 Aug 2007 01:30:58 +0000 (-0700) Subject: Address Translation: Make the Generic TLB only compile in SE mode. X-Git-Tag: m5_2.0_beta4~159 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13b1f7231c8a30fd0a7c7a5b0df6ba4c75430943;p=gem5.git Address Translation: Make the Generic TLB only compile in SE mode. --HG-- extra : convert_revision : 7eb9a78480174f754f51f75983ee5a1b31280bd3 --- diff --git a/src/sim/SConscript b/src/sim/SConscript index 1753b33c0..b0af4c795 100644 --- a/src/sim/SConscript +++ b/src/sim/SConscript @@ -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') diff --git a/src/sim/tlb.hh b/src/sim/tlb.hh index b54eb501f..c4c171015 100644 --- a/src/sim/tlb.hh +++ b/src/sim/tlb.hh @@ -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; }