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/iic.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/iic.hh')
-rw-r--r-- | src/mem/cache/tags/iic.hh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mem/cache/tags/iic.hh b/src/mem/cache/tags/iic.hh index 0d513cf92..26f9858c4 100644 --- a/src/mem/cache/tags/iic.hh +++ b/src/mem/cache/tags/iic.hh @@ -410,14 +410,16 @@ class IIC : public BaseTags void invalidateBlk(BlkType *blk); /** - * Find the block and update the replacement data. This call also 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 and inCache flags as a side effect. * @param addr The address to find. * @param asid The address space ID. * @param lat The access latency. * @return A pointer to the block found, if any. */ - IICTag* findBlock(Addr addr, int &lat); + IICTag* accessBlock(Addr addr, int &lat); /** * Find the block, do not update the replacement data. |