Sorted faults by the trap type constant, expanded their names, added in new faults for ua2005, and commented out ones which are apparently dropped.

--HG--
extra : convert_revision : 32bd0c3a75d7c036ad4a3cb0bc1c32e0b6cb3d87
This commit is contained in:
Gabe Black 2006-11-08 10:27:38 -05:00
parent 9375caa3f1
commit 770b575c30
2 changed files with 306 additions and 159 deletions

View file

@ -50,118 +50,222 @@ namespace SparcISA
{ {
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<InternalProcessorError>::vals = {"intprocerr", 0x029, 4}; SparcFault<PowerOnReset>::vals =
{"power_on_reset", 0x001, 0, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<MemAddressNotAligned>::vals = {"unalign", 0x034, 10}; SparcFault<WatchDogReset>::vals =
{"watch_dog_reset", 0x002, 120, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<PowerOnReset>::vals = {"pow_reset", 0x001, 0}; SparcFault<ExternallyInitiatedReset>::vals =
{"externally_initiated_reset", 0x003, 110, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<WatchDogReset>::vals = {"watch_dog_reset", 0x002, 1}; SparcFault<SoftwareInitiatedReset>::vals =
{"software_initiated_reset", 0x004, 130, {SH, SH, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<ExternallyInitiatedReset>::vals = {"extern_reset", 0x003, 1}; SparcFault<REDStateException>::vals =
{"RED_state_exception", 0x005, 1, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<SoftwareInitiatedReset>::vals = {"software_reset", 0x004, 1}; SparcFault<StoreError>::vals =
{"store_error", 0x007, 201, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<REDStateException>::vals = {"red_counte", 0x005, 1}; SparcFault<InstructionAccessException>::vals =
{"instruction_access_exception", 0x008, 300, {H, H, H}};
//XXX This trap is apparently dropped from ua2005
/*template<> SparcFaultBase::FaultVals
SparcFault<InstructionAccessMMUMiss>::vals =
{"inst_mmu", 0x009, 2, {H, H, H}};*/
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<InstructionAccessException>::vals = {"inst_access", 0x008, 5}; SparcFault<InstructionAccessError>::vals =
{"instruction_access_error", 0x00A, 400, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<InstructionAccessMMUMiss>::vals = {"inst_mmu", 0x009, 2}; SparcFault<IllegalInstruction>::vals =
{"illegal_instruction", 0x010, 620, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<InstructionAccessError>::vals = {"inst_error", 0x00A, 3}; SparcFault<PrivilegedOpcode>::vals =
{"privileged_opcode", 0x011, 700, {P, SH, SH}};
//XXX This trap is apparently dropped from ua2005
/*template<> SparcFaultBase::FaultVals
SparcFault<UnimplementedLDD>::vals =
{"unimp_ldd", 0x012, 6, {H, H, H}};*/
//XXX This trap is apparently dropped from ua2005
/*template<> SparcFaultBase::FaultVals
SparcFault<UnimplementedSTD>::vals =
{"unimp_std", 0x013, 6, {H, H, H}};*/
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<IllegalInstruction>::vals = {"illegal_inst", 0x010, 7}; SparcFault<FpDisabled>::vals =
{"fp_disabled", 0x020, 800, {P, P, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<PrivilegedOpcode>::vals = {"priv_opcode", 0x011, 6}; SparcFault<FpExceptionIEEE754>::vals =
{"fp_exception_ieee_754", 0x021, 1110, {P, P, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<UnimplementedLDD>::vals = {"unimp_ldd", 0x012, 6}; SparcFault<FpExceptionOther>::vals =
{"fp_exception_other", 0x022, 1110, {P, P, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<UnimplementedSTD>::vals = {"unimp_std", 0x013, 6}; SparcFault<TagOverflow>::vals =
{"tag_overflow", 0x023, 1400, {P, P, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<FpDisabled>::vals = {"fp_disabled", 0x020, 8}; SparcFault<CleanWindow>::vals =
{"clean_window", 0x024, 1010, {P, P, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<FpExceptionIEEE754>::vals = {"fp_754", 0x021, 11}; SparcFault<DivisionByZero>::vals =
{"division_by_zero", 0x028, 1500, {P, P, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<FpExceptionOther>::vals = {"fp_other", 0x022, 11}; SparcFault<InternalProcessorError>::vals =
{"internal_processor_error", 0x029, 4, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<TagOverflow>::vals = {"tag_overflow", 0x023, 14}; SparcFault<InstructionInvalidTSBEntry>::vals =
{"instruction_invalid_tsb_entry", 0x02A, 210, {H, H, SH}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<DivisionByZero>::vals = {"div_by_zero", 0x028, 15}; SparcFault<DataInvalidTSBEntry>::vals =
{"data_invalid_tsb_entry", 0x02B, 1203, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<DataAccessException>::vals = {"data_access", 0x030, 12}; SparcFault<DataAccessException>::vals =
{"data_access_exception", 0x030, 1201, {H, H, H}};
//XXX This trap is apparently dropped from ua2005
/*template<> SparcFaultBase::FaultVals
SparcFault<DataAccessMMUMiss>::vals =
{"data_mmu", 0x031, 12, {H, H, H}};*/
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<DataAccessMMUMiss>::vals = {"data_mmu", 0x031, 12}; SparcFault<DataAccessError>::vals =
{"data_access_error", 0x032, 1210, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<DataAccessError>::vals = {"data_error", 0x032, 12}; SparcFault<DataAccessProtection>::vals =
{"data_access_protection", 0x033, 1207, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<DataAccessProtection>::vals = {"data_protection", 0x033, 12}; SparcFault<MemAddressNotAligned>::vals =
{"mem_address_not_aligned", 0x034, 1020, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<LDDFMemAddressNotAligned>::vals = {"unalign_lddf", 0x035, 10}; SparcFault<LDDFMemAddressNotAligned>::vals =
{"LDDF_mem_address_not_aligned", 0x035, 1010, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<STDFMemAddressNotAligned>::vals = {"unalign_stdf", 0x036, 10}; SparcFault<STDFMemAddressNotAligned>::vals =
{"STDF_mem_address_not_aligned", 0x036, 1010, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<PrivilegedAction>::vals = {"priv_action", 0x037, 11}; SparcFault<PrivilegedAction>::vals =
{"privileged_action", 0x037, 1110, {H, H, SH}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<LDQFMemAddressNotAligned>::vals = {"unalign_ldqf", 0x038, 10}; SparcFault<LDQFMemAddressNotAligned>::vals =
{"LDQF_mem_address_not_aligned", 0x038, 1010, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<STQFMemAddressNotAligned>::vals = {"unalign_stqf", 0x039, 10}; SparcFault<STQFMemAddressNotAligned>::vals =
{"STQF_mem_address_not_aligned", 0x039, 1010, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<AsyncDataError>::vals = {"async_data", 0x040, 2}; SparcFault<InstructionRealTranslationMiss>::vals =
{"instruction_real_translation_miss", 0x03E, 208, {H, H, SH}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<CleanWindow>::vals = {"clean_win", 0x024, 10}; SparcFault<DataRealTranslationMiss>::vals =
{"data_real_translation_miss", 0x03F, 1203, {H, H, H}};
//The enumerated faults //XXX This trap is apparently dropped from ua2005
/*template<> SparcFaultBase::FaultVals
SparcFault<AsyncDataError>::vals =
{"async_data", 0x040, 2, {H, H, H}};*/
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<InterruptLevelN>::vals = {"interrupt_n", 0x041, 0}; SparcFault<InterruptLevelN>::vals =
{"interrupt_level_n", 0x041, 0, {P, P, SH}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<SpillNNormal>::vals = {"spill_n_normal", 0x080, 9}; SparcFault<HstickMatch>::vals =
{"hstick_match", 0x05E, 1601, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<SpillNOther>::vals = {"spill_n_other", 0x0A0, 9}; SparcFault<TrapLevelZero>::vals =
{"trap_level_zero", 0x05F, 202, {H, H, SH}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<FillNNormal>::vals = {"fill_n_normal", 0x0C0, 9}; SparcFault<PAWatchpoint>::vals =
{"PA_watchpoint", 0x061, 1209, {H, H, H}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<FillNOther>::vals = {"fill_n_other", 0x0E0, 9}; SparcFault<VAWatchpoint>::vals =
{"VA_watchpoint", 0x062, 1120, {P, P, SH}};
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<TrapInstruction>::vals = {"trap_inst_n", 0x100, 16}; SparcFault<FastInstructionAccessMMUMiss>::vals =
{"fast_instruction_access_MMU_miss", 0x064, 208, {H, H, SH}};
template<> SparcFaultBase::FaultVals
SparcFault<FastDataAccessMMUMiss>::vals =
{"fast_data_access_MMU_miss", 0x068, 1203, {H, H, H}};
template<> SparcFaultBase::FaultVals
SparcFault<FastDataAccessProtection>::vals =
{"fast_data_access_protection", 0x06C, 1207, {H, H, H}};
template<> SparcFaultBase::FaultVals
SparcFault<InstructionBreakpoint>::vals =
{"instruction_break", 0x076, 610, {H, H, H}};
template<> SparcFaultBase::FaultVals
SparcFault<CpuMondo>::vals =
{"cpu_mondo", 0x07C, 1608, {P, P, SH}};
template<> SparcFaultBase::FaultVals
SparcFault<DevMondo>::vals =
{"dev_mondo", 0x07D, 1611, {P, P, SH}};
template<> SparcFaultBase::FaultVals
SparcFault<ResumeableError>::vals =
{"resume_error", 0x07E, 3330, {P, P, SH}};
template<> SparcFaultBase::FaultVals
SparcFault<SpillNNormal>::vals =
{"spill_n_normal", 0x080, 900, {P, P, H}};
template<> SparcFaultBase::FaultVals
SparcFault<SpillNOther>::vals =
{"spill_n_other", 0x0A0, 900, {P, P, H}};
template<> SparcFaultBase::FaultVals
SparcFault<FillNNormal>::vals =
{"fill_n_normal", 0x0C0, 900, {P, P, H}};
template<> SparcFaultBase::FaultVals
SparcFault<FillNOther>::vals =
{"fill_n_other", 0x0E0, 900, {P, P, H}};
template<> SparcFaultBase::FaultVals
SparcFault<TrapInstruction>::vals =
{"trap_instruction", 0x100, 1602, {P, P, H}};
#if !FULL_SYSTEM #if !FULL_SYSTEM
template<> SparcFaultBase::FaultVals template<> SparcFaultBase::FaultVals
SparcFault<PageTableFault>::vals = {"page_table_fault", 0x0000, 0}; SparcFault<PageTableFault>::vals =
{"page_table_fault", 0x0000, 0, {SH, SH, SH}};
#endif #endif
/** /**

View file

@ -45,11 +45,21 @@ typedef uint32_t FaultPriority;
class SparcFaultBase : public FaultBase class SparcFaultBase : public FaultBase
{ {
public: public:
enum PrivilegeLevel
{
U, User = U,
P, Privileged = P,
H, Hyperprivileged = H,
NumLevels,
SH = -1,
ShouldntHappen = SH
};
struct FaultVals struct FaultVals
{ {
const FaultName name; const FaultName name;
const TrapType trapType; const TrapType trapType;
const FaultPriority priority; const FaultPriority priority;
const PrivilegeLevel nextPrivilegeLevel[NumLevels];
FaultStat count; FaultStat count;
}; };
#if FULL_SYSTEM #if FULL_SYSTEM
@ -59,6 +69,7 @@ class SparcFaultBase : public FaultBase
virtual TrapType trapType() = 0; virtual TrapType trapType() = 0;
virtual FaultPriority priority() = 0; virtual FaultPriority priority() = 0;
virtual FaultStat & countStat() = 0; virtual FaultStat & countStat() = 0;
virtual PrivilegeLevel getNextLevel(PrivilegeLevel current) = 0;
}; };
template<typename T> template<typename T>
@ -71,8 +82,53 @@ class SparcFault : public SparcFaultBase
TrapType trapType() {return vals.trapType;} TrapType trapType() {return vals.trapType;}
FaultPriority priority() {return vals.priority;} FaultPriority priority() {return vals.priority;}
FaultStat & countStat() {return vals.count;} FaultStat & countStat() {return vals.count;}
PrivilegeLevel getNextLevel(PrivilegeLevel current)
{
return vals.nextPrivilegeLevel[current];
}
}; };
class PowerOnReset : public SparcFault<PowerOnReset>
{
void invoke(ThreadContext * tc);
};
class WatchDogReset : public SparcFault<WatchDogReset> {};
class ExternallyInitiatedReset : public SparcFault<ExternallyInitiatedReset> {};
class SoftwareInitiatedReset : public SparcFault<SoftwareInitiatedReset> {};
class REDStateException : public SparcFault<REDStateException> {};
class StoreError : public SparcFault<StoreError> {};
class InstructionAccessException : public SparcFault<InstructionAccessException> {};
//class InstructionAccessMMUMiss : public SparcFault<InstructionAccessMMUMiss> {};
class InstructionAccessError : public SparcFault<InstructionAccessError> {};
class IllegalInstruction : public SparcFault<IllegalInstruction> {};
class PrivilegedOpcode : public SparcFault<PrivilegedOpcode> {};
//class UnimplementedLDD : public SparcFault<UnimplementedLDD> {};
//class UnimplementedSTD : public SparcFault<UnimplementedSTD> {};
class FpDisabled : public SparcFault<FpDisabled> {};
class FpExceptionIEEE754 : public SparcFault<FpExceptionIEEE754> {};
class FpExceptionOther : public SparcFault<FpExceptionOther> {};
class TagOverflow : public SparcFault<TagOverflow> {};
class CleanWindow : public SparcFault<CleanWindow> {};
class DivisionByZero : public SparcFault<DivisionByZero> {};
class InternalProcessorError : class InternalProcessorError :
public SparcFault<InternalProcessorError> public SparcFault<InternalProcessorError>
{ {
@ -80,6 +136,18 @@ class InternalProcessorError :
bool isMachineCheckFault() {return true;} bool isMachineCheckFault() {return true;}
}; };
class InstructionInvalidTSBEntry : public SparcFault<InstructionInvalidTSBEntry> {};
class DataInvalidTSBEntry : public SparcFault<DataInvalidTSBEntry> {};
class DataAccessException : public SparcFault<DataAccessException> {};
//class DataAccessMMUMiss : public SparcFault<DataAccessMMUMiss> {};
class DataAccessError : public SparcFault<DataAccessError> {};
class DataAccessProtection : public SparcFault<DataAccessProtection> {};
class MemAddressNotAligned : class MemAddressNotAligned :
public SparcFault<MemAddressNotAligned> public SparcFault<MemAddressNotAligned>
{ {
@ -87,6 +155,102 @@ class MemAddressNotAligned :
bool isAlignmentFault() {return true;} bool isAlignmentFault() {return true;}
}; };
class LDDFMemAddressNotAligned : public SparcFault<LDDFMemAddressNotAligned> {};
class STDFMemAddressNotAligned : public SparcFault<STDFMemAddressNotAligned> {};
class PrivilegedAction : public SparcFault<PrivilegedAction> {};
class LDQFMemAddressNotAligned : public SparcFault<LDQFMemAddressNotAligned> {};
class STQFMemAddressNotAligned : public SparcFault<STQFMemAddressNotAligned> {};
class InstructionRealTranslationMiss :
public SparcFault<InstructionRealTranslationMiss> {};
class DataRealTranslationMiss : public SparcFault<DataRealTranslationMiss> {};
//class AsyncDataError : public SparcFault<AsyncDataError> {};
template <class T>
class EnumeratedFault : public SparcFault<T>
{
protected:
uint32_t _n;
public:
EnumeratedFault(uint32_t n) : SparcFault<T>(), _n(n) {}
TrapType trapType() {return SparcFault<T>::trapType() + _n;}
};
class InterruptLevelN : public EnumeratedFault<InterruptLevelN>
{
public:
InterruptLevelN(uint32_t n) : EnumeratedFault<InterruptLevelN>(n) {;}
FaultPriority priority() {return 3200 - _n*100;}
};
class HstickMatch : public SparcFault<HstickMatch> {};
class TrapLevelZero : public SparcFault<TrapLevelZero> {};
class PAWatchpoint : public SparcFault<PAWatchpoint> {};
class VAWatchpoint : public SparcFault<VAWatchpoint> {};
class FastInstructionAccessMMUMiss :
public SparcFault<FastInstructionAccessMMUMiss> {};
class FastDataAccessMMUMiss : public SparcFault<FastDataAccessMMUMiss> {};
class FastDataAccessProtection : public SparcFault<FastDataAccessProtection> {};
class InstructionBreakpoint : public SparcFault<InstructionBreakpoint> {};
class CpuMondo : public SparcFault<CpuMondo> {};
class DevMondo : public SparcFault<DevMondo> {};
class ResumeableError : public SparcFault<ResumeableError> {};
class SpillNNormal : public EnumeratedFault<SpillNNormal>
{
public:
SpillNNormal(uint32_t n) : EnumeratedFault<SpillNNormal>(n) {;}
//These need to be handled specially to enable spill traps in SE
#if !FULL_SYSTEM
void invoke(ThreadContext * tc);
#endif
};
class SpillNOther : public EnumeratedFault<SpillNOther>
{
public:
SpillNOther(uint32_t n) : EnumeratedFault<SpillNOther>(n) {;}
};
class FillNNormal : public EnumeratedFault<FillNNormal>
{
public:
FillNNormal(uint32_t n) : EnumeratedFault<FillNNormal>(n) {;}
//These need to be handled specially to enable fill traps in SE
#if !FULL_SYSTEM
void invoke(ThreadContext * tc);
#endif
};
class FillNOther : public EnumeratedFault<FillNOther>
{
public:
FillNOther(uint32_t n) : EnumeratedFault<FillNOther>(n) {;}
};
class TrapInstruction : public EnumeratedFault<TrapInstruction>
{
public:
TrapInstruction(uint32_t n) : EnumeratedFault<TrapInstruction>(n) {;}
};
#if !FULL_SYSTEM #if !FULL_SYSTEM
class PageTableFault : public SparcFault<PageTableFault> class PageTableFault : public SparcFault<PageTableFault>
{ {
@ -113,127 +277,6 @@ static inline Fault genAlignmentFault()
return new MemAddressNotAligned; return new MemAddressNotAligned;
} }
class PowerOnReset : public SparcFault<PowerOnReset>
{
void invoke(ThreadContext * tc);
};
class WatchDogReset : public SparcFault<WatchDogReset> {};
class ExternallyInitiatedReset : public SparcFault<ExternallyInitiatedReset> {};
class SoftwareInitiatedReset : public SparcFault<SoftwareInitiatedReset> {};
class REDStateException : public SparcFault<REDStateException> {};
class InstructionAccessException : public SparcFault<InstructionAccessException> {};
class InstructionAccessMMUMiss : public SparcFault<InstructionAccessMMUMiss> {};
class InstructionAccessError : public SparcFault<InstructionAccessError> {};
class IllegalInstruction : public SparcFault<IllegalInstruction> {};
class PrivilegedOpcode : public SparcFault<PrivilegedOpcode> {};
class UnimplementedLDD : public SparcFault<UnimplementedLDD> {};
class UnimplementedSTD : public SparcFault<UnimplementedSTD> {};
class FpDisabled : public SparcFault<FpDisabled> {};
class FpExceptionIEEE754 : public SparcFault<FpExceptionIEEE754> {};
class FpExceptionOther : public SparcFault<FpExceptionOther> {};
class TagOverflow : public SparcFault<TagOverflow> {};
class DivisionByZero : public SparcFault<DivisionByZero> {};
class DataAccessException : public SparcFault<DataAccessException> {};
class DataAccessMMUMiss : public SparcFault<DataAccessMMUMiss> {};
class DataAccessError : public SparcFault<DataAccessError> {};
class DataAccessProtection : public SparcFault<DataAccessProtection> {};
class LDDFMemAddressNotAligned : public SparcFault<LDDFMemAddressNotAligned> {};
class STDFMemAddressNotAligned : public SparcFault<STDFMemAddressNotAligned> {};
class PrivilegedAction : public SparcFault<PrivilegedAction> {};
class LDQFMemAddressNotAligned : public SparcFault<LDQFMemAddressNotAligned> {};
class STQFMemAddressNotAligned : public SparcFault<STQFMemAddressNotAligned> {};
class AsyncDataError : public SparcFault<AsyncDataError> {};
class CleanWindow : public SparcFault<CleanWindow> {};
template <class T>
class EnumeratedFault : public SparcFault<T>
{
protected:
uint32_t _n;
public:
EnumeratedFault(uint32_t n) : SparcFault<T>(), _n(n) {}
TrapType trapType() {return SparcFault<T>::trapType() + _n;}
};
class InterruptLevelN : public EnumeratedFault<InterruptLevelN>
{
public:
InterruptLevelN(uint32_t n) :
EnumeratedFault<InterruptLevelN>(n) {;}
FaultPriority priority() {return 32 - _n;}
};
class SpillNNormal : public EnumeratedFault<SpillNNormal>
{
public:
SpillNNormal(uint32_t n) :
EnumeratedFault<SpillNNormal>(n) {;}
//These need to be handled specially to enable spill traps in SE
#if !FULL_SYSTEM
void invoke(ThreadContext * tc);
#endif
};
class SpillNOther : public EnumeratedFault<SpillNOther>
{
public:
SpillNOther(uint32_t n) :
EnumeratedFault<SpillNOther>(n) {;}
};
class FillNNormal : public EnumeratedFault<FillNNormal>
{
public:
FillNNormal(uint32_t n) :
EnumeratedFault<FillNNormal>(n) {;}
//These need to be handled specially to enable fill traps in SE
#if !FULL_SYSTEM
void invoke(ThreadContext * tc);
#endif
};
class FillNOther : public EnumeratedFault<FillNOther>
{
public:
FillNOther(uint32_t n) :
EnumeratedFault<FillNOther>(n) {;}
};
class TrapInstruction : public EnumeratedFault<TrapInstruction>
{
public:
TrapInstruction(uint32_t n) :
EnumeratedFault<TrapInstruction>(n) {;}
};
} // SparcISA namespace } // SparcISA namespace