systemc: Add nonstandard sc_trace-s for sc_event and sc_time.
These are not in the standard but are defined by Accellera and are used in the regression tests. Change-Id: Idb8358530b1135526c52733e628461a17308e216 Reviewed-on: https://gem5-review.googlesource.com/11259 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -58,6 +58,9 @@ namespace sc_core
|
||||
template <class T>
|
||||
class sc_signal_in_if;
|
||||
|
||||
class sc_event;
|
||||
class sc_time;
|
||||
|
||||
class sc_trace_file
|
||||
{
|
||||
public:
|
||||
@@ -108,6 +111,14 @@ void sc_trace(sc_trace_file *, const sc_dt::sc_fxnum_fast *,
|
||||
const std::string &);
|
||||
|
||||
|
||||
// Nonstandard
|
||||
// sc_trace overloads for sc_event and sc_time.
|
||||
void sc_trace(sc_trace_file *, const sc_event &, const std::string &);
|
||||
void sc_trace(sc_trace_file *, const sc_event *, const std::string &);
|
||||
void sc_trace(sc_trace_file *, const sc_time &, const std::string &);
|
||||
void sc_trace(sc_trace_file *, const sc_time *, const std::string &);
|
||||
|
||||
|
||||
// Nonstandard - unsigned versions necessary to avoid ambiguous overload
|
||||
// resolution.
|
||||
void sc_trace(sc_trace_file *, const unsigned char &,
|
||||
|
||||
@@ -220,6 +220,30 @@ sc_trace(sc_trace_file *, const sc_dt::sc_fxnum_fast *, const std::string &)
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
}
|
||||
|
||||
void
|
||||
sc_trace(sc_trace_file *, const sc_event &, const std::string &)
|
||||
{
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
}
|
||||
|
||||
void
|
||||
sc_trace(sc_trace_file *, const sc_event *, const std::string &)
|
||||
{
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
}
|
||||
|
||||
void
|
||||
sc_trace(sc_trace_file *, const sc_time &, const std::string &)
|
||||
{
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
}
|
||||
|
||||
void
|
||||
sc_trace(sc_trace_file *, const sc_time *, const std::string &)
|
||||
{
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
}
|
||||
|
||||
void
|
||||
sc_trace(sc_trace_file *, const unsigned char &,
|
||||
const std::string &, int width)
|
||||
|
||||
Reference in New Issue
Block a user