[gem5-dev] Change in gem5/gem5[master]: systemc: Add the deprecated sc_trace_delta_cycles function.

2018-08-21 Thread Gabe Black (Gerrit)
Gabe Black has submitted this change and it was merged. (  
https://gem5-review.googlesource.com/c/public/gem5/+/11267 )


Change subject: systemc: Add the deprecated sc_trace_delta_cycles function.
..

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 
Maintainer: Gabe Black 
---
M src/systemc/ext/utils/_using.hh
M src/systemc/ext/utils/sc_trace_file.hh
M src/systemc/utils/sc_trace_file.cc
3 files changed, 10 insertions(+), 0 deletions(-)

Approvals:
  Gabe Black: Looks good to me, approved; Looks good to me, approved



diff --git a/src/systemc/ext/utils/_using.hh  
b/src/systemc/ext/utils/_using.hh

index e6477c7..16b3e40 100644
--- a/src/systemc/ext/utils/_using.hh
+++ b/src/systemc/ext/utils/_using.hh
@@ -71,6 +71,7 @@
 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 9281d47..db50e39 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 unsigned int &,
   const std::string &, const char **enum_literals);

+// Deprecated
+void sc_trace_delta_cycles(sc_trace_file *, bool on=true);
+
 template 
 void
 sc_trace(sc_trace_file *, const sc_signal_in_if &, const std::string &)
diff --git a/src/systemc/utils/sc_trace_file.cc  
b/src/systemc/utils/sc_trace_file.cc

index 9cae922..2ac702d 100644
--- a/src/systemc/utils/sc_trace_file.cc
+++ b/src/systemc/utils/sc_trace_file.cc
@@ -407,4 +407,10 @@
 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

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/11267
To unsubscribe, or for help writing mail filters, visit  
https://gem5-review.googlesource.com/settings


Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I53164a792856d071de1fefc76977cca8eb5fd735
Gerrit-Change-Number: 11267
Gerrit-PatchSet: 6
Gerrit-Owner: Gabe Black 
Gerrit-Reviewer: Andreas Sandberg 
Gerrit-Reviewer: Gabe Black 
Gerrit-Reviewer: Giacomo Travaglini 
Gerrit-Reviewer: Jason Lowe-Power 
Gerrit-Reviewer: Matthias Jung 
Gerrit-MessageType: merged
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

[gem5-dev] Change in gem5/gem5[master]: systemc: Add the deprecated sc_trace_delta_cycles function.

2018-06-16 Thread Gabe Black (Gerrit)
Gabe Black has uploaded this change for review. (  
https://gem5-review.googlesource.com/11267



Change subject: systemc: Add the deprecated sc_trace_delta_cycles function.
..

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
---
M src/systemc/ext/utils/_using.hh
M src/systemc/ext/utils/sc_trace_file.hh
M src/systemc/utils/sc_trace_file.cc
3 files changed, 10 insertions(+), 0 deletions(-)



diff --git a/src/systemc/ext/utils/_using.hh  
b/src/systemc/ext/utils/_using.hh

index e6477c7..16b3e40 100644
--- a/src/systemc/ext/utils/_using.hh
+++ b/src/systemc/ext/utils/_using.hh
@@ -71,6 +71,7 @@
 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 9281d47..db50e39 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 unsigned int &,
   const std::string &, const char **enum_literals);

+// Deprecated
+void sc_trace_delta_cycles(sc_trace_file *, bool on=true);
+
 template 
 void
 sc_trace(sc_trace_file *, const sc_signal_in_if &, const std::string &)
diff --git a/src/systemc/utils/sc_trace_file.cc  
b/src/systemc/utils/sc_trace_file.cc

index 9cae922..2ac702d 100644
--- a/src/systemc/utils/sc_trace_file.cc
+++ b/src/systemc/utils/sc_trace_file.cc
@@ -407,4 +407,10 @@
 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

--
To view, visit https://gem5-review.googlesource.com/11267
To unsubscribe, or for help writing mail filters, visit  
https://gem5-review.googlesource.com/settings


Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I53164a792856d071de1fefc76977cca8eb5fd735
Gerrit-Change-Number: 11267
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black 
Gerrit-MessageType: newchange
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev