diff options
Diffstat (limited to 'src/mem/cache/tags/fa_lru.hh')
-rw-r--r-- | src/mem/cache/tags/fa_lru.hh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh index fd183ab03..1c6bd2431 100644 --- a/src/mem/cache/tags/fa_lru.hh +++ b/src/mem/cache/tags/fa_lru.hh @@ -236,6 +236,34 @@ public: } /** + * Return the number of sets this cache has + * @return The number of sets. + */ + unsigned + getNumSets() const + { + return 1; + } + + /** + * Return the number of ways this cache has + * @return The number of ways. + */ + unsigned + getNumWays() const + { + return numBlocks; + } + + /** + * Find the cache block given set and way + * @param set The set of the block. + * @param way The way of the block. + * @return The cache block. + */ + CacheBlk* findBlockBySetAndWay(int set, int way) const; + + /** * Align an address to the block size. * @param addr the address to align. * @return The aligned address. |