summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-05-14 23:58:23 -0400
committerGabe Black <gblack@eecs.umich.edu>2006-05-14 23:58:23 -0400
commit0a053c7919cb13d216d85784577cbbd4539cd291 (patch)
tree785eb25f80e0523531bb6db2558435e3105c427d /sim
parent0be3d001c9089b78e334dca6d0c7f1a178cf202f (diff)
parent149b724b86ae6cc40d8794123e8359209080f5a9 (diff)
downloadgem5-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.cc5
-rw-r--r--sim/faults.hh13
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__