diff options
-rw-r--r-- | src/mem/cache/tags/fa_lru.cc | 4 | ||||
-rw-r--r-- | src/mem/cache/tags/fa_lru.hh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index 60998e254..604bd7d07 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -283,10 +283,10 @@ FALRUParams::create() } void -FALRU::CacheTracking::check(FALRUBlk *head, FALRUBlk *tail) +FALRU::CacheTracking::check(const FALRUBlk *head, const FALRUBlk *tail) const { #ifdef FALRU_DEBUG - FALRUBlk* blk = head; + const FALRUBlk* blk = head; unsigned curr_size = 0; unsigned tracked_cache_size = minTrackedSize; CachesMask in_caches_mask = inAllCachesMask; diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh index 03af572b8..43e58040f 100644 --- a/src/mem/cache/tags/fa_lru.hh +++ b/src/mem/cache/tags/fa_lru.hh @@ -335,7 +335,7 @@ class FALRU : public BaseTags * @param head the MRU block of the actual cache * @param head the LRU block of the actual cache */ - void check(FALRUBlk *head, FALRUBlk *tail); + void check(const FALRUBlk *head, const FALRUBlk *tail) const; /** * Register the stats for this object. |