ZHENGRONG WANG has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/32434 )
Change subject: cpu-simple: Fix BaseSimpleCPU to reset group stats
......................................................................
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 <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
Tested-by: kokoro <[email protected]>
---
M src/cpu/simple/base.cc
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc
index c9db86c..23b9971 100644
--- a/src/cpu/simple/base.cc
+++ b/src/cpu/simple/base.cc
@@ -396,6 +396,7 @@
void
BaseSimpleCPU::resetStats()
{
+ BaseCPU::resetStats();
for (auto &thread_info : threadInfo) {
thread_info->notIdleFraction = (_status != Idle);
}
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/32434
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I932280449b29577d214db56ac8347aca4143c949
Gerrit-Change-Number: 32434
Gerrit-PatchSet: 3
Gerrit-Owner: ZHENGRONG WANG <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Hoa Nguyen <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: ZHENGRONG WANG <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s