From 2cbe7c705be1cce44c5581fa58569cd95cc0f62d Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Mon, 1 Sep 2014 16:55:50 -0500 Subject: 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. --- src/mem/ruby/structures/CacheMemory.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mem/ruby/structures/CacheMemory.hh') diff --git a/src/mem/ruby/structures/CacheMemory.hh b/src/mem/ruby/structures/CacheMemory.hh index 87a0b40c0..2a8a09fe9 100644 --- a/src/mem/ruby/structures/CacheMemory.hh +++ b/src/mem/ruby/structures/CacheMemory.hh @@ -131,12 +131,12 @@ class CacheMemory : public SimObject private: // convert a Address to its location in the cache - Index addressToCacheSet(const Address& address) const; + int64 addressToCacheSet(const Address& address) const; // Given a cache tag: returns the index of the tag in a set. // returns -1 if the tag is not found. - int findTagInSet(Index line, const Address& tag) const; - int findTagInSetIgnorePermissions(Index cacheSet, + int findTagInSet(int64 line, const Address& tag) const; + int findTagInSetIgnorePermissions(int64 cacheSet, const Address& tag) const; // Private copy constructor and assignment operator -- cgit v1.2.3