# HG changeset patch
# User Timothy M. Jones <[email protected]>
# Date 1255616809 -3600
# Node ID bf65b018b853cc5f66e1a46e4eb0a78781d6aa4c
# Parent  edf36d985ee7dfd61ee04d83c9066bbbf6f1dda7
Add machine check fault and fix name of unimplemented fault.

diff --git a/src/arch/powerpc/faults.hh b/src/arch/powerpc/faults.hh
--- a/src/arch/powerpc/faults.hh
+++ b/src/arch/powerpc/faults.hh
@@ -60,11 +60,28 @@
 {
   public:
     UnimplementedOpcodeFault()
-        : PowerPCFault("opdec")
+        : PowerPCFault("Unimplemented Opcode")
     {
     }
 };
 
+
+class MachineCheckFault : public PowerPCFault
+{
+  public:
+    MachineCheckFault()
+        : PowerPCFault("Machine Check")
+    {
+    }
+};
+
+
+static inline Fault
+genMachineCheckFault()
+{
+    return new MachineCheckFault();
+}
+
 } // PowerpcISA namespace
 
 #endif // __ARCH_POWERPC_FAULTS_HH__

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to