summaryrefslogtreecommitdiff
path: root/src/mem/ruby/common/SubBlock.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-09-11 09:23:56 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2012-09-11 09:23:56 -0500
commitf00347a20fca8bbb0a955723bf068e23fe66f170 (patch)
tree5af847871374784d1f038a4ddb25755ba5d56edf /src/mem/ruby/common/SubBlock.hh
parent5cdf221d8ce3f5b983672f26346aefc21b37a752 (diff)
downloadgem5-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.hh8
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