diff options
author | Gabe Black <gabeblack@google.com> | 2018-08-30 16:01:47 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-03 00:26:48 +0000 |
commit | 4c467c9ea9838b3644be131f455263f47a8f3988 (patch) | |
tree | de0417f1d396310ac4aaddc22be38f31c5ab4b62 /src/systemc/ext/channel | |
parent | cece6d4e76a6af54824191bee71e7f9cf66eabfb (diff) | |
download | gem5-4c467c9ea9838b3644be131f455263f47a8f3988.tar.xz |
systemc: Implement the << operator for sc_signal.
Change-Id: I16955e58d96d49ec3bba90b73f5a368a245da438
Reviewed-on: https://gem5-review.googlesource.com/c/12454
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/ext/channel')
-rw-r--r-- | src/systemc/ext/channel/sc_signal.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemc/ext/channel/sc_signal.hh b/src/systemc/ext/channel/sc_signal.hh index d195f4d56..022bd3394 100644 --- a/src/systemc/ext/channel/sc_signal.hh +++ b/src/systemc/ext/channel/sc_signal.hh @@ -173,9 +173,9 @@ class sc_signal : public sc_signal_inout_if<T>, template <class T, sc_writer_policy WRITER_POLICY> inline std::ostream & -operator << (std::ostream &os, const sc_signal<T, WRITER_POLICY> &) +operator << (std::ostream &os, const sc_signal<T, WRITER_POLICY> &s) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); + os << s.read(); return os; } |