From: seanzw Date: Mon, 10 Aug 2020 18:49:33 +0000 (-0700) Subject: cpu-simple: Fix BaseSimpleCPU to reset group stats X-Git-Tag: v20.1.0.0~325 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=caee304a13bd5ac66bdfe3cb85bc0c9a70652890;p=gem5.git cpu-simple: Fix BaseSimpleCPU to reset group stats BaseSimpleCPU::resetStats() should call Stats::Group::resetStats() to reset new style hierarchy stats. Change-Id: I932280449b29577d214db56ac8347aca4143c949 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32434 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc index c9db86c3a..23b99715b 100644 --- a/src/cpu/simple/base.cc +++ b/src/cpu/simple/base.cc @@ -396,6 +396,7 @@ BaseSimpleCPU::regStats() void BaseSimpleCPU::resetStats() { + BaseCPU::resetStats(); for (auto &thread_info : threadInfo) { thread_info->notIdleFraction = (_status != Idle); }