From: Brad Beckmann Date: Sat, 30 Jan 2010 04:29:23 +0000 (-0800) Subject: ruby: added data print to ruby request X-Git-Tag: stable_2012_02_02~1545 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47502163b778c079009238f145dd095adb2bccf2;p=gem5.git ruby: added data print to ruby request --- 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; }