Put the Alpha faults into the AlphaISA namespace

--HG--
extra : convert_revision : d9586bb8ffaab74673aa0b3d17bb676b949ff212
This commit is contained in:
Gabe Black 2006-02-27 04:00:24 -05:00
parent 444f520f7e
commit f9c2b9e74f
2 changed files with 10 additions and 0 deletions

View file

@ -28,6 +28,9 @@
#include "arch/alpha/faults.hh" #include "arch/alpha/faults.hh"
namespace AlphaISA
{
FaultName AlphaFault::_name = "alphafault"; FaultName AlphaFault::_name = "alphafault";
FaultVect AlphaFault::_vect = 0x0000; FaultVect AlphaFault::_vect = 0x0000;
FaultStat AlphaFault::_stat; FaultStat AlphaFault::_stat;
@ -92,6 +95,8 @@ FaultName IntegerOverflowFault::_name = "intover";
FaultVect IntegerOverflowFault::_vect = 0x0501; FaultVect IntegerOverflowFault::_vect = 0x0501;
FaultStat IntegerOverflowFault::_stat; FaultStat IntegerOverflowFault::_stat;
} // namespace AlphaISA
/*Fault * ListOfFaults[] = { /*Fault * ListOfFaults[] = {
(Fault *)&NoFault, (Fault *)&NoFault,
(Fault *)&ResetFault, (Fault *)&ResetFault,

View file

@ -33,6 +33,9 @@
// The design of the "name" and "vect" functions is in sim/faults.hh // The design of the "name" and "vect" functions is in sim/faults.hh
namespace AlphaISA
{
typedef const Addr FaultVect; typedef const Addr FaultVect;
class AlphaFault : public FaultBase class AlphaFault : public FaultBase
@ -241,4 +244,6 @@ class IntegerOverflowFault : public AlphaFault
FaultStat & stat() {return _stat;} FaultStat & stat() {return _stat;}
}; };
} // AlphaISA namespace
#endif // __FAULTS_HH__ #endif // __FAULTS_HH__