target-arm: add emulation of PSCI calls for system emulation
commit98128601ac8ff23df8a4c48acff00f9614613463
authorRob Herring <rob.herring@linaro.org>
Fri, 24 Oct 2014 11:19:13 +0000 (24 12:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Oct 2014 11:19:13 +0000 (24 12:19 +0100)
tree998d9e41c44b4c4e411583264a2a780e744f759b
parent37e6456ef539b2c4d1b9438f3df90eb032a9618f
target-arm: add emulation of PSCI calls for system emulation

Add support for handling PSCI calls in system emulation. Both version
0.1 and 0.2 of the PSCI spec are supported. Platforms can enable support
by setting the "psci-conduit" QOM property on the cpus to SMC or HVC
emulation and having a PSCI binding in their dtb.

Signed-off-by: Rob Herring <rob.herring@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1412865028-17725-7-git-send-email-peter.maydell@linaro.org
[PMM: made system reset/off PSCI functions power down the CPU so
 we obey the PSCI API requirement never to return from them;
 rearranged how the code is plumbed into the exception system,
 so that we split "is this a valid call?" from "do the call"]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/Makefile.objs
target-arm/cpu-qom.h
target-arm/cpu.c
target-arm/cpu.h
target-arm/helper-a64.c
target-arm/helper.c
target-arm/internals.h
target-arm/op_helper.c
target-arm/psci.c [new file with mode: 0644]