summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm/fastmodel/common/signal_receiver.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/arm/fastmodel/common/signal_receiver.hh b/src/arch/arm/fastmodel/common/signal_receiver.hh
index b45598239..ac4aa98c6 100644
--- a/src/arch/arm/fastmodel/common/signal_receiver.hh
+++ b/src/arch/arm/fastmodel/common/signal_receiver.hh
@@ -49,9 +49,11 @@ class SignalReceiver : public amba_pv::signal_slave_base<bool>
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)
{