summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-02-27 04:00:24 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-02-27 04:00:24 -0500
commitf9c2b9e74fc459dc221035cb98e2a2e6a1540f9f (patch)
tree66e7b59e8385727935d274ff3a213d58fbf64a10
parent444f520f7e2da9468fa622dcf51859915bd31fd6 (diff)
downloadgem5-f9c2b9e74fc459dc221035cb98e2a2e6a1540f9f.tar.xz
Put the Alpha faults into the AlphaISA namespace
--HG-- extra : convert_revision : d9586bb8ffaab74673aa0b3d17bb676b949ff212
-rw-r--r--arch/alpha/faults.cc5
-rw-r--r--arch/alpha/faults.hh5
2 files changed, 10 insertions, 0 deletions
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__