systemc: Add the deprecated sc_trace_delta_cycles function.
authorGabe Black <gabeblack@google.com>
Sat, 16 Jun 2018 01:15:48 +0000 (18:15 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 22 Aug 2018 01:06:41 +0000 (01:06 +0000)
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>

src/systemc/ext/utils/_using.hh
src/systemc/ext/utils/sc_trace_file.hh
src/systemc/utils/sc_trace_file.cc

index e6477c7cb9f927656b83b5c25e085a6716d2304f..16b3e40310e6013220342f297fb2faa156534b03 100644 (file)
@@ -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;
 
index 9281d47e629aa8be6987763de1d740c7e5eae90c..db50e3967a1f3d2df8702a22b9d2f96fadd9b47f 100644 (file)
@@ -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 &)
index 9cae922e38ece3503cefdb5aea7a427796d0945d..2ac702daae8f169200506ea343971ab3fcc61329 100644 (file)
@@ -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