power: Allow global stats in power equations
authorStephan Diestelhorst <stephan.diestelhorst@arm.com>
Thu, 6 Apr 2017 13:53:41 +0000 (14:53 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 11 Apr 2017 23:57:26 +0000 (23:57 +0000)
commitf7b3df49c1f5a45b9edc0d320d8ed09afc1ef21c
treecc2cb58e85a34141d868b50d2fe9117da84d5282
parent9833153bd2b84cfbe46d0031a3e4eea27c1a4a95
power: Allow global stats in power equations

Allow global stats such as sim_seconds in power equations to make it
possible to convert from event stats to rate stats.

Change-Id: I429abe0ffadc0dbd162eb39e0897143be472ef65
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/2720
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/sim/power/mathexpr_powermodel.cc