From: Gabe Black Date: Thu, 30 Aug 2018 23:01:47 +0000 (-0700) Subject: systemc: Implement the << operator for sc_signal. X-Git-Tag: v19.0.0.0~1677 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c467c9ea9838b3644be131f455263f47a8f3988;p=gem5.git systemc: Implement the << operator for sc_signal. Change-Id: I16955e58d96d49ec3bba90b73f5a368a245da438 Reviewed-on: https://gem5-review.googlesource.com/c/12454 Reviewed-by: Gabe Black Maintainer: Gabe Black --- 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, template inline std::ostream & -operator << (std::ostream &os, const sc_signal &) +operator << (std::ostream &os, const sc_signal &s) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); + os << s.read(); return os; }