diff options
author | David Hashe <david.hashe@amd.com> | 2015-07-20 09:15:18 -0500 |
---|---|---|
committer | David Hashe <david.hashe@amd.com> | 2015-07-20 09:15:18 -0500 |
commit | 7e9562013b1592c5cc402c43ee1d21025f375a71 (patch) | |
tree | 3e14882024790d898404eb246d37fa51051c4f8f /src/mem/ruby/structures/CacheMemory.hh | |
parent | 7e00772bda1a1c74fe659c56fea803642302c1da (diff) | |
download | gem5-7e9562013b1592c5cc402c43ee1d21025f375a71.tar.xz |
ruby: allocate a block in CacheMemory without updating LRU state
Diffstat (limited to 'src/mem/ruby/structures/CacheMemory.hh')
-rw-r--r-- | src/mem/ruby/structures/CacheMemory.hh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mem/ruby/structures/CacheMemory.hh b/src/mem/ruby/structures/CacheMemory.hh index 82bb65776..c9c20d8b8 100644 --- a/src/mem/ruby/structures/CacheMemory.hh +++ b/src/mem/ruby/structures/CacheMemory.hh @@ -74,10 +74,16 @@ class CacheMemory : public SimObject bool cacheAvail(const Address& address) const; // find an unused entry and sets the tag appropriate for the address - AbstractCacheEntry* allocate(const Address& address, AbstractCacheEntry* new_entry); + AbstractCacheEntry* allocate(const Address& address, + AbstractCacheEntry* new_entry, bool touch); + AbstractCacheEntry* allocate(const Address& address, + AbstractCacheEntry* new_entry) + { + return allocate(address, new_entry, true); + } void allocateVoid(const Address& address, AbstractCacheEntry* new_entry) { - allocate(address, new_entry); + allocate(address, new_entry, true); } // Explicitly free up this address |