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

#include <faults.hh>

Inheritance diagram for RiscvISA::RiscvFault:
FaultBase RiscvISA::AddressFault RiscvISA::BreakpointFault RiscvISA::InstFault RiscvISA::InterruptFault RiscvISA::SyscallFault RiscvISA::IllegalFrmFault RiscvISA::IllegalInstFault RiscvISA::UnimplementedFault 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 FaultBase
virtual ~FaultBase ()

Detailed Description

Definition at line 92 of file faults.hh.

Constructor & Destructor Documentation

◆ RiscvFault()

RiscvISA::RiscvFault::RiscvFault ( FaultName  n,
bool  i,
ExceptionCode  c 

Definition at line 99 of file faults.hh.

Member Function Documentation

◆ exception()

ExceptionCode RiscvISA::RiscvFault::exception ( ) const

Definition at line 105 of file faults.hh.

References _code.

◆ invoke()

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

◆ invokeSE()

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

◆ isInterrupt()

bool RiscvISA::RiscvFault::isInterrupt ( ) const

Definition at line 104 of file faults.hh.

References _interrupt.

Referenced by invoke().

◆ name()

FaultName RiscvISA::RiscvFault::name ( ) const

Implements FaultBase.

Definition at line 103 of file faults.hh.

References _name.

Referenced by invoke(), and invokeSE().

◆ trap_value()

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

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

Definition at line 106 of file faults.hh.

Referenced by invoke().

Member Data Documentation

◆ _code

ExceptionCode RiscvISA::RiscvFault::_code

Definition at line 97 of file faults.hh.

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

◆ _interrupt

const bool RiscvISA::RiscvFault::_interrupt

Definition at line 96 of file faults.hh.

Referenced by isInterrupt().

◆ _name

const FaultName RiscvISA::RiscvFault::_name

Definition at line 95 of file faults.hh.

Referenced by name().

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