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

Change subject: systemc: Add bind() to sc_port_base.
......................................................................

systemc: Add bind() to sc_port_base.

sc_port_base is supposed to be implementation defined, but internal
details of it are relied on by the systemc tests.

Change-Id: I53d84e708a5543a2cf4bd0deffc2efea1c008d97
---
M src/systemc/core/sc_port.cc
M src/systemc/ext/core/sc_port.hh
2 files changed, 17 insertions(+), 0 deletions(-)



diff --git a/src/systemc/core/sc_port.cc b/src/systemc/core/sc_port.cc
index 46a295b..0f981ea 100644
--- a/src/systemc/core/sc_port.cc
+++ b/src/systemc/core/sc_port.cc
@@ -39,4 +39,16 @@
     warn("%s not implemented.\n", func);
 }

+void
+sc_port_base::bind(sc_interface &)
+{
+    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+}
+
+void
+sc_port_base::bind(sc_port_base &)
+{
+    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+}
+
 } // namespace sc_core
diff --git a/src/systemc/ext/core/sc_port.hh b/src/systemc/ext/core/sc_port.hh
index dfcae95..6f7c676 100644
--- a/src/systemc/ext/core/sc_port.hh
+++ b/src/systemc/ext/core/sc_port.hh
@@ -52,6 +52,11 @@
     {}

     void warn_unimpl(const char *func) const;
+
+  protected:
+    // Implementation defined, but depended on by the tests.
+    void bind(sc_interface &);
+    void bind(sc_port_base &);
 };

 template <class IF>

--
To view, visit https://gem5-review.googlesource.com/11350
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: I53d84e708a5543a2cf4bd0deffc2efea1c008d97
Gerrit-Change-Number: 11350
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