On 2/19/19 4:58 AM, Peter Maydell wrote: > 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 <[email protected]> > --- > target/arm/arm-powerctl.h | 16 +++++++++++ > target/arm/arm-powerctl.c | 56 +++++++++++++++++++++++++++++++++++++++ > 2 files changed, 72 insertions(+)
Reviewed-by: Richard Henderson <[email protected]> r~
