Go to the documentation of this file.
31 #ifndef __ARCH_RISCV_FAULTS_HH__
32 #define __ARCH_RISCV_FAULTS_HH__
175 :
InstFault(
"Unimplemented instruction", inst),
189 :
InstFault(
"Illegal floating-point rounding mode", inst),
240 panic(
"Unknown privilege mode %d.", prv);
250 #endif // __ARCH_RISCV_FAULTS_HH__
InterruptFault(ExceptionCode c)
InstFault(FaultName n, const ExtMachInst inst)
void invokeSE(ThreadContext *tc, const StaticInstPtr &inst) override
BreakpointFault(const PCState &pc)
void invokeSE(ThreadContext *tc, const StaticInstPtr &inst) override
void invoke(ThreadContext *tc, const StaticInstPtr &inst=StaticInst::nullStaticInstPtr) override
AddressFault(const Addr addr, ExceptionCode code)
IllegalInstFault(std::string r, const ExtMachInst inst)
void invokeSE(ThreadContext *tc, const StaticInstPtr &inst) override
void invokeSE(ThreadContext *tc, const StaticInstPtr &inst) override
const std::string instName
virtual void invokeSE(ThreadContext *tc, const StaticInstPtr &inst)
IllegalFrmFault(uint8_t r, const ExtMachInst inst)
FaultName name() const override
FaultName name() const override
RiscvFault(FaultName n, bool i, ExceptionCode c)
ThreadContext is the external interface to all thread state for anything outside of the CPU.
void invokeSE(ThreadContext *tc, const StaticInstPtr &inst) override
const typedef char * FaultName
UnimplementedFault(std::string name, const ExtMachInst inst)
ExceptionCode exception() const
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
static StaticInstPtr nullStaticInstPtr
Pointer to a statically allocated "null" instruction object.
void invoke(ThreadContext *tc, const StaticInstPtr &inst) override
virtual RegVal trap_value() const
RegVal trap_value() const override
RegVal trap_value() const override
RegVal trap_value() const override
SyscallFault(PrivilegeMode prv)
UnknownInstFault(const ExtMachInst inst)
void invokeSE(ThreadContext *tc, const StaticInstPtr &inst) override
#define panic(...)
This implements a cprintf based panic() function.
Generated on Wed Sep 30 2020 14:01:59 for gem5 by doxygen 1.8.17