# HG changeset patch
# User Brad Beckmann <[email protected]>
# Date 1263536246 28800
# Node ID 0cafcd0a9c15571a428675f50a6afe33c0277751
# Parent 21f0f940d2cf75299af55e1cf25ad07cfb711df8
ruby: added data print to ruby request
diff -r 21f0f940d2cf -r 0cafcd0a9c15 src/mem/ruby/libruby.cc
--- a/src/mem/ruby/libruby.cc Thu Jan 14 22:17:26 2010 -0800
+++ b/src/mem/ruby/libruby.cc Thu Jan 14 22:17:26 2010 -0800
@@ -68,7 +68,11 @@
ostream& operator<<(std::ostream& out, const RubyRequest& obj)
{
- out << hex << "0x" << obj.paddr << flush;
+ out << hex << "0x" << obj.paddr << " data: 0x" << flush;
+ for (int i = 0; i < obj.len; i++) {
+ out << (int)obj.data[i];
+ }
+ out << dec << " type: " << RubyRequestType_to_string(obj.type) << endl;
return out;
}
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev