Gabe Black has submitted this change and it was merged. ( https://gem5-review.googlesource.com/c/public/gem5/+/11354 )

Change subject: systemc: Add the "implementation defined" vport function.
......................................................................

systemc: Add the "implementation defined" vport function.

This function is in an "implementation defined" class body in the spec,
and has a comment next to it which says "(for internal use only)" next
to it, but it is still used directly in one of the tests.

Change-Id: Ib3727c93cc531ddd31a24897291dc7e7c97c2b58
Reviewed-on: https://gem5-review.googlesource.com/11354
Reviewed-by: Gabe Black <[email protected]>
Maintainer: Gabe Black <[email protected]>
---
M src/systemc/ext/core/sc_port.hh
1 file changed, 18 insertions(+), 0 deletions(-)

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



diff --git a/src/systemc/ext/core/sc_port.hh b/src/systemc/ext/core/sc_port.hh
index 6f7c676..262ca38 100644
--- a/src/systemc/ext/core/sc_port.hh
+++ b/src/systemc/ext/core/sc_port.hh
@@ -57,6 +57,10 @@
     // Implementation defined, but depended on by the tests.
     void bind(sc_interface &);
     void bind(sc_port_base &);
+
+    // Implementation defined, but depended on by the tests.
+    virtual int vbind(sc_interface &) = 0;
+    virtual int vbind(sc_port_base &) = 0;
 };

 template <class IF>
@@ -150,6 +154,20 @@
     {}
     virtual ~sc_port_b() {}

+    // Implementation defined, but depended on by the tests.
+    int
+    vbind(sc_interface &)
+    {
+        this->warn_unimpl(__PRETTY_FUNCTION__);
+        return 0;
+    }
+    int
+    vbind(sc_port_base &)
+    {
+        this->warn_unimpl(__PRETTY_FUNCTION__);
+        return 0;
+    }
+
   private:
     // Disabled
     sc_port_b() {}

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/11354
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: Ib3727c93cc531ddd31a24897291dc7e7c97c2b58
Gerrit-Change-Number: 11354
Gerrit-PatchSet: 9
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Matthias Jung <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to