systemc: Add bind() to sc_port_base.
sc_port_base is supposed to be implementation defined, but internal details of it are relied on by the systemc tests. Change-Id: I53d84e708a5543a2cf4bd0deffc2efea1c008d97 Reviewed-on: https://gem5-review.googlesource.com/11350 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -39,4 +39,16 @@ sc_port_base::warn_unimpl(const char *func) const
|
||||
warn("%s not implemented.\n", func);
|
||||
}
|
||||
|
||||
void
|
||||
sc_port_base::bind(sc_interface &)
|
||||
{
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
}
|
||||
|
||||
void
|
||||
sc_port_base::bind(sc_port_base &)
|
||||
{
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
}
|
||||
|
||||
} // namespace sc_core
|
||||
|
||||
@@ -52,6 +52,11 @@ class sc_port_base : public sc_object
|
||||
{}
|
||||
|
||||
void warn_unimpl(const char *func) const;
|
||||
|
||||
protected:
|
||||
// Implementation defined, but depended on by the tests.
|
||||
void bind(sc_interface &);
|
||||
void bind(sc_port_base &);
|
||||
};
|
||||
|
||||
template <class IF>
|
||||
|
||||
Reference in New Issue
Block a user