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

#include <faults.hh>

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

Public Member Functions

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

Private Attributes

const std::string reason
 

Additional Inherited Members

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

Detailed Description

Definition at line 189 of file faults.hh.

Constructor & Destructor Documentation

◆ IllegalInstFault()

gem5::RiscvISA::IllegalInstFault::IllegalInstFault ( std::string  r,
const ExtMachInst  inst 
)
inline

Definition at line 195 of file faults.hh.

Member Function Documentation

◆ invokeSE()

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

Reimplemented from gem5::RiscvISA::RiscvFault.

Definition at line 193 of file faults.cc.

References gem5::RefCountingPtr< T >::get(), panic, gem5::ThreadContext::pcState(), and reason.

Member Data Documentation

◆ reason

const std::string gem5::RiscvISA::IllegalInstFault::reason
private

Definition at line 192 of file faults.hh.

Referenced by invokeSE().


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

Generated on Wed Dec 21 2022 10:24:21 for gem5 by doxygen 1.9.1