power: Fix regStats for PowerModel and PowerModelState
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 12 Mar 2020 16:21:01 +0000 (16:21 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 16 Mar 2020 08:50:24 +0000 (08:50 +0000)
commit2f350b822abfe4ed0cf88242e3f833e7a01789ec
tree274856a70761838ab666e9dc299d59fdbd901336
parent6dcafbfa5d364d8c0cffc74657a269bae67c5015
power: Fix regStats for PowerModel and PowerModelState

Every Stats::Group need to call the parent regStats to
make sure that the base Stats::Group::regStats() gets
called

JIRA: https://gem5.atlassian.net/projects/GEM5/issues/GEM5-319

Change-Id: I931941d8ec5f375f7e51e719d43ae31af095f661
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26643
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/power/power_model.hh