gem5  v22.0.0.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gem5::GenericISA::M5DebugFault Class Referenceabstract

#include <debugfaults.hh>

Inheritance diagram for gem5::GenericISA::M5DebugFault:
gem5::FaultBase gem5::GenericISA::M5DebugOnceFault< Flavor > gem5::GenericISA::M5FatalFault gem5::GenericISA::M5PanicFault

Public Member Functions

 M5DebugFault (std::string _m)
 
template<class ... Args>
 M5DebugFault (const std::string &format, const Args &...args)
 
std::string message ()
 
void invoke (ThreadContext *tc, const StaticInstPtr &inst=nullStaticInstPtr) override
 
- Public Member Functions inherited from gem5::FaultBase
virtual FaultName name () const =0
 
virtual ~FaultBase ()
 

Protected Member Functions

virtual void debugFunc ()=0
 
void advancePC (ThreadContext *tc, const StaticInstPtr &inst)
 

Protected Attributes

std::string _message
 

Detailed Description

Definition at line 55 of file debugfaults.hh.

Constructor & Destructor Documentation

◆ M5DebugFault() [1/2]

gem5::GenericISA::M5DebugFault::M5DebugFault ( std::string  _m)
inline

Definition at line 71 of file debugfaults.hh.

◆ M5DebugFault() [2/2]

template<class ... Args>
gem5::GenericISA::M5DebugFault::M5DebugFault ( const std::string &  format,
const Args &...  args 
)
inline

Definition at line 74 of file debugfaults.hh.

Member Function Documentation

◆ advancePC()

void gem5::GenericISA::M5DebugFault::advancePC ( ThreadContext tc,
const StaticInstPtr inst 
)
inlineprotected

◆ debugFunc()

virtual void gem5::GenericISA::M5DebugFault::debugFunc ( )
protectedpure virtual

◆ invoke()

void gem5::GenericISA::M5DebugFault::invoke ( ThreadContext tc,
const StaticInstPtr inst = nullStaticInstPtr 
)
inlineoverridevirtual

Reimplemented from gem5::FaultBase.

Reimplemented in gem5::GenericISA::M5DebugOnceFault< Flavor >.

Definition at line 81 of file debugfaults.hh.

References advancePC(), and debugFunc().

◆ message()

std::string gem5::GenericISA::M5DebugFault::message ( )
inline

Member Data Documentation

◆ _message

std::string gem5::GenericISA::M5DebugFault::_message
protected

Definition at line 58 of file debugfaults.hh.

Referenced by message().


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

Generated on Thu Jul 28 2022 13:34:06 for gem5 by doxygen 1.8.17