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/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/lru.hh')
-rw-r--r-- | src/mem/cache/tags/lru.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/cache/tags/lru.hh b/src/mem/cache/tags/lru.hh index 2874d8f1f..ecd6e861f 100644 --- a/src/mem/cache/tags/lru.hh +++ b/src/mem/cache/tags/lru.hh @@ -172,7 +172,7 @@ public: * @param lat The access latency. * @return Pointer to the cache block if found. */ - LRUBlk* accessBlock(Addr addr, int &lat); + LRUBlk* accessBlock(Addr addr, int &lat, int context_src); /** * Finds the given address in the cache, do not update replacement data. @@ -197,7 +197,7 @@ public: * @param addr The address to update. * @param blk The block to update. */ - void insertBlock(Addr addr, BlkType *blk); + void insertBlock(Addr addr, BlkType *blk, int context_src); /** * Generate the tag from the given address. |