sim-power: Creation of PowerState class
authorAnouk Van Laer <anouk.vanlaer@arm.com>
Wed, 4 Oct 2017 13:14:33 +0000 (14:14 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Wed, 29 Apr 2020 21:03:31 +0000 (21:03 +0000)
commit818961969a9a74f8b0106e6cbe442e02fc2a6d9b
tree0c08ae49be0e50936b59ae4dd17fb8eced238a59
parent84003b7cc702e350e470b047d03774079a803844
sim-power: Creation of PowerState class

This commit does not make any functional changes but just rearranges
the existing code with regard to the power states. Previously, all
code regarding power states was in the ClockedObjects. However, it
seems more logical and cleaner to move this code into a separate
class, called PowerState. The PowerState is a now SimObject. Every
ClockedObject has a PowerState but this patch also allows for objects
with PowerState which are not ClockedObjects.

Change-Id: Id2db86dc14f140dc9d0912a8a7de237b9df9120d
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28049
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
configs/example/arm/fs_power.py
src/cpu/base.cc
src/dev/arm/fvp_base_pwr_ctrl.cc
src/sim/ClockedObject.py
src/sim/PowerState.py [new file with mode: 0644]
src/sim/SConscript
src/sim/clocked_object.cc
src/sim/clocked_object.hh
src/sim/power/power_model.cc
src/sim/power_state.cc [new file with mode: 0644]
src/sim/power_state.hh [new file with mode: 0644]