summaryrefslogtreecommitdiff
path: root/sim/faults.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/faults.cc')
-rw-r--r--sim/faults.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/sim/faults.cc b/sim/faults.cc
index 58a631263..9b4a0ea7f 100644
--- a/sim/faults.cc
+++ b/sim/faults.cc
@@ -27,10 +27,11 @@
*/
#include "sim/faults.hh"
+#include "cpu/exec_context.hh"
-NoFaultType * const NoFault = new NoFaultType("none");
-MachineCheckFaultType * const MachineCheckFault =
- new MachineCheckFaultType("mchk");
-AlignmentFaultType * const AlignmentFault =
- new AlignmentFaultType("unalign");
-
+#if !FULL_SYSTEM
+void FaultBase::invoke(ExecContext * xc)
+{
+ fatal("fault (%s) detected @ PC 0x%08p", name(), xc->readPC());
+}
+#endif