projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66279fa
)
ruby: added data print to ruby request
author
Brad Beckmann
<Brad.Beckmann@amd.com>
Sat, 30 Jan 2010 04:29:23 +0000
(20:29 -0800)
committer
Brad Beckmann
<Brad.Beckmann@amd.com>
Sat, 30 Jan 2010 04:29:23 +0000
(20:29 -0800)
src/mem/ruby/libruby.cc
patch
|
blob
|
history
diff --git
a/src/mem/ruby/libruby.cc
b/src/mem/ruby/libruby.cc
index c4f1ece956df3f2f8fb09802b722a8d3dc29342b..16907792c878ecd8b222bfaffd1f68297c18b1e2 100644
(file)
--- 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;
}