gem5  v20.1.0.0
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
sc_report_handler.hh File Reference
#include <string>
#include "messages.hh"
#include "sc_report.hh"

Go to the source code of this file.

Classes

class  sc_core::sc_report_handler
 

Namespaces

 sc_core
 

Macros

#define SC_REPORT_INFO_VERB(msg_type, msg, verbosity)
 
#define SC_REPORT_INFO(msg_type, msg)
 
#define SC_REPORT_WARNING(msg_type, msg)
 
#define SC_REPORT_ERROR(msg_type, msg)
 
#define SC_REPORT_FATAL(msg_type, msg)
 
#define sc_assert(expr)
 

Typedefs

typedef unsigned sc_core::sc_actions
 
typedef void(* sc_core::sc_report_handler_proc) (const sc_report &, const sc_actions &)
 

Enumerations

enum  {
  sc_core::SC_UNSPECIFIED = 0x0000, sc_core::SC_DO_NOTHING = 0x0001, sc_core::SC_THROW = 0x0002, sc_core::SC_LOG = 0x0004,
  sc_core::SC_DISPLAY = 0x0008, sc_core::SC_CACHE_REPORT = 0x0010, sc_core::SC_INTERRUPT = 0x0020, sc_core::SC_STOP = 0x0040,
  sc_core::SC_ABORT = 0x0080, sc_core::SC_DEFAULT_INFO_ACTIONS = SC_LOG | SC_DISPLAY, sc_core::SC_DEFAULT_WARNING_ACTIONS = SC_LOG | SC_DISPLAY, sc_core::SC_DEFAULT_ERROR_ACTIONS = SC_LOG | SC_CACHE_REPORT | SC_THROW,
  sc_core::SC_DEFAULT_FATAL_ACTIONS = SC_LOG | SC_DISPLAY | SC_CACHE_REPORT | SC_ABORT
}
 

Functions

void sc_core::sc_interrupt_here (const char *msg_type, sc_severity)
 
void sc_core::sc_stop_here (const char *msg_type, sc_severity)
 
const std::string sc_core::sc_report_compose_message (const sc_report &)
 
bool sc_core::sc_report_close_default_log ()
 

Macro Definition Documentation

◆ sc_assert

#define sc_assert (   expr)
Value:
((void)((expr) ? 0 : (SC_REPORT_FATAL( \

Definition at line 135 of file sc_report_handler.hh.

◆ SC_REPORT_ERROR

#define SC_REPORT_ERROR (   msg_type,
  msg 
)
Value:
::sc_core::SC_ERROR, msg_type, msg, __FILE__, __LINE__)

Definition at line 127 of file sc_report_handler.hh.

◆ SC_REPORT_FATAL

#define SC_REPORT_FATAL (   msg_type,
  msg 
)
Value:
::sc_core::SC_FATAL, msg_type, msg, __FILE__, __LINE__)

Definition at line 131 of file sc_report_handler.hh.

◆ SC_REPORT_INFO

#define SC_REPORT_INFO (   msg_type,
  msg 
)
Value:
::sc_core::SC_INFO, msg_type, msg, __FILE__, __LINE__)

Definition at line 119 of file sc_report_handler.hh.

◆ SC_REPORT_INFO_VERB

#define SC_REPORT_INFO_VERB (   msg_type,
  msg,
  verbosity 
)
Value:
::sc_core::SC_INFO, msg_type, msg, verbosity, __FILE__, __LINE__)

Definition at line 115 of file sc_report_handler.hh.

◆ SC_REPORT_WARNING

#define SC_REPORT_WARNING (   msg_type,
  msg 
)
Value:
::sc_core::SC_WARNING, msg_type, msg, __FILE__, __LINE__)

Definition at line 123 of file sc_report_handler.hh.

sc_core::SC_INFO
@ SC_INFO
Definition: sc_report.hh:41
sc_core::SC_WARNING
@ SC_WARNING
Definition: sc_report.hh:42
SC_REPORT_FATAL
#define SC_REPORT_FATAL(msg_type, msg)
Definition: sc_report_handler.hh:131
sc_core::sc_report_handler::report
static void report(sc_severity, const char *msg_type, const char *msg, const char *file, int line)
Definition: sc_report_handler.cc:53
sc_core::SC_ID_ASSERTION_FAILED_
const char SC_ID_ASSERTION_FAILED_[]
Definition: messages.cc:39
sc_core::SC_FATAL
@ SC_FATAL
Definition: sc_report.hh:44
sc_core::SC_ERROR
@ SC_ERROR
Definition: sc_report.hh:43

Generated on Wed Sep 30 2020 14:02:19 for gem5 by doxygen 1.8.17