From 178dfd7a63a8c118586461156c1398e9ed533d8f Mon Sep 17 00:00:00 2001 From: "rajshekar.k" Date: Wed, 3 Nov 2021 21:29:59 +0530 Subject: [PATCH] bug fix related to double-counting of stats in caches with different read and write latencies --- src/simulator/memorysystem/Cache.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/simulator/memorysystem/Cache.java b/src/simulator/memorysystem/Cache.java index 43c64bc..063c465 100755 --- a/src/simulator/memorysystem/Cache.java +++ b/src/simulator/memorysystem/Cache.java @@ -429,6 +429,11 @@ public class Cache extends SimulationElement { event.update(0); event.update(this, this); this.getPort().put(event); + //to correct the double counting of stats + noOfAccesses--; + noOfRequests--; + noOfWritesReceived--; + hits--; } else {