sim-power: Specify the states a PowerState object can be in
authorAnouk Van Laer <anouk.vanlaer@arm.com>
Wed, 4 Oct 2017 13:15:36 +0000 (14:15 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Wed, 29 Apr 2020 21:03:31 +0000 (21:03 +0000)
commit4b2f2b5ceda9779a282450c868d65ebdb42eed38
tree2463af82f5a051b083afa0c83f943fee7526480f
parent818961969a9a74f8b0106e6cbe442e02fc2a6d9b
sim-power: Specify the states a PowerState object can be in

This commit adds the concept of possible power states to the
PowerState SimObject. This is a list of the power states a specific
object can be in. Before transitioning to a power state, a PowerState
object will first check if the requested power states is actually an
allowed state. The user can restricted the power states a
ClockedObject can go to during configuration. In addition, this change
sets the power states, a CPU can be in.

Change-Id: Ida414a87554a14f09767a272b54b5d19bfc8e911
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28050
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/cpu/BaseCPU.py
src/sim/PowerState.py
src/sim/power_state.cc
src/sim/power_state.hh