From: Nikos Nikoleris Date: Wed, 2 Nov 2016 17:29:42 +0000 (+0000) Subject: mem-cache: Remove unnecessary block initialization on writeback X-Git-Tag: v19.0.0.0~2268 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ecc7a8c776bacd04c109cc286e569d434497229;p=gem5.git mem-cache: Remove unnecessary block initialization on writeback Change-Id: Ia9b825bcbb8d326705f74c15a93a88703153ba5a Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/8283 Maintainer: Nikos Nikoleris Reviewed-by: Daniel Carvalho --- diff --git a/src/mem/cache/cache.cc b/src/mem/cache/cache.cc index 1821f1873..622f0f787 100644 --- a/src/mem/cache/cache.cc +++ b/src/mem/cache/cache.cc @@ -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();