diff options
author | Gabe Black <gabeblack@google.com> | 2018-08-13 18:16:14 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-09-20 01:45:41 +0000 |
commit | 1e091040f93ef99a639980a70c2204cb3caadfaa (patch) | |
tree | fe3a4900c13521e59a81bb3b999c70449431941a | |
parent | 148713bd8ba40c854724d5a6b066a7f46007c63f (diff) | |
download | gem5-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.hh | 9 |
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 |