gem5  v21.1.0.2
Protected Member Functions | Protected Attributes | List of all members
gem5::RiscvISA::RiscvFault Class Reference

#include <faults.hh>

Inheritance diagram for gem5::RiscvISA::RiscvFault:
gem5::FaultBase gem5::RiscvISA::AddressFault gem5::RiscvISA::BreakpointFault gem5::RiscvISA::InstFault gem5::RiscvISA::InterruptFault gem5::RiscvISA::SyscallFault gem5::RiscvISA::IllegalFrmFault gem5::RiscvISA::IllegalInstFault gem5::RiscvISA::UnimplementedFault gem5::RiscvISA::UnknownInstFault

Protected Member Functions

 RiscvFault (FaultName n, bool i, ExceptionCode c)
 
FaultName name () const override
 
bool isInterrupt () const
 
ExceptionCode exception () const
 
virtual RegVal trap_value () const
 
virtual void invokeSE (ThreadContext *tc, const StaticInstPtr &inst)
 
void invoke (ThreadContext *tc, const StaticInstPtr &inst) override
 

Protected Attributes

const FaultName _name
 
const bool _interrupt
 
ExceptionCode _code
 

Additional Inherited Members

- Public Member Functions inherited from gem5::FaultBase
virtual ~FaultBase ()
 

Detailed Description

Definition at line 99 of file faults.hh.

Constructor & Destructor Documentation

◆ RiscvFault()

gem5::RiscvISA::RiscvFault::RiscvFault ( FaultName  n,
bool  i,
ExceptionCode  c 
)
inlineprotected

Definition at line 106 of file faults.hh.

Member Function Documentation

◆ exception()

ExceptionCode gem5::RiscvISA::RiscvFault::exception ( ) const
inlineprotected

Definition at line 112 of file faults.hh.

References _code.

◆ invoke()

void gem5::RiscvISA::RiscvFault::invoke ( ThreadContext tc,
const StaticInstPtr inst 
)
overrideprotectedvirtual

◆ invokeSE()

void gem5::RiscvISA::RiscvFault::invokeSE ( ThreadContext tc,
const StaticInstPtr inst 
)
protectedvirtual

◆ isInterrupt()

bool gem5::RiscvISA::RiscvFault::isInterrupt ( ) const
inlineprotected

Definition at line 111 of file faults.hh.

References _interrupt.

Referenced by invoke().

◆ name()

FaultName gem5::RiscvISA::RiscvFault::name ( ) const
inlineoverrideprotectedvirtual

Implements gem5::FaultBase.

Definition at line 110 of file faults.hh.

References _name.

Referenced by invoke(), and invokeSE().

◆ trap_value()

virtual RegVal gem5::RiscvISA::RiscvFault::trap_value ( ) const
inlineprotectedvirtual

Reimplemented in gem5::RiscvISA::BreakpointFault, gem5::RiscvISA::AddressFault, and gem5::RiscvISA::InstFault.

Definition at line 113 of file faults.hh.

Referenced by invoke().

Member Data Documentation

◆ _code

ExceptionCode gem5::RiscvISA::RiscvFault::_code
protected

Definition at line 104 of file faults.hh.

Referenced by exception(), invoke(), and gem5::RiscvISA::SyscallFault::SyscallFault().

◆ _interrupt

const bool gem5::RiscvISA::RiscvFault::_interrupt
protected

Definition at line 103 of file faults.hh.

Referenced by isInterrupt().

◆ _name

const FaultName gem5::RiscvISA::RiscvFault::_name
protected

Definition at line 102 of file faults.hh.

Referenced by name().


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

Generated on Tue Sep 21 2021 12:32:02 for gem5 by doxygen 1.8.17