From: Gabe Black Date: Tue, 14 Aug 2018 01:16:14 +0000 (-0700) Subject: systemc: Make BindInfo track ports or interfaces. X-Git-Tag: v19.0.0.0~1767 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e091040f93ef99a639980a70c2204cb3caadfaa;p=gem5.git systemc: Make BindInfo track ports or interfaces. Change-Id: I0ca0d5de8de59d92cb65af56c25f418ff32696f4 Reviewed-on: https://gem5-review.googlesource.com/12083 Reviewed-by: Gabe Black Maintainer: Gabe Black --- 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