mem-ruby: This commit patches an error in AbstractController.cc

After calling m5_dump_reset_stats(0,0) in a test program,
some statistics like
l1_controllers.L1Dcache.m_demand_hits,
l1_controllers.L1Dcache.m_demand_misses,
l1_controllers.L1Dcache.m_demand_accesses
were not getting reset in the newer stat dumps.
This one line patch fixes that. Changes were tested with
calling two m5_dump_reset_stats(0,0) in a row for a system
with 1 core, tested on both SE and FS.
Credits to Gabriel Busnot for finding the fix.

Change-Id: I19d75996fa53d31ef20f7b206024fd38dbeac643
This commit is contained in:
Gautham Pathak
2023-09-08 23:28:50 -04:00
committed by gPatsWat
parent 5fd901ffbb
commit 87db6df8f6

View File

@@ -125,6 +125,7 @@ AbstractController::resetStats()
for (uint32_t i = 0; i < size; i++) {
stats.delayVCHistogram[i]->reset();
}
ClockedObject::resetStats();
}
void