X86: Implement genMachineCheckFault.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 22 Oct 2010 07:24:08 +0000 (00:24 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 22 Oct 2010 07:24:08 +0000 (00:24 -0700)
Even though this shouldn't ever be used, it might get called speculatively and
shouldn't panic.

src/arch/x86/faults.hh

index cfb654b62885e940fdbc5f1422f50c54a404423f..7682953c1e763e9baa2f44c005d06d5245a25fa1 100644 (file)
@@ -160,11 +160,6 @@ namespace X86ISA
         }
     };
 
-    static inline Fault genMachineCheckFault()
-    {
-        panic("Machine check fault not implemented in x86!\n");
-    }
-
     // Below is a summary of the interrupt/exception information in the
     // architecture manuals.
 
@@ -368,6 +363,11 @@ namespace X86ISA
         {}
     };
 
+    static inline Fault genMachineCheckFault()
+    {
+        return new MachineCheck;
+    }
+
     class SIMDFloatingPointFault : public X86Fault
     {
       public: