OSDN Git Service

target/arm/arm-powerctl: Add new arm_set_cpu_on_and_reset()
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Feb 2019 10:55:16 +0000 (10:55 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Feb 2019 11:03:04 +0000 (11:03 +0000)
commitea824b97424a46140bdcfc27d78da6c7f4ec24ff
treece4c3d0f96ba462ca3159a57b332fad79414cdd6
parentf9f62e4c376c6e737e162209b197dcda690e9f81
target/arm/arm-powerctl: Add new arm_set_cpu_on_and_reset()

Currently the Arm arm-powerctl.h APIs allow:
 * arm_set_cpu_on(), which powers on a CPU and sets its
   initial PC and other startup state
 * arm_reset_cpu(), which resets a CPU which is already on
   (and fails if the CPU is powered off)

but there is no way to say "power on a CPU as if it had
just come out of reset and don't do anything else to it".

Add a new function arm_set_cpu_on_and_reset(), which does this.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190219125808.25174-5-peter.maydell@linaro.org
target/arm/arm-powerctl.c
target/arm/arm-powerctl.h