summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-09-27 00:24:43 -0700
committerGabe Black <gblack@eecs.umich.edu>2011-09-27 00:24:43 -0700
commit44ed4849d468b8188bdfc273c8e9a03a8f31c263 (patch)
treedb5907e0a478d4a9e6e479a53a478412d5284a47 /src/arch
parent2ed3eef9b046472ef20a6c7829e3aa1814d929fb (diff)
downloadgem5-44ed4849d468b8188bdfc273c8e9a03a8f31c263.tar.xz
Faults: Replace calls to genMachineCheckFault with M5PanicFault.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/alpha/faults.hh5
-rw-r--r--src/arch/alpha/tlb.cc11
-rw-r--r--src/arch/arm/faults.hh5
-rw-r--r--src/arch/mips/faults.hh5
-rw-r--r--src/arch/power/faults.hh7
-rw-r--r--src/arch/sparc/faults.hh7
-rw-r--r--src/arch/x86/faults.hh5
7 files changed, 7 insertions, 38 deletions
diff --git a/src/arch/alpha/faults.hh b/src/arch/alpha/faults.hh
index edac1cda6..3da97ccb4 100644
--- a/src/arch/alpha/faults.hh
+++ b/src/arch/alpha/faults.hh
@@ -84,11 +84,6 @@ class AlignmentFault : public AlphaFault
bool isAlignmentFault() const {return true;}
};
-static inline Fault genMachineCheckFault()
-{
- return new MachineCheckFault;
-}
-
class ResetFault : public AlphaFault
{
private:
diff --git a/src/arch/alpha/tlb.cc b/src/arch/alpha/tlb.cc
index fbe188973..b211c4923 100644
--- a/src/arch/alpha/tlb.cc
+++ b/src/arch/alpha/tlb.cc
@@ -36,6 +36,7 @@
#include "arch/alpha/faults.hh"
#include "arch/alpha/pagetable.hh"
#include "arch/alpha/tlb.hh"
+#include "arch/generic/debugfaults.hh"
#include "base/inifile.hh"
#include "base/str.hh"
#include "base/trace.hh"
@@ -434,8 +435,9 @@ TLB::translateInst(RequestPtr req, ThreadContext *tc)
}
// check that the physical address is ok (catch bad physical addresses)
- if (req->getPaddr() & ~PAddrImplMask)
- return genMachineCheckFault();
+ if (req->getPaddr() & ~PAddrImplMask) {
+ return new MachineCheckFault();
+ }
return checkCacheability(req, true);
@@ -562,8 +564,9 @@ TLB::translateData(RequestPtr req, ThreadContext *tc, bool write)
}
// check that the physical address is ok (catch bad physical addresses)
- if (req->getPaddr() & ~PAddrImplMask)
- return genMachineCheckFault();
+ if (req->getPaddr() & ~PAddrImplMask) {
+ return new MachineCheckFault();
+ }
return checkCacheability(req);
}
diff --git a/src/arch/arm/faults.hh b/src/arch/arm/faults.hh
index fe1258a16..2d025cc94 100644
--- a/src/arch/arm/faults.hh
+++ b/src/arch/arm/faults.hh
@@ -242,11 +242,6 @@ class FlushPipe : public ArmFaultVals<FlushPipe>
StaticInstPtr inst = StaticInst::nullStaticInstPtr);
};
-static inline Fault genMachineCheckFault()
-{
- return new Reset();
-}
-
// A fault that flushes the pipe, excluding the faulting instructions
class ArmSev : public ArmFaultVals<ArmSev>
{
diff --git a/src/arch/mips/faults.hh b/src/arch/mips/faults.hh
index e78abbb43..89b6924c6 100644
--- a/src/arch/mips/faults.hh
+++ b/src/arch/mips/faults.hh
@@ -128,11 +128,6 @@ class MachineCheckFault : public MipsFault<MachineCheckFault>
bool isMachineCheckFault() { return true; }
};
-static inline Fault genMachineCheckFault()
-{
- return new MachineCheckFault;
-}
-
class ResetFault : public MipsFault<ResetFault>
{
public:
diff --git a/src/arch/power/faults.hh b/src/arch/power/faults.hh
index 6aedd7e00..a99ae7b30 100644
--- a/src/arch/power/faults.hh
+++ b/src/arch/power/faults.hh
@@ -85,13 +85,6 @@ class AlignmentFault : public PowerFault
}
};
-
-static inline Fault
-genMachineCheckFault()
-{
- return new MachineCheckFault();
-}
-
} // namespace PowerISA
#endif // __ARCH_POWER_FAULTS_HH__
diff --git a/src/arch/sparc/faults.hh b/src/arch/sparc/faults.hh
index 31209440f..88c269d66 100644
--- a/src/arch/sparc/faults.hh
+++ b/src/arch/sparc/faults.hh
@@ -287,13 +287,6 @@ class TrapInstruction : public EnumeratedFault<TrapInstruction>
#endif
};
-static inline Fault
-genMachineCheckFault()
-{
- return new InternalProcessorError;
-}
-
-
} // namespace SparcISA
#endif // __SPARC_FAULTS_HH__
diff --git a/src/arch/x86/faults.hh b/src/arch/x86/faults.hh
index 2e8889404..fba2a26b5 100644
--- a/src/arch/x86/faults.hh
+++ b/src/arch/x86/faults.hh
@@ -363,11 +363,6 @@ namespace X86ISA
{}
};
- static inline Fault genMachineCheckFault()
- {
- return new MachineCheck;
- }
-
class SIMDFloatingPointFault : public X86Fault
{
public: