Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/11183

Change subject: systemc: Add some deprecated features to sc_clock.*.
......................................................................

systemc: Add some deprecated features to sc_clock.*.

Add in two deprecated typedefs, and a deprecated constructor. These
are necessary to get the regressions to build.

Change-Id: Id8320a67c680acbca0abaee9898158ffd2678d67
---
M src/systemc/channel/sc_clock.cc
M src/systemc/ext/channel/_using.hh
M src/systemc/ext/channel/sc_clock.hh
3 files changed, 17 insertions(+), 1 deletion(-)



diff --git a/src/systemc/channel/sc_clock.cc b/src/systemc/channel/sc_clock.cc
index ac1d336..891c666 100644
--- a/src/systemc/channel/sc_clock.cc
+++ b/src/systemc/channel/sc_clock.cc
@@ -65,6 +65,12 @@
     warn("%s not implemented.\n", __PRETTY_FUNCTION__);
 }

+sc_clock::sc_clock(const char *name, double period, double duty_cycle,
+                   double start_time, bool posedge_first)
+{
+    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+}
+
 sc_clock::~sc_clock() {}

 void
diff --git a/src/systemc/ext/channel/_using.hh b/src/systemc/ext/channel/_using.hh
index 089991f..307e89f 100644
--- a/src/systemc/ext/channel/_using.hh
+++ b/src/systemc/ext/channel/_using.hh
@@ -34,8 +34,10 @@

 using sc_core::sc_buffer;

-using sc_core::sc_in_clk;
 using sc_core::sc_clock;
+using sc_core::sc_in_clk;
+using sc_core::sc_inout_clk;
+using sc_core::sc_out_clk;

 using sc_core::sc_event_queue;

diff --git a/src/systemc/ext/channel/sc_clock.hh b/src/systemc/ext/channel/sc_clock.hh
index 9ca160c..ae1f6c9 100644
--- a/src/systemc/ext/channel/sc_clock.hh
+++ b/src/systemc/ext/channel/sc_clock.hh
@@ -58,6 +58,10 @@
              double duty_cycle, double start_time_v,
              sc_time_unit start_time_tu, bool posedge_first=true);

+    // Deprecated.
+    sc_clock(const char *name, double period, double duty_cycle=0.5,
+             double start_time=0.0, bool posedge_first=true);
+
     virtual ~sc_clock();

     virtual void write(const bool &);
@@ -80,6 +84,10 @@

 typedef sc_in<bool> sc_in_clk;

+// Deprecated
+typedef sc_inout<bool> sc_inout_clk;
+typedef sc_out<bool> sc_out_clk;
+
 } // namespace sc_core

 #endif  //__SYSTEMC_EXT_CHANNEL_SC_CLOCK_HH__

--
To view, visit https://gem5-review.googlesource.com/11183
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: Id8320a67c680acbca0abaee9898158ffd2678d67
Gerrit-Change-Number: 11183
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to