summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/CacheMemory.hh
diff options
context:
space:
mode:
authorDerek Hower <drh5@cs.wisc.edu>2009-09-14 17:52:46 -0500
committerDerek Hower <drh5@cs.wisc.edu>2009-09-14 17:52:46 -0500
commit11f3f8306847bf912a9c5a31186231d23b31030d (patch)
tree7d4f194de8c93a168c22d58b284f0646cf53ed3d /src/mem/ruby/system/CacheMemory.hh
parent18e328cb63539accf7e7187ffed1e8a69e4db7cd (diff)
downloadgem5-11f3f8306847bf912a9c5a31186231d23b31030d.tar.xz
ruby:removed unused code from CacheMemory
Diffstat (limited to 'src/mem/ruby/system/CacheMemory.hh')
-rw-r--r--src/mem/ruby/system/CacheMemory.hh19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mem/ruby/system/CacheMemory.hh b/src/mem/ruby/system/CacheMemory.hh
index 4b2bc7084..aeb52ba2e 100644
--- a/src/mem/ruby/system/CacheMemory.hh
+++ b/src/mem/ruby/system/CacheMemory.hh
@@ -292,16 +292,6 @@ int CacheMemory::findTagInSet(Index cacheSet, const Address& tag) const
if (m_cache[cacheSet][it->second]->m_Permission != AccessPermission_NotPresent)
return it->second;
return -1; // Not found
- /*
- for (int i=0; i < m_cache_assoc; i++) {
- if ((m_cache[cacheSet][i] != NULL) &&
- (m_cache[cacheSet][i]->m_Address == tag) &&
- (m_cache[cacheSet][i]->m_Permission != AccessPermission_NotPresent)) {
- return i;
- }
- }
- return -1; // Not found
- */
}
// Given a cache index: returns the index of the tag in a set.
@@ -315,15 +305,6 @@ int CacheMemory::findTagInSetIgnorePermissions(Index cacheSet, const Address& ta
if (it != m_tag_index.end())
return it->second;
return -1; // Not found
- /*
- assert(tag == line_address(tag));
- // search the set for the tags
- for (int i=0; i < m_cache_assoc; i++) {
- if (m_cache[cacheSet][i] != NULL && m_cache[cacheSet][i]->m_Address == tag)
- return i;
- }
- return -1; // Not found
- */
}
// PUBLIC METHODS