From: Gabe Black Date: Mon, 27 Feb 2006 09:00:24 +0000 (-0500) Subject: Put the Alpha faults into the AlphaISA namespace X-Git-Tag: m5_2.0_beta1~87^2~66 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9c2b9e74fc459dc221035cb98e2a2e6a1540f9f;p=gem5.git Put the Alpha faults into the AlphaISA namespace --HG-- extra : convert_revision : d9586bb8ffaab74673aa0b3d17bb676b949ff212 --- 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__