diff options
author | Lisa Hsu <Lisa.Hsu@amd.com> | 2010-01-12 10:53:02 -0800 |
---|---|---|
committer | Lisa Hsu <Lisa.Hsu@amd.com> | 2010-01-12 10:53:02 -0800 |
commit | 8b4e8690b73f61ae0bb2cb052ec56f58d1d531e2 (patch) | |
tree | 34001c05d1ff8c1a6d30a0356ff2623c49e16a0b /src/mem/cache/tags/fa_lru.hh | |
parent | 9f635484784a9a523fc356df9e55922660d13d8f (diff) | |
download | gem5-8b4e8690b73f61ae0bb2cb052ec56f58d1d531e2.tar.xz |
cache: make tags->insertBlock() and tags->accessBlock() context aware so that the cache can make context-specific decisions within their various tag policy implementations.
Diffstat (limited to 'src/mem/cache/tags/fa_lru.hh')
-rw-r--r-- | src/mem/cache/tags/fa_lru.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh index 4e6bccc1d..b20d25d2b 100644 --- a/src/mem/cache/tags/fa_lru.hh +++ b/src/mem/cache/tags/fa_lru.hh @@ -182,7 +182,7 @@ public: * @param inCache The FALRUBlk::inCache flags. * @return Pointer to the cache block. */ - FALRUBlk* accessBlock(Addr addr, int &lat, int *inCache = 0); + FALRUBlk* accessBlock(Addr addr, int &lat, int context_src, int *inCache = 0); /** * Find the block in the cache, do not update the replacement data. @@ -200,7 +200,7 @@ public: */ FALRUBlk* findVictim(Addr addr, PacketList & writebacks); - void insertBlock(Addr addr, BlkType *blk); + void insertBlock(Addr addr, BlkType *blk, int context_src); /** * Return the hit latency of this cache. |