summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2010-01-29 20:29:23 -0800
committerBrad Beckmann <Brad.Beckmann@amd.com>2010-01-29 20:29:23 -0800
commit47502163b778c079009238f145dd095adb2bccf2 (patch)
treef4ccefde70e7d1e62c1750729c2b316d2e9dccf7 /src
parent66279fac3f099af78e63b5b181ddbd00a8b8244c (diff)
downloadgem5-47502163b778c079009238f145dd095adb2bccf2.tar.xz
ruby: added data print to ruby request
Diffstat (limited to 'src')
-rw-r--r--src/mem/ruby/libruby.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mem/ruby/libruby.cc b/src/mem/ruby/libruby.cc
index c4f1ece95..16907792c 100644
--- a/src/mem/ruby/libruby.cc
+++ b/src/mem/ruby/libruby.cc
@@ -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;
}