Gabriel B. has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/67668?usp=email )
Change subject: mem-ruby: Improve SLICC struct types generated print
functions
......................................................................
mem-ruby: Improve SLICC struct types generated print functions
Import stl_helpers::operator<< in the printing function generated by
SLICC to benefit from operator<< helped types. This specifically
improves message printing.
Change-Id: I1e152d5c10fc328ebd527b75e4a9597330bf16be
---
M src/mem/slicc/symbols/Type.py
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/mem/slicc/symbols/Type.py b/src/mem/slicc/symbols/Type.py
index c519026..d4c1cbe 100644
--- a/src/mem/slicc/symbols/Type.py
+++ b/src/mem/slicc/symbols/Type.py
@@ -450,6 +450,7 @@
#include <iostream>
#include <memory>
+#include "base/stl_helpers.hh"
#include "mem/ruby/protocol/${{self.c_ident}}.hh"
#include "mem/ruby/system/RubySystem.hh"
@@ -463,6 +464,7 @@
void
${{self.c_ident}}::print(std::ostream& out) const
{
+ using stl_helpers::operator<<;
out << "[${{self.c_ident}}: ";
"""
)
--
To view, visit
https://gem5-review.googlesource.com/c/public/gem5/+/67668?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I1e152d5c10fc328ebd527b75e4a9597330bf16be
Gerrit-Change-Number: 67668
Gerrit-PatchSet: 1
Gerrit-Owner: Gabriel B. <gabriel.bus...@arteris.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org