diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2014-09-01 16:55:50 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2014-09-01 16:55:50 -0500 |
commit | 2cbe7c705be1cce44c5581fa58569cd95cc0f62d (patch) | |
tree | df30549e0d7683b0f4c58039cd9c6247b54f7033 /src/mem/ruby/structures/BankedArray.cc | |
parent | 4ccdf8fb81ff670f111428c31b9741c926d87d20 (diff) | |
download | gem5-2cbe7c705be1cce44c5581fa58569cd95cc0f62d.tar.xz |
ruby: remove typedef of Index as int64
The Index type defined as typedef int64 does not really provide any help
since in most places we use primitive types instead of Index. Also, the name
Index is very generic that it does not merit being used as a typename.
Diffstat (limited to 'src/mem/ruby/structures/BankedArray.cc')
-rw-r--r-- | src/mem/ruby/structures/BankedArray.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/ruby/structures/BankedArray.cc b/src/mem/ruby/structures/BankedArray.cc index 0644ffe8b..0207f96be 100644 --- a/src/mem/ruby/structures/BankedArray.cc +++ b/src/mem/ruby/structures/BankedArray.cc @@ -48,7 +48,7 @@ BankedArray::BankedArray(unsigned int banks, Cycles accessLatency, } bool -BankedArray::tryAccess(Index idx) +BankedArray::tryAccess(int64 idx) { if (accessLatency == 0) return true; @@ -76,7 +76,7 @@ BankedArray::tryAccess(Index idx) } unsigned int -BankedArray::mapIndexToBank(Index idx) +BankedArray::mapIndexToBank(int64 idx) { if (banks == 1) { return 0; |