diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-05-14 23:53:29 -0400 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-05-14 23:53:29 -0400 |
commit | 9955ebd03c987077adf577c6d0b0b3a1667bade5 (patch) | |
tree | bfc8ab8b4a18b425337c0e61e0ce72840671a2ac /sim | |
parent | 8db6dd370c82bb4edc6f3e229589226f2ff4b41c (diff) | |
download | gem5-9955ebd03c987077adf577c6d0b0b3a1667bade5.tar.xz |
Moved the UnimpFault to be global
--HG--
extra : convert_revision : a42224c70c475c1559e83b8a2ef71ff3b792a3ab
Diffstat (limited to 'sim')
-rw-r--r-- | sim/faults.cc | 5 | ||||
-rw-r--r-- | sim/faults.hh | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/sim/faults.cc b/sim/faults.cc index f7e9a0691..cb095f852 100644 --- a/sim/faults.cc +++ b/sim/faults.cc @@ -45,3 +45,8 @@ void FaultBase::invoke(ExecContext * xc) assert(!xc->misspeculating()); } #endif + +void UnimpFault::invoke(ExecContext * xc) +{ + panic("Unimpfault: %s\n", panicStr.c_str()); +} diff --git a/sim/faults.hh b/sim/faults.hh index 18601e8f1..9b3bc9103 100644 --- a/sim/faults.hh +++ b/sim/faults.hh @@ -64,4 +64,17 @@ class FaultBase : public RefCounted FaultBase * const NoFault = 0; +class UnimpFault : public FaultBase +{ + private: + std::string panicStr; + public: + UnimpFault(std::string _str) + : panicStr(_str) + { } + + FaultName name() {return "Unimplemented simulator feature";} + void invoke(ExecContext * xc); +}; + #endif // __FAULTS_HH__ |