summaryrefslogtreecommitdiff
path: root/src/mem/ruby/common
diff options
context:
space:
mode:
authorDerek Hower <drh5@cs.wisc.edu>2009-07-18 16:58:33 -0500
committerDerek Hower <drh5@cs.wisc.edu>2009-07-18 16:58:33 -0500
commit340845b13989d4823a524521f0345ecb32f10894 (patch)
tree3457bf5e37c7642be348b8a2e0187181e43fbb40 /src/mem/ruby/common
parent7433029cd5feba8995d5b0733a9069092e403b4a (diff)
downloadgem5-340845b13989d4823a524521f0345ecb32f10894.tar.xz
ruby: better debug print for DataBlock
Diffstat (limited to 'src/mem/ruby/common')
-rw-r--r--src/mem/ruby/common/DataBlock.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/ruby/common/DataBlock.hh b/src/mem/ruby/common/DataBlock.hh
index 2a0811f76..ccd73c36b 100644
--- a/src/mem/ruby/common/DataBlock.hh
+++ b/src/mem/ruby/common/DataBlock.hh
@@ -108,8 +108,8 @@ void DataBlock::print(ostream& out) const
{
int size = RubySystem::getBlockSizeBytes();
out << "[ ";
- for (int i = 0; i < size; i+=4) {
- out << hex << *((uint32*)(&(m_data[i]))) << " ";
+ for (int i = 0; i < size; i++) {
+ out << setw(2) << setfill('0') << hex << "0x" << (int)m_data[i] << " ";
}
out << dec << "]" << flush;
}