OSDN Git Service

hw/arm/armsse: Unify init-svtor and cpuwait handling
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)
commitaab7a3786f085cb4c6842c3c8ea0c86e2c835248
tree7092ff3025bb665a92832a83a3d313c6f9089a8f
parent0f862986e02f5cc188e56b8bd6a8a203091c1dc2
hw/arm/armsse: Unify init-svtor and cpuwait handling

At the moment the handling of init-svtor and cpuwait initial
values is split between armsse.c and iotkit-sysctl.c:
the code in armsse.c sets the initial state of the CPU
object by setting the init-svtor and start-powered-off
properties, but the iotkit-sysctl.c code has its own
code setting the reset values of its registers (which are
then used when updating the CPU when the guest makes
runtime changes).

Clean this up by making the armsse.c code set properties on the
iotkit-sysctl object to define the initial values of the
registers, so they always match the initial CPU state,
and update the comments in armsse.c accordingly.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190219125808.25174-9-peter.maydell@linaro.org
hw/arm/armsse.c
hw/misc/iotkit-sysctl.c
include/hw/misc/iotkit-sysctl.h