systemc: Make BindInfo track ports or interfaces.
authorGabe Black <gabeblack@google.com>
Tue, 14 Aug 2018 01:16:14 +0000 (18:16 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 20 Sep 2018 01:45:41 +0000 (01:45 +0000)
Change-Id: I0ca0d5de8de59d92cb65af56c25f418ff32696f4
Reviewed-on: https://gem5-review.googlesource.com/12083
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/core/bindinfo.hh

index 332fb13300b5c15c6471d585c412acbb04e3b9f8..9e636a6965a1fcd2c25462499103afdf1a72d24d 100644 (file)
@@ -38,7 +38,16 @@ namespace sc_gem5
 class BindInfo
 {
   public:
+    BindInfo(::sc_core::sc_interface *interface) :
+        interface(interface), port(nullptr)
+    {}
+
+    BindInfo(::sc_core::sc_port_base *port) :
+        interface(nullptr), port(port)
+    {}
+
     ::sc_core::sc_interface *interface;
+    ::sc_core::sc_port_base *port;
 };
 
 } // namespace sc_gem5