summaryrefslogtreecommitdiff
path: root/src/mem/ruby/structures/DirectoryMemory.cc
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-09-01 16:55:50 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2014-09-01 16:55:50 -0500
commit2cbe7c705be1cce44c5581fa58569cd95cc0f62d (patch)
treedf30549e0d7683b0f4c58039cd9c6247b54f7033 /src/mem/ruby/structures/DirectoryMemory.cc
parent4ccdf8fb81ff670f111428c31b9741c926d87d20 (diff)
downloadgem5-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/DirectoryMemory.cc')
-rw-r--r--src/mem/ruby/structures/DirectoryMemory.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/ruby/structures/DirectoryMemory.cc b/src/mem/ruby/structures/DirectoryMemory.cc
index db165460c..2f972674f 100644
--- a/src/mem/ruby/structures/DirectoryMemory.cc
+++ b/src/mem/ruby/structures/DirectoryMemory.cc
@@ -171,7 +171,7 @@ DirectoryMemory::invalidateBlock(PhysAddress address)
else {
assert(isPresent(address));
- Index index = address.memoryModuleIndex();
+ int64 index = address.memoryModuleIndex();
if (index < 0 || index > m_size) {
ERROR_MSG("Directory Memory Assertion: "