ruby: added data print to ruby request
authorBrad Beckmann <Brad.Beckmann@amd.com>
Sat, 30 Jan 2010 04:29:23 +0000 (20:29 -0800)
committerBrad Beckmann <Brad.Beckmann@amd.com>
Sat, 30 Jan 2010 04:29:23 +0000 (20:29 -0800)
src/mem/ruby/libruby.cc

index c4f1ece956df3f2f8fb09802b722a8d3dc29342b..16907792c878ecd8b222bfaffd1f68297c18b1e2 100644 (file)
@@ -65,7 +65,11 @@ ostream& operator<<(ostream& out, const RubyRequestType& obj)
 
 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;
 }