diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-01-29 20:29:23 -0800 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-01-29 20:29:23 -0800 |
commit | 47502163b778c079009238f145dd095adb2bccf2 (patch) | |
tree | f4ccefde70e7d1e62c1750729c2b316d2e9dccf7 /src | |
parent | 66279fac3f099af78e63b5b181ddbd00a8b8244c (diff) | |
download | gem5-47502163b778c079009238f145dd095adb2bccf2.tar.xz |
ruby: added data print to ruby request
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/ruby/libruby.cc | 6 |
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; } |