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.
This commit is contained in:
Gabe Black 2011-01-31 13:13:00 -08:00
parent 048b1e5843
commit 4b4cd0303e
2 changed files with 2 additions and 2 deletions

View file

@ -35,4 +35,6 @@ class FaultBase;
template <class T> class RefCountingPtr;
typedef RefCountingPtr<FaultBase> Fault;
FaultBase * const NoFault = 0;
#endif // __SIM_FAULT_HH__

View file

@ -61,8 +61,6 @@ class FaultBase : public RefCounted
virtual bool isAlignmentFault() const {return false;}
};
FaultBase * const NoFault = 0;
class UnimpFault : public FaultBase
{
private: