sim-power: Fix the way the power model accesses stats
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Fri, 13 Mar 2020 12:56:54 +0000 (12:56 +0000)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Wed, 29 Apr 2020 21:02:32 +0000 (21:02 +0000)
commit274c0e0ae15cf76465c21c451fa7cec0479694e7
treed2d0ecffd5d5fd36c372387d5edb06a776ccd7fb
parent1afe851d1574615aafc56339d25af5488a1a4291
sim-power: Fix the way the power model accesses stats

With the introduction of StatGroups the organization of stats has
changed and the power modeling framework has been broken. This CL uses
the new function Stats::resolve to retrieve pointers to the necesary
stats and use them in the power estimation formulas.

Change-Id: Iedaa97eeddf51f7a0a1f222918715da309943be3
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27892
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
src/sim/power/mathexpr_powermodel.cc
src/sim/power/mathexpr_powermodel.hh