gem5  v20.1.0.0
Public Member Functions | Private Attributes | List of all members
RiscvISA::IllegalInstFault Class Reference

#include <faults.hh>

Inheritance diagram for RiscvISA::IllegalInstFault:
RiscvISA::InstFault RiscvISA::RiscvFault FaultBase

Public Member Functions

 IllegalInstFault (std::string r, const ExtMachInst inst)
void invokeSE (ThreadContext *tc, const StaticInstPtr &inst) override
- Public Member Functions inherited from RiscvISA::InstFault
 InstFault (FaultName n, const ExtMachInst inst)
RegVal trap_value () const override
- Public Member Functions inherited from FaultBase
virtual ~FaultBase ()

Private Attributes

const std::string reason

Additional Inherited Members

- Protected Member Functions inherited from RiscvISA::RiscvFault
 RiscvFault (FaultName n, bool i, ExceptionCode c)
FaultName name () const override
bool isInterrupt () const
ExceptionCode exception () const
void invoke (ThreadContext *tc, const StaticInstPtr &inst) override
- Protected Attributes inherited from RiscvISA::InstFault
const ExtMachInst _inst
- Protected Attributes inherited from RiscvISA::RiscvFault
const FaultName _name
const bool _interrupt
ExceptionCode _code

Detailed Description

Definition at line 155 of file faults.hh.

Constructor & Destructor Documentation

◆ IllegalInstFault()

RiscvISA::IllegalInstFault::IllegalInstFault ( std::string  r,
const ExtMachInst  inst 

Definition at line 161 of file faults.hh.

Member Function Documentation

◆ invokeSE()

void RiscvISA::IllegalInstFault::invokeSE ( ThreadContext tc,
const StaticInstPtr inst 

Reimplemented from RiscvISA::RiscvFault.

Definition at line 167 of file

References StaticInst::machInst, panic, ThreadContext::pcState(), and reason.

Member Data Documentation

◆ reason

const std::string RiscvISA::IllegalInstFault::reason

Definition at line 158 of file faults.hh.

Referenced by invokeSE().

The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:03:08 for gem5 by doxygen 1.8.17