Change-Id: I22d88111409fc477c135b15c8f898adad4f6d4ab
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21502
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
public:
amba_pv::signal_slave_export<bool> signal_in;
- SignalReceiver(const char *name) : SignalReceiver(name, nullptr) {}
+ SignalReceiver(const std::string &name, OnChangeFunc on_change=nullptr) :
+ SignalReceiver(name.c_str(), on_change)
+ {}
- SignalReceiver(const char *name, OnChangeFunc on_change) :
+ SignalReceiver(const char *name, OnChangeFunc on_change=nullptr) :
amba_pv::signal_slave_base<bool>(name),
_state(false), _onChange(on_change)
{