diff options
author | Lisa Hsu <hsul@eecs.umich.edu> | 2008-11-04 11:35:57 -0500 |
---|---|---|
committer | Lisa Hsu <hsul@eecs.umich.edu> | 2008-11-04 11:35:57 -0500 |
commit | 4ab52cb986962f7c0fb0fa07de10d8cdfb51458a (patch) | |
tree | 842022c71384f5d59380d0ed32ad182fe7f6b99f /src/mem/cache/tags/lru.hh | |
parent | dd99ff23c6a71f7173014b5008d0cf12b7ef223a (diff) | |
download | gem5-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/lru.hh')
-rw-r--r-- | src/mem/cache/tags/lru.hh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mem/cache/tags/lru.hh b/src/mem/cache/tags/lru.hh index 39b547f57..4f4c495f3 100644 --- a/src/mem/cache/tags/lru.hh +++ b/src/mem/cache/tags/lru.hh @@ -160,17 +160,19 @@ public: void invalidateBlk(BlkType *blk); /** - * Finds the given address in the cache and update replacement data. - * Returns the access latency 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 as a side effect. * @param addr The address to find. * @param asid The address space ID. * @param lat The access latency. * @return Pointer to the cache block if found. */ - LRUBlk* findBlock(Addr addr, int &lat); + LRUBlk* accessBlock(Addr addr, int &lat); /** * Finds the given address in the cache, do not update replacement data. + * i.e. This is a no-side-effect find of a block. * @param addr The address to find. * @param asid The address space ID. * @return Pointer to the cache block if found. |