Changed the CleanWindow fault from an enumerate fault into a regular one.

--HG--
extra : convert_revision : bf43015f5e47768a6e07ce36dc66a38426beceee
This commit is contained in:
Gabe Black 2006-04-06 14:53:14 -04:00
parent 6d8d6d15cd
commit 3124c5b7bb
2 changed files with 17 additions and 18 deletions

View file

@ -179,13 +179,13 @@ TrapType AsyncDataError::_trapType = 0x040;
FaultPriority AsyncDataError::_priority = 2; FaultPriority AsyncDataError::_priority = 2;
FaultStat AsyncDataError::_count; FaultStat AsyncDataError::_count;
//The enumerated faults
FaultName CleanWindow::_name = "clean_win"; FaultName CleanWindow::_name = "clean_win";
TrapType CleanWindow::_baseTrapType = 0x024; TrapType CleanWindow::_trapType = 0x024;
FaultPriority CleanWindow::_priority = 10; FaultPriority CleanWindow::_priority = 10;
FaultStat CleanWindow::_count; FaultStat CleanWindow::_count;
//The enumerated faults
FaultName InterruptLevelN::_name = "interrupt_n"; FaultName InterruptLevelN::_name = "interrupt_n";
TrapType InterruptLevelN::_baseTrapType = 0x041; TrapType InterruptLevelN::_baseTrapType = 0x041;
FaultStat InterruptLevelN::_count; FaultStat InterruptLevelN::_count;

View file

@ -468,6 +468,20 @@ class AsyncDataError : public SparcFault
FaultStat & countStat() {return _count;} FaultStat & countStat() {return _count;}
}; };
class CleanWindow : public SparcFault
{
private:
static FaultName _name;
static TrapType _trapType;
static FaultPriority _priority;
static FaultStat _count;
public:
FaultName name() {return _name;}
TrapType trapType() {return _trapType;}
FaultPriority priority() {return _priority;}
FaultStat & countStat() {return _count;}
};
class EnumeratedFault : public SparcFault class EnumeratedFault : public SparcFault
{ {
protected: protected:
@ -478,21 +492,6 @@ class EnumeratedFault : public SparcFault
TrapType trapType() {return baseTrapType() + _n;} TrapType trapType() {return baseTrapType() + _n;}
}; };
class CleanWindow : public EnumeratedFault
{
private:
static FaultName _name;
static TrapType _baseTrapType;
static FaultPriority _priority;
static FaultStat _count;
TrapType baseTrapType() {return _baseTrapType;}
public:
CleanWindow(uint32_t n) : EnumeratedFault(n) {;}
FaultName name() {return _name;}
FaultPriority priority() {return _priority;}
FaultStat & countStat() {return _count;}
};
class InterruptLevelN : public EnumeratedFault class InterruptLevelN : public EnumeratedFault
{ {
private: private: