diff options
author | Derek Hower <drh5@cs.wisc.edu> | 2009-07-18 16:58:33 -0500 |
---|---|---|
committer | Derek Hower <drh5@cs.wisc.edu> | 2009-07-18 16:58:33 -0500 |
commit | 340845b13989d4823a524521f0345ecb32f10894 (patch) | |
tree | 3457bf5e37c7642be348b8a2e0187181e43fbb40 /src/mem | |
parent | 7433029cd5feba8995d5b0733a9069092e403b4a (diff) | |
download | gem5-340845b13989d4823a524521f0345ecb32f10894.tar.xz |
ruby: better debug print for DataBlock
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/ruby/common/DataBlock.hh | 4 |
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; } |