diff --git a/arch/alpha/faults.cc b/arch/alpha/faults.cc index 1df0de7c1..5033f9fcd 100644 --- a/arch/alpha/faults.cc +++ b/arch/alpha/faults.cc @@ -28,6 +28,9 @@ #include "arch/alpha/faults.hh" +namespace AlphaISA +{ + FaultName AlphaFault::_name = "alphafault"; FaultVect AlphaFault::_vect = 0x0000; FaultStat AlphaFault::_stat; @@ -92,6 +95,8 @@ FaultName IntegerOverflowFault::_name = "intover"; FaultVect IntegerOverflowFault::_vect = 0x0501; FaultStat IntegerOverflowFault::_stat; +} // namespace AlphaISA + /*Fault * ListOfFaults[] = { (Fault *)&NoFault, (Fault *)&ResetFault, diff --git a/arch/alpha/faults.hh b/arch/alpha/faults.hh index 2004c0911..fedbadd4d 100644 --- a/arch/alpha/faults.hh +++ b/arch/alpha/faults.hh @@ -33,6 +33,9 @@ // The design of the "name" and "vect" functions is in sim/faults.hh +namespace AlphaISA +{ + typedef const Addr FaultVect; class AlphaFault : public FaultBase @@ -241,4 +244,6 @@ class IntegerOverflowFault : public AlphaFault FaultStat & stat() {return _stat;} }; +} // AlphaISA namespace + #endif // __FAULTS_HH__