Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/12454

Change subject: systemc: Implement the << operator for sc_signal.
......................................................................

systemc: Implement the << operator for sc_signal.

Change-Id: I16955e58d96d49ec3bba90b73f5a368a245da438
---
M src/systemc/ext/channel/sc_signal.hh
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 d195f4d..022bd33 100644
--- a/src/systemc/ext/channel/sc_signal.hh
+++ b/src/systemc/ext/channel/sc_signal.hh
@@ -173,9 +173,9 @@

 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;
 }


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12454
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I16955e58d96d49ec3bba90b73f5a368a245da438
Gerrit-Change-Number: 12454
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to