bug fix related to double-counting of stats in caches with different read and write latencies

This commit is contained in:
Rajshekar K K 2021-11-03 21:29:59 +05:30
parent 271f715f7c
commit 178dfd7a63
1 changed files with 5 additions and 0 deletions

View File

@ -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
{