The guts of sc_event_finder are supposed to be implementation defined,
but the tests reach in and call this particular method on that class.
Change-Id: I21c18fa68ccce7bc1a13122ee3b452ecb81b713a
Reviewed-on: https://gem5-review.googlesource.com/11274
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
class sc_event;
class sc_event_and_expr;
class sc_event_or_expr;
+class sc_interface;
class sc_object;
class sc_port_base;
{
protected:
void warn_unimpl(const char *func) const;
+
+ public:
+ // Should be "implementation defined" but used in the tests.
+ virtual const sc_event &find_event(sc_interface *if_p=NULL) const = 0;
};
template <class IF>
{
warn_unimpl(__PRETTY_FUNCTION__);
}
+
+ const sc_event &
+ find_event(sc_interface *if_p=NULL) const override
+ {
+ warn_unimpl(__PRETTY_FUNCTION__);
+ return *(const sc_event *)nullptr;
+ }
};
class sc_event_and_list