From 1ecc7a8c776bacd04c109cc286e569d434497229 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Wed, 2 Nov 2016 17:29:42 +0000 Subject: 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 --- src/mem/cache/cache.cc | 4 ---- 1 file changed, 4 deletions(-) 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(); -- cgit v1.2.3