gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::RiscvISA::AddressFault Class Reference

#include <faults.hh>

Inheritance diagram for gem5::RiscvISA::AddressFault:
gem5::RiscvISA::RiscvFault gem5::FaultBase

Public Member Functions

 AddressFault (const Addr vaddr, ExceptionCode code, const Addr gpaddr=0x0, const bool two_stage=false)
bool mustSetGva () const override
RegVal trap_value () const override
RegVal trap_value2 () const override
Public Member Functions inherited from gem5::FaultBase
virtual ~FaultBase ()

Private Attributes

const Addr _vaddr
const Addr _gpaddr
const bool _two_stage

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
bool isResumableNonMaskableInterrupt (ISA *isa) const
bool isPlainException () const
bool isGuestPageFault () const
ExceptionCode exception () const
virtual void invokeSE (ThreadContext *tc, const StaticInstPtr &inst)
void invoke (ThreadContext *tc, const StaticInstPtr &inst) override
Protected Attributes inherited from gem5::RiscvISA::RiscvFault
const FaultName _name
const FaultType _fault_type
ExceptionCode _code

Detailed Description

Definition at line 213 of file faults.hh.

Constructor & Destructor Documentation

◆ AddressFault()

gem5::RiscvISA::AddressFault::AddressFault ( const Addr vaddr,
ExceptionCode code,
const Addr gpaddr = 0x0,
const bool two_stage = false )
inline

Member Function Documentation

◆ mustSetGva()

◆ trap_value()

RegVal gem5::RiscvISA::AddressFault::trap_value ( ) const
inlineoverridevirtual

Reimplemented from gem5::RiscvISA::RiscvFault.

Definition at line 242 of file faults.hh.

References _vaddr.

◆ trap_value2()

RegVal gem5::RiscvISA::AddressFault::trap_value2 ( ) const
inlineoverridevirtual

Reimplemented from gem5::RiscvISA::RiscvFault.

Definition at line 243 of file faults.hh.

References _gpaddr.

Member Data Documentation

◆ _gpaddr

const Addr gem5::RiscvISA::AddressFault::_gpaddr
private

Definition at line 217 of file faults.hh.

Referenced by AddressFault(), and trap_value2().

◆ _two_stage

const bool gem5::RiscvISA::AddressFault::_two_stage
private

Definition at line 218 of file faults.hh.

Referenced by AddressFault(), and mustSetGva().

◆ _vaddr

const Addr gem5::RiscvISA::AddressFault::_vaddr
private

Definition at line 216 of file faults.hh.

Referenced by AddressFault(), and trap_value().


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

Generated on Sat Oct 18 2025 08:07:01 for gem5 by doxygen 1.14.0