mem-cache: Use findBlock() in accessBlock()
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Mon, 5 Mar 2018 15:06:21 +0000 (16:06 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Tue, 6 Mar 2018 09:20:47 +0000 (09:20 +0000)
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>

src/mem/cache/tags/base_set_assoc.hh

index fc15b0220b33dd2ad8e01d5b601433b444de50d1..21a250e755024dc82d90a99e8381eac02931689c 100644 (file)
@@ -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