That event being available is nonstandard. Define our own static event
for use in that case.
Change-Id: I5e8892bd83cc1984d63949ef3e249755dca0c702
Reviewed-on: https://gem5-review.googlesource.com/c/15296
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
{
const IF *iface = if_p ? dynamic_cast<const IF *>(if_p) :
dynamic_cast<const IF *>(port()->_gem5Interface(0));
+ static sc_core::sc_event none;
if (iface == nullptr) {
report_error(sc_core::SC_ID_FIND_EVENT_, "port is not bound");
- return sc_core::sc_event::none;
+ return none;
}
return (const_cast<IF *>(iface)->*m_event_method)(nullptr);
}