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

Change subject: systemc: Add some constructors to sc_bind_proxy.
......................................................................

systemc: Add some constructors to sc_bind_proxy.

These constructors where strongly implied by the text of the systemc
spec, but the sc_bind_proxy class was left entirely to the
implementation and so weren't explicitly spelled out as part of the
class definition. They're necessary for the positional port binding
mechanism.

Change-Id: Ia9a3b246c46cd9cecf632b759308ffa0e9a555cf
---
M src/systemc/core/sc_module.cc
M src/systemc/ext/core/sc_module.hh
2 files changed, 14 insertions(+), 1 deletion(-)



diff --git a/src/systemc/core/sc_module.cc b/src/systemc/core/sc_module.cc
index f5c73c0..d752729 100644
--- a/src/systemc/core/sc_module.cc
+++ b/src/systemc/core/sc_module.cc
@@ -33,7 +33,17 @@
 namespace sc_core
 {

-const sc_bind_proxy SC_BIND_PROXY_NUL;
+sc_bind_proxy::sc_bind_proxy(const sc_interface &interface)
+{
+    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+}
+
+sc_bind_proxy::sc_bind_proxy(const sc_port_base &port)
+{
+    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+}
+
+const sc_bind_proxy SC_BIND_PROXY_NUL(*(const sc_port_base *)nullptr);

 sc_module::~sc_module()
 {
diff --git a/src/systemc/ext/core/sc_module.hh b/src/systemc/ext/core/sc_module.hh
index b5866ca..57e5db4 100644
--- a/src/systemc/ext/core/sc_module.hh
+++ b/src/systemc/ext/core/sc_module.hh
@@ -55,6 +55,9 @@

 class sc_bind_proxy
 {
+  public:
+    sc_bind_proxy(const sc_interface &interface);
+    sc_bind_proxy(const sc_port_base &port);
 };

 extern const sc_bind_proxy SC_BIND_PROXY_NIL;

--
To view, visit https://gem5-review.googlesource.com/10960
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: Ia9a3b246c46cd9cecf632b759308ffa0e9a555cf
Gerrit-Change-Number: 10960
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to