mem-cache: Remove unnecessary block initialization on writeback
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Wed, 2 Nov 2016 17:29:42 +0000 (17:29 +0000)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Fri, 2 Mar 2018 16:17:44 +0000 (16:17 +0000)
Change-Id: Ia9b825bcbb8d326705f74c15a93a88703153ba5a
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/8283
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
src/mem/cache/cache.cc

index 1821f1873063ba6f862903b798aa846de6db679b..622f0f78798b024780b6638fdb92f9c8ae133db5 100644 (file)
@@ -1662,8 +1662,6 @@ Cache::writebackBlk(CacheBlk *blk)
         req->setFlags(Request::SECURE);
 
     req->taskId(blk->task_id);
-    blk->task_id= ContextSwitchTaskId::Unknown;
-    blk->tickInserted = curTick();
 
     PacketPtr pkt =
         new Packet(req, blk->isDirty() ?
@@ -1742,8 +1740,6 @@ Cache::cleanEvictBlk(CacheBlk *blk)
         req->setFlags(Request::SECURE);
 
     req->taskId(blk->task_id);
-    blk->task_id = ContextSwitchTaskId::Unknown;
-    blk->tickInserted = curTick();
 
     PacketPtr pkt = new Packet(req, MemCmd::CleanEvict);
     pkt->allocate();