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>
This commit is contained in:
Gabe Black
2018-08-13 18:16:14 -07:00
parent 148713bd8b
commit 1e091040f9

View 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