summaryrefslogtreecommitdiff
path: root/src/mem/cache/tags/fa_lru.hh
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2008-11-04 11:35:57 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2008-11-04 11:35:57 -0500
commit4ab52cb986962f7c0fb0fa07de10d8cdfb51458a (patch)
tree842022c71384f5d59380d0ed32ad182fe7f6b99f /src/mem/cache/tags/fa_lru.hh
parentdd99ff23c6a71f7173014b5008d0cf12b7ef223a (diff)
downloadgem5-4ab52cb986962f7c0fb0fa07de10d8cdfb51458a.tar.xz
Change the findBlock(addr, lat) to accessBlock, which I think has better connotations for what is really happening and how it should be used.
Diffstat (limited to 'src/mem/cache/tags/fa_lru.hh')
-rw-r--r--src/mem/cache/tags/fa_lru.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh
index 43b3b5832..dfb21c08f 100644
--- a/src/mem/cache/tags/fa_lru.hh
+++ b/src/mem/cache/tags/fa_lru.hh
@@ -171,15 +171,17 @@ public:
void invalidateBlk(BlkType *blk);
/**
- * Find the block in the cache and update the replacement data. Returns
- * the access latency and the in cache flags as a side effect
+ * Access block and update replacement data. May not succeed, in which case
+ * NULL pointer is returned. This has all the implications of a cache
+ * access and should only be used as such.
+ * Returns the access latency and inCache flags as a side effect.
* @param addr The address to look for.
* @param asid The address space ID.
* @param lat The latency of the access.
* @param inCache The FALRUBlk::inCache flags.
* @return Pointer to the cache block.
*/
- FALRUBlk* findBlock(Addr addr, int &lat, int *inCache = 0);
+ FALRUBlk* accessBlock(Addr addr, int &lat, int *inCache = 0);
/**
* Find the block in the cache, do not update the replacement data.