]> git.proxmox.com Git - mirror_qemu.git/commit
hw/arm/iotkit-sysctl: Implement CPUWAIT and INITSVTOR*
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)
commit0f862986e02f5cc188e56b8bd6a8a203091c1dc2
tree9772e873d653d2cf1d7ef24ff8e377128d62f632
parent0483641418643d5d4cc4d1328fe7acc4ab36c709
hw/arm/iotkit-sysctl: Implement CPUWAIT and INITSVTOR*

The CPUWAIT register acts as a sort of power-control: if a bit
in it is 1 then the CPU will have been forced into waiting
when the system was reset (which in QEMU we model as the
CPU starting powered off). Writing a 0 to the register will
allow the CPU to boot (for QEMU, we model this as powering
it on). Note that writing 0 to the register does not power
off a CPU.

For this to work correctly we need to also honour the
INITSVTOR* registers, which let the guest control where the
CPU will load its SP and PC from when it comes out of reset.

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