diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2012-09-11 09:23:56 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2012-09-11 09:23:56 -0500 |
commit | f00347a20fca8bbb0a955723bf068e23fe66f170 (patch) | |
tree | 5af847871374784d1f038a4ddb25755ba5d56edf /src/mem/ruby/common/SubBlock.hh | |
parent | 5cdf221d8ce3f5b983672f26346aefc21b37a752 (diff) | |
download | gem5-f00347a20fca8bbb0a955723bf068e23fe66f170.tar.xz |
Ruby: Use uint8_t instead of uint8 everywhere
Diffstat (limited to 'src/mem/ruby/common/SubBlock.hh')
-rw-r--r-- | src/mem/ruby/common/SubBlock.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/ruby/common/SubBlock.hh b/src/mem/ruby/common/SubBlock.hh index 3ebc99630..6edb82ecc 100644 --- a/src/mem/ruby/common/SubBlock.hh +++ b/src/mem/ruby/common/SubBlock.hh @@ -48,12 +48,12 @@ class SubBlock int getSize() const { return m_data.size(); } void resize(int size) { m_data.resize(size); } - uint8 getByte(int offset) const { return m_data[offset]; } - void setByte(int offset, uint8 data) { m_data[offset] = data; } + uint8_t getByte(int offset) const { return m_data[offset]; } + void setByte(int offset, uint8_t data) { m_data[offset] = data; } // Shorthands - uint8 readByte() const { return getByte(0); } - void writeByte(uint8 data) { setByte(0, data); } + uint8_t readByte() const { return getByte(0); } + void writeByte(uint8_t data) { setByte(0, data); } // Merging to and from DataBlocks - We only need to worry about // updates when we are using DataBlocks |