gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
GenericISA::M5DebugFault Class Reference

#include <debugfaults.hh>

Inheritance diagram for GenericISA::M5DebugFault:
FaultBase GenericISA::M5VarArgsFault< Func >

Public Types

enum  DebugFunc { PanicFunc, FatalFunc, WarnFunc, WarnOnceFunc }
 

Public Member Functions

 M5DebugFault (DebugFunc _func, std::string _message)
 
FaultName name () const
 
void invoke (ThreadContext *tc, const StaticInstPtr &inst=StaticInst::nullStaticInstPtr)
 

Protected Attributes

std::string message
 
DebugFunc func
 

Detailed Description

Definition at line 51 of file debugfaults.hh.

Member Enumeration Documentation

Enumerator
PanicFunc 
FatalFunc 
WarnFunc 
WarnOnceFunc 

Definition at line 54 of file debugfaults.hh.

Constructor & Destructor Documentation

GenericISA::M5DebugFault::M5DebugFault ( DebugFunc  _func,
std::string  _message 
)
inline

Definition at line 67 of file debugfaults.hh.

Member Function Documentation

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

Reimplemented from FaultBase.

Definition at line 89 of file debugfaults.hh.

References fatal, FatalFunc, func, message, panic, PanicFunc, warn, warn_once, WarnFunc, and WarnOnceFunc.

FaultName GenericISA::M5DebugFault::name ( ) const
inlinevirtual

Implements FaultBase.

Definition at line 72 of file debugfaults.hh.

References FatalFunc, func, panic, PanicFunc, WarnFunc, and WarnOnceFunc.

Member Data Documentation

DebugFunc GenericISA::M5DebugFault::func
protected

Definition at line 64 of file debugfaults.hh.

Referenced by invoke(), and name().

std::string GenericISA::M5DebugFault::message
protected

Definition at line 63 of file debugfaults.hh.

Referenced by invoke().


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

Generated on Fri Jun 9 2017 13:04:30 for gem5 by doxygen 1.8.6