From: Gabe Black Date: Mon, 31 Jan 2011 21:13:00 +0000 (-0800) Subject: Fault: Move the definition of NoFault from faults.hh to fault.hh. X-Git-Tag: stable_2012_02_02~629 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b4cd0303ea0e3b23e641933dbf0da57d1483764;p=gem5.git Fault: Move the definition of NoFault from faults.hh to fault.hh. Moving the definition of NoFault into fault.hh doesn't bring any new dependencies with it, and allows some files to include just fault.hh which has less baggage. NoFault will still be available to everything that includes faults.hh because it includes fault.hh. --- diff --git a/src/sim/fault.hh b/src/sim/fault.hh index ac0b691d0..26a133328 100644 --- a/src/sim/fault.hh +++ b/src/sim/fault.hh @@ -35,4 +35,6 @@ class FaultBase; template class RefCountingPtr; typedef RefCountingPtr Fault; +FaultBase * const NoFault = 0; + #endif // __SIM_FAULT_HH__ diff --git a/src/sim/faults.hh b/src/sim/faults.hh index e48928b2c..27cc7538c 100644 --- a/src/sim/faults.hh +++ b/src/sim/faults.hh @@ -61,8 +61,6 @@ class FaultBase : public RefCounted virtual bool isAlignmentFault() const {return false;} }; -FaultBase * const NoFault = 0; - class UnimpFault : public FaultBase { private: