summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-08-13 18:16:14 -0700
committerGabe Black <gabeblack@google.com>2018-09-20 01:45:41 +0000
commit1e091040f93ef99a639980a70c2204cb3caadfaa (patch)
treefe3a4900c13521e59a81bb3b999c70449431941a
parent148713bd8ba40c854724d5a6b066a7f46007c63f (diff)
downloadgem5-1e091040f93ef99a639980a70c2204cb3caadfaa.tar.xz
systemc: Make BindInfo track ports or interfaces.
Change-Id: I0ca0d5de8de59d92cb65af56c25f418ff32696f4 Reviewed-on: https://gem5-review.googlesource.com/12083 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
-rw-r--r--src/systemc/core/bindinfo.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/systemc/core/bindinfo.hh b/src/systemc/core/bindinfo.hh
index 332fb1330..9e636a696 100644
--- a/src/systemc/core/bindinfo.hh
+++ b/src/systemc/core/bindinfo.hh
@@ -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