From 6271b01679253b90fcea863fe82bf63e3ebd19f2 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 20 Aug 2018 17:45:42 -0700 Subject: [PATCH] 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 --- src/systemc/ext/channel/sc_out.hh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) 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"; } -- 2.30.2