From 47502163b778c079009238f145dd095adb2bccf2 Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Fri, 29 Jan 2010 20:29:23 -0800 Subject: ruby: added data print to ruby request --- src/mem/ruby/libruby.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3