From 4c467c9ea9838b3644be131f455263f47a8f3988 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 30 Aug 2018 16:01:47 -0700 Subject: [PATCH] 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 --- src/systemc/ext/channel/sc_signal.hh | 4 ++-- 1 file 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, 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; } -- 2.30.2