diff options
author | Daniel R. Carvalho <odanrc@yahoo.com.br> | 2018-03-05 16:06:21 +0100 |
---|---|---|
committer | Daniel Carvalho <odanrc@yahoo.com.br> | 2018-03-06 09:20:47 +0000 |
commit | a66fe6a8c36c9ab49cb3a35065bfc645d51036c8 (patch) | |
tree | cf026d469b6090b7829aa50e43fde0b017049747 /src | |
parent | 1ae7fced4d32898531a6875a339ef00e43e20e66 (diff) | |
download | gem5-a66fe6a8c36c9ab49cb3a35065bfc645d51036c8.tar.xz |
mem-cache: Use findBlock() in accessBlock()
Use placement policy specific block search within generic access.
Change-Id: I6070035e6e00595bcf073d4011f78a55ba7e7a8a
Reviewed-on: https://gem5-review.googlesource.com/8721
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/cache/tags/base_set_assoc.hh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mem/cache/tags/base_set_assoc.hh b/src/mem/cache/tags/base_set_assoc.hh index fc15b0220..21a250e75 100644 --- a/src/mem/cache/tags/base_set_assoc.hh +++ b/src/mem/cache/tags/base_set_assoc.hh @@ -161,9 +161,7 @@ public: */ CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat) override { - Addr tag = extractTag(addr); - int set = extractSet(addr); - BlkType *blk = sets[set].findBlk(tag, is_secure); + BlkType *blk = findBlock(addr, is_secure); // Access all tags in parallel, hence one in each way. The data side // either accesses all blocks in parallel, or one block sequentially on |