From: Gabe Black Date: Tue, 21 Aug 2018 00:45:42 +0000 (-0700) Subject: systemc: Make sc_out delegate to its base class sc_inout. X-Git-Tag: v19.0.0.0~1749 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6271b01679253b90fcea863fe82bf63e3ebd19f2;p=gem5.git systemc: Make sc_out delegate to its base class sc_inout. The spec says these are essentially identical classes, they just have both so that users can show their intent. Change-Id: I51908edca89acea25891a52bfa7fca0681ccfc5c Reviewed-on: https://gem5-review.googlesource.com/12220 Reviewed-by: Gabe Black Maintainer: Gabe Black --- diff --git a/src/systemc/ext/channel/sc_out.hh b/src/systemc/ext/channel/sc_out.hh index 53bd25560..37e9a5982 100644 --- a/src/systemc/ext/channel/sc_out.hh +++ b/src/systemc/ext/channel/sc_out.hh @@ -62,34 +62,34 @@ class sc_out : public sc_inout sc_out(const char *name, sc_out &parent) : sc_inout(name, parent) {} sc_out & - operator = (const T &) + operator = (const T &t) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); - return *(sc_out *)nullptr; + sc_inout::operator = (t); + return *this; } sc_out & - operator = (const sc_signal_in_if &) + operator = (const sc_signal_in_if &c) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); - return *(sc_out *)nullptr; + sc_inout::operator = (c); + return *this; } sc_out & - operator = (const sc_port, 1> &) + operator = (const sc_port, 1> &c) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); - return *(sc_out *)nullptr; + sc_inout::operator = (c); + return *this; } sc_out & - operator = (const sc_port, 1> &) + operator = (const sc_port, 1> &c) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); - return *(sc_out *)nullptr; + sc_inout::operator = (c); + return *this; } sc_out & - operator = (const sc_out &) + operator = (const sc_out &c) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); - return *(sc_out *)nullptr; + sc_inout::operator = (c); + return *this; } virtual const char *kind() const { return "sc_out"; }