diff options
author | Gabe Black <gabeblack@google.com> | 2018-06-15 18:15:48 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-08-22 01:06:41 +0000 |
commit | 8bc2186369d5981f0ef5826fad355c4b9663a78c (patch) | |
tree | 833f96ad1e7d7c974df8a434ef7b07c494f5fb75 | |
parent | 0801de860c725b412ecbe44332279783abe3de32 (diff) | |
download | gem5-8bc2186369d5981f0ef5826fad355c4b9663a78c.tar.xz |
systemc: Add the deprecated sc_trace_delta_cycles function.
This function enables or disables tracing of delta cycles in a
particular trace file.
Change-Id: I53164a792856d071de1fefc76977cca8eb5fd735
Reviewed-on: https://gem5-review.googlesource.com/11267
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
-rw-r--r-- | src/systemc/ext/utils/_using.hh | 1 | ||||
-rw-r--r-- | src/systemc/ext/utils/sc_trace_file.hh | 3 | ||||
-rw-r--r-- | src/systemc/utils/sc_trace_file.cc | 6 |
3 files changed, 10 insertions, 0 deletions
diff --git a/src/systemc/ext/utils/_using.hh b/src/systemc/ext/utils/_using.hh index e6477c7cb..16b3e4031 100644 --- a/src/systemc/ext/utils/_using.hh +++ b/src/systemc/ext/utils/_using.hh @@ -71,6 +71,7 @@ using sc_core::sc_create_vcd_trace_file; using sc_core::sc_close_vcd_trace_file; using sc_core::sc_write_comment; using sc_core::sc_trace; +using sc_core::sc_trace_delta_cycles; using sc_core::sc_exception; diff --git a/src/systemc/ext/utils/sc_trace_file.hh b/src/systemc/ext/utils/sc_trace_file.hh index 9281d47e6..db50e3967 100644 --- a/src/systemc/ext/utils/sc_trace_file.hh +++ b/src/systemc/ext/utils/sc_trace_file.hh @@ -167,6 +167,9 @@ void sc_trace(sc_trace_file *, const sc_dt::uint64 *, void sc_trace(sc_trace_file *, const unsigned int &, const std::string &, const char **enum_literals); +// Deprecated +void sc_trace_delta_cycles(sc_trace_file *, bool on=true); + template <class T> void sc_trace(sc_trace_file *, const sc_signal_in_if<T> &, const std::string &) diff --git a/src/systemc/utils/sc_trace_file.cc b/src/systemc/utils/sc_trace_file.cc index 9cae922e3..2ac702daa 100644 --- a/src/systemc/utils/sc_trace_file.cc +++ b/src/systemc/utils/sc_trace_file.cc @@ -407,4 +407,10 @@ sc_trace(sc_trace_file *, const unsigned int &, warn("%s not implemented.\n", __PRETTY_FUNCTION__); } +void +sc_trace_delta_cycles(sc_trace_file *, bool on) +{ + warn("%s not implemented.\n", __PRETTY_FUNCTION__); +} + } // namespace sc_core |