power: Add a voltage variable to power expressions
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 5 Apr 2017 15:40:08 +0000 (16:40 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 6 Apr 2017 13:35:17 +0000 (13:35 +0000)
commit9ff8a2be92084e6be11b9ebb8cda9a20c4256398
treef141e9752f8496a346ba4c45b5bf6ea0f7f24993
parent0b223f4001fce26cad3b3c7e03501e7222d85ee0
power: Add a voltage variable to power expressions

There is currently no good way of extracting the current operating
voltage in MathExprPowerModels. This change adds a magic variable,
'voltage', that can be referenced from such expressions to get the
current operating voltage.

Change-Id: Ice3c9a4a221921a542de5da52f83f3f88862d246
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/2662
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/sim/power/mathexpr_powermodel.cc