summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-08-20 17:45:42 -0700
committerGabe Black <gabeblack@google.com>2018-09-25 23:52:21 +0000
commit6271b01679253b90fcea863fe82bf63e3ebd19f2 (patch)
tree3b7074e131fe3c6e780f21e83ab974db10ca1feb /src
parente752df70150b1af370944eedfc514fea816c0b1e (diff)
downloadgem5-6271b01679253b90fcea863fe82bf63e3ebd19f2.tar.xz
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 <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/systemc/ext/channel/sc_out.hh30
1 files 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<T>
sc_out(const char *name, sc_out<T> &parent) : sc_inout<T>(name, parent) {}
sc_out<T> &
- operator = (const T &)
+ operator = (const T &t)
{
- sc_channel_warn_unimpl(__PRETTY_FUNCTION__);
- return *(sc_out<T> *)nullptr;
+ sc_inout<T>::operator = (t);
+ return *this;
}
sc_out<T> &
- operator = (const sc_signal_in_if<T> &)
+ operator = (const sc_signal_in_if<T> &c)
{
- sc_channel_warn_unimpl(__PRETTY_FUNCTION__);
- return *(sc_out<T> *)nullptr;
+ sc_inout<T>::operator = (c);
+ return *this;
}
sc_out<T> &
- operator = (const sc_port<sc_signal_in_if<T>, 1> &)
+ operator = (const sc_port<sc_signal_in_if<T>, 1> &c)
{
- sc_channel_warn_unimpl(__PRETTY_FUNCTION__);
- return *(sc_out<T> *)nullptr;
+ sc_inout<T>::operator = (c);
+ return *this;
}
sc_out<T> &
- operator = (const sc_port<sc_signal_inout_if<T>, 1> &)
+ operator = (const sc_port<sc_signal_inout_if<T>, 1> &c)
{
- sc_channel_warn_unimpl(__PRETTY_FUNCTION__);
- return *(sc_out<T> *)nullptr;
+ sc_inout<T>::operator = (c);
+ return *this;
}
sc_out<T> &
- operator = (const sc_out<T> &)
+ operator = (const sc_out<T> &c)
{
- sc_channel_warn_unimpl(__PRETTY_FUNCTION__);
- return *(sc_out<T> *)nullptr;
+ sc_inout<T>::operator = (c);
+ return *this;
}
virtual const char *kind() const { return "sc_out"; }