sim: Use the Temperature type in power/thermal models
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 20 Jan 2021 15:20:35 +0000 (15:20 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 26 Jan 2021 16:00:14 +0000 (16:00 +0000)
commit9d6bf74c47158b1cce159e05cdcb596672d9dbeb
tree1646917d59a9d773603dc03f21c11a6130bb942d
parent40514908f6c5743762a7c3301b396c9a059213a8
sim: Use the Temperature type in power/thermal models

The thermal models currently work on temperatures in Celsius stored in
plain doubles. Switch to using Temperature instead and internal
processing in Kelvin. There should be no impact on the result since
all thermal processes work on temperature deltas.

Change-Id: I22d0261ae102f30d86051f24a2d88b067b321c91
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39455
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
src/dev/arm/rv_ctrl.cc
src/sim/power/mathexpr_powermodel.cc
src/sim/power/power_model.cc
src/sim/power/power_model.hh
src/sim/power/thermal_domain.cc
src/sim/power/thermal_domain.hh
src/sim/power/thermal_model.cc
src/sim/power/thermal_model.hh
src/sim/power/thermal_node.hh