diff options
author | Daniel R. Carvalho <odanrc@yahoo.com.br> | 2018-03-06 11:48:21 +0100 |
---|---|---|
committer | Daniel Carvalho <odanrc@yahoo.com.br> | 2018-03-09 09:50:56 +0000 |
commit | ee16a95ec8a7f2d207320670a135065981033f61 (patch) | |
tree | 060c40d22e411bf198c279faadec2e1e895d9bfe /src/mem/cache/tags/fa_lru.hh | |
parent | a883aef55f2b9f33e60ce72a3e053e0c7af0f21e (diff) | |
download | gem5-ee16a95ec8a7f2d207320670a135065981033f61.tar.xz |
mem-cache: Use CacheBlk parameter on address regeneration
Skewed caches need to know the way to regenerate a block address.
Change-Id: I62c61ac9509eff2f37bad36862751956db7a6e40
Reviewed-on: https://gem5-review.googlesource.com/8782
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/cache/tags/fa_lru.hh')
-rw-r--r-- | src/mem/cache/tags/fa_lru.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh index a266fb516..559f56e28 100644 --- a/src/mem/cache/tags/fa_lru.hh +++ b/src/mem/cache/tags/fa_lru.hh @@ -242,14 +242,14 @@ public: } /** - * Regenerate the block address from the tag and the set. - * @param tag The tag of the block. - * @param set The set the block belongs to. + * Regenerate the block address from the tag. + * + * @param block The block. * @return the block address. */ - Addr regenerateBlkAddr(Addr tag, unsigned set) const override + Addr regenerateBlkAddr(const CacheBlk* blk) const override { - return (tag); + return blk->tag; } /** |