From f9c2b9e74fc459dc221035cb98e2a2e6a1540f9f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 27 Feb 2006 04:00:24 -0500 Subject: [PATCH] Put the Alpha faults into the AlphaISA namespace --HG-- extra : convert_revision : d9586bb8ffaab74673aa0b3d17bb676b949ff212 --- arch/alpha/faults.cc | 5 +++++ arch/alpha/faults.hh | 5 +++++ 2 files changed, 10 insertions(+) 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__ -- 2.30.2