bool isAlignmentFault() const {return true;}
};
-static inline Fault genMachineCheckFault()
-{
- return new MachineCheckFault;
-}
-
class ResetFault : public AlphaFault
{
private:
#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"
}
// 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);
}
// 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);
}
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>
{
bool isMachineCheckFault() { return true; }
};
-static inline Fault genMachineCheckFault()
-{
- return new MachineCheckFault;
-}
-
class ResetFault : public MipsFault<ResetFault>
{
public:
}
};
-
-static inline Fault
-genMachineCheckFault()
-{
- return new MachineCheckFault();
-}
-
} // namespace PowerISA
#endif // __ARCH_POWER_FAULTS_HH__
#endif
};
-static inline Fault
-genMachineCheckFault()
-{
- return new InternalProcessorError;
-}
-
-
} // namespace SparcISA
#endif // __SPARC_FAULTS_HH__
{}
};
- static inline Fault genMachineCheckFault()
- {
- return new MachineCheck;
- }
-
class SIMDFloatingPointFault : public X86Fault
{
public:
#include <queue>
#include "arch/faults.hh"
+#include "arch/generic/debugfaults.hh"
#include "arch/isa_traits.hh"
#include "arch/locked_mem.hh"
#include "arch/mmapped_ipr.hh"
delete sreqLow;
delete sreqHigh;
}
- return TheISA::genMachineCheckFault();
+ return new GenericISA::M5PanicFault(
+ "Uncachable load [sn:%llx] PC %s\n",
+ load_inst->seqNum, load_inst->pcState());
}
// Check the SQ for any previous stores that might lead to forwarding
* Korey Sewell
*/
+#include "arch/generic/debugfaults.hh"
#include "arch/locked_mem.hh"
#include "base/str.hh"
#include "config/the_isa.hh"
++lsqMemOrderViolation;
- return TheISA::genMachineCheckFault();
+ return new GenericISA::M5PanicFault(
+ "Detected fault with inst [sn:%lli] and "
+ "[sn:%lli] at address %#x\n",
+ inst->seqNum, ld_inst->seqNum, ld_eff_addr1);
}
}
++lsqMemOrderViolation;
- return TheISA::genMachineCheckFault();
+ return new GenericISA::M5PanicFault("Detected fault with "
+ "inst [sn:%lli] and [sn:%lli] at address %#x\n",
+ inst->seqNum, ld_inst->seqNum, ld_eff_addr1);
}
}