summaryrefslogtreecommitdiff
path: root/src/mem/bus.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-09-21 10:11:24 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-09-21 10:11:24 -0400
commit4aee3aa073f9a20fff88daf0dd224e5c11d84b4e (patch)
tree3bd74d6212cad1ea572fa3a3c355d7ec419b2a9e /src/mem/bus.hh
parent166afc43e0bc2636b6824dd56b59ddbf12ddb4c1 (diff)
downloadgem5-4aee3aa073f9a20fff88daf0dd224e5c11d84b4e.tar.xz
Mem: Tidy up bus member variables types
This patch merely tidies up the types used for the bus member variables. It also makes the constant ones const.
Diffstat (limited to 'src/mem/bus.hh')
-rw-r--r--src/mem/bus.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mem/bus.hh b/src/mem/bus.hh
index 541e2f363..95699cf22 100644
--- a/src/mem/bus.hh
+++ b/src/mem/bus.hh
@@ -228,9 +228,9 @@ class BaseBus : public MemObject
};
/** cycles of overhead per transaction */
- int headerCycles;
+ const Cycles headerCycles;
/** the width of the bus in bytes */
- int width;
+ const uint32_t width;
typedef AddrRangeMap<PortID>::iterator PortMapIter;
typedef AddrRangeMap<PortID>::const_iterator PortMapConstIter;
@@ -346,10 +346,10 @@ class BaseBus : public MemObject
address not handled by another port and not in default device's
range will cause a fatal error. If false, just send all
addresses not handled by another port to default device. */
- bool useDefaultRange;
+ const bool useDefaultRange;
- unsigned defaultBlockSize;
- unsigned cachedBlockSize;
+ const uint32_t defaultBlockSize;
+ uint32_t cachedBlockSize;
bool cachedBlockSizeValid;
BaseBus(const BaseBusParams *p);