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

#include <debugfaults.hh>

Inheritance diagram for GenericISA::M5DebugFault:
FaultBase GenericISA::M5DebugOnceFault< Flavor > GenericISA::M5FatalFault 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=StaticInst::nullStaticInstPtr) override
 
- Public Member Functions inherited from 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 49 of file debugfaults.hh.

Constructor & Destructor Documentation

◆ M5DebugFault() [1/2]

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

Definition at line 65 of file debugfaults.hh.

◆ M5DebugFault() [2/2]

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

Definition at line 68 of file debugfaults.hh.

Member Function Documentation

◆ advancePC()

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

◆ debugFunc()

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

◆ invoke()

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

Reimplemented from FaultBase.

Reimplemented in GenericISA::M5DebugOnceFault< Flavor >.

Definition at line 75 of file debugfaults.hh.

References advancePC(), and debugFunc().

◆ message()

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

Definition at line 72 of file debugfaults.hh.

References _message.

Referenced by GenericISA::M5PanicFault::debugFunc(), and GenericISA::M5FatalFault::debugFunc().

Member Data Documentation

◆ _message

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

Definition at line 52 of file debugfaults.hh.

Referenced by message().


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

Generated on Wed Sep 30 2020 14:03:05 for gem5 by doxygen 1.8.17