mem-cache: Remove writebacks parameter from serviceMSHRTargets
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 5 Dec 2018 14:06:56 +0000 (15:06 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Wed, 5 Dec 2018 16:02:01 +0000 (16:02 +0000)
Change 8ba77ae8fc98a355082da2bd9fdc6ecf4928f725 introduced the
writebacks parameter, but it was never used.

Change-Id: I225e5b399de42d77c72fc0012d3dc93ef39b8853
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/14896
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>

src/mem/cache/base.cc
src/mem/cache/base.hh
src/mem/cache/cache.cc
src/mem/cache/cache.hh
src/mem/cache/noncoherent_cache.cc
src/mem/cache/noncoherent_cache.hh

index bad24f7ee19e897efa24d5cc0e5f0d6736e33512..08cd09fc5a0a3f375689f8f358632f35b7d9012f 100644 (file)
@@ -498,7 +498,7 @@ BaseCache::recvTimingResp(PacketPtr pkt)
         mshr->promoteWritable();
     }
 
-    serviceMSHRTargets(mshr, pkt, blk, writebacks);
+    serviceMSHRTargets(mshr, pkt, blk);
 
     if (mshr->promoteDeferredTargets()) {
         // avoid later read getting stale data while write miss is
index 240bf216f317296a4914cf4d6750063bfeb9bb6f..70b3d3e450fdbdbe565ad01a3b35ce788aa81a41 100644 (file)
@@ -495,16 +495,14 @@ class BaseCache : public MemObject
      * Service non-deferred MSHR targets using the received response
      *
      * Iterates through the list of targets that can be serviced with
-     * the current response. Any writebacks that need to performed
-     * must be appended to the writebacks parameter.
+     * the current response.
      *
      * @param mshr The MSHR that corresponds to the reponse
      * @param pkt The response packet
      * @param blk The reference block
-     * @param writebacks List of writebacks that need to be performed
      */
     virtual void serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt,
-                                    CacheBlk *blk, PacketList& writebacks) = 0;
+                                    CacheBlk *blk) = 0;
 
     /**
      * Handles a response (cache line fill/write ack) from the bus.
index 624f244ce91b0e196ce66150ec443b914587fb12..90c4b9b5a4a8bb36c2ad4557b69d92e6a0610334 100644 (file)
@@ -685,8 +685,7 @@ Cache::recvAtomic(PacketPtr pkt)
 
 
 void
-Cache::serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt, CacheBlk *blk,
-                          PacketList &writebacks)
+Cache::serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt, CacheBlk *blk)
 {
     MSHR::Target *initial_tgt = mshr->getTarget();
     // First offset for critical word first calculations
index a7eb97d3bb7097b4089c10034971982d4c323ff3..33c5a2412a04a32988b781dd7e958c4156f21b0a 100644 (file)
@@ -103,8 +103,8 @@ class Cache : public BaseCache
 
     void doWritebacksAtomic(PacketList& writebacks) override;
 
-    void serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt, CacheBlk *blk,
-                            PacketList& writebacks) override;
+    void serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt,
+                            CacheBlk *blk) override;
 
     void recvTimingSnoopReq(PacketPtr pkt) override;
 
index 5edd435c6eded8c2c20784f67404705aef3c77c6..ca282a38dab3e7c1f142120c63be8ec6963b64c2 100644 (file)
@@ -243,7 +243,7 @@ NoncoherentCache::functionalAccess(PacketPtr pkt, bool from_cpu_side)
 
 void
 NoncoherentCache::serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt,
-                                     CacheBlk *blk, PacketList &writebacks)
+                                     CacheBlk *blk)
 {
     MSHR::Target *initial_tgt = mshr->getTarget();
     // First offset for critical word first calculations
index 824c7ccc9f18a2421ee75e49784631d1b3f4fa05..3da87d90e0966bcca270e53ce506267fcc59da4f 100644 (file)
@@ -86,7 +86,7 @@ class NoncoherentCache : public BaseCache
     void doWritebacksAtomic(PacketList& writebacks) override;
 
     void serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt,
-                            CacheBlk *blk, PacketList& writebacks) override;
+                            CacheBlk *blk) override;
 
     void recvTimingResp(PacketPtr pkt) override;