diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-05-14 23:58:23 -0400 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-05-14 23:58:23 -0400 |
commit | 0a053c7919cb13d216d85784577cbbd4539cd291 (patch) | |
tree | 785eb25f80e0523531bb6db2558435e3105c427d /sim | |
parent | 0be3d001c9089b78e334dca6d0c7f1a178cf202f (diff) | |
parent | 149b724b86ae6cc40d8794123e8359209080f5a9 (diff) | |
download | gem5-0a053c7919cb13d216d85784577cbbd4539cd291.tar.xz |
Merge m5.eecs.umich.edu:/bk/newmem
into ewok.(none):/home/gblack/m5/newmem
--HG--
extra : convert_revision : 2db5529a9fbe8c62e57cad05f093c915f9713c67
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__ |