systemc: Add some deprecated positional binding operators.
These are used in one of the tests, specifically the comma operator. It didn't cause compilation to fail because of the default meaning of the comma. Change-Id: I7ce7fe74f02d4ad6a4ab896a2f0d6bd1ce635c2f Reviewed-on: https://gem5-review.googlesource.com/c/13298 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -210,6 +210,34 @@ sc_module::operator () (const sc_bind_proxy &p001,
|
||||
_gem5_module->bindPorts(proxies);
|
||||
}
|
||||
|
||||
sc_module &
|
||||
sc_module::operator << (sc_interface &iface)
|
||||
{
|
||||
(*this)(iface);
|
||||
return *this;
|
||||
}
|
||||
|
||||
sc_module &
|
||||
sc_module::operator << (sc_port_base &pb)
|
||||
{
|
||||
(*this)(pb);
|
||||
return *this;
|
||||
}
|
||||
|
||||
sc_module &
|
||||
sc_module::operator , (sc_interface &iface)
|
||||
{
|
||||
(*this)(iface);
|
||||
return *this;
|
||||
}
|
||||
|
||||
sc_module &
|
||||
sc_module::operator , (sc_port_base &pb)
|
||||
{
|
||||
(*this)(pb);
|
||||
return *this;
|
||||
}
|
||||
|
||||
const std::vector<sc_object *> &
|
||||
sc_module::get_child_objects() const
|
||||
{
|
||||
|
||||
@@ -166,6 +166,12 @@ class sc_module : public sc_object
|
||||
const sc_bind_proxy &p063 = SC_BIND_PROXY_NIL,
|
||||
const sc_bind_proxy &p064 = SC_BIND_PROXY_NIL);
|
||||
|
||||
// Deprecated
|
||||
sc_module &operator << (sc_interface &);
|
||||
sc_module &operator << (sc_port_base &);
|
||||
sc_module &operator , (sc_interface &);
|
||||
sc_module &operator , (sc_port_base &);
|
||||
|
||||
virtual const std::vector<sc_object *> &get_child_objects() const;
|
||||
virtual const std::vector<sc_event *> &get_child_events() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user