mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-06-19 06:58:01 +00:00
target/arm/arm-powerctl: Fix psci info return values
The power state spec section 5.1.5 AFFINITY_INFO defines the affinity info return values as 0 ON 1 OFF 2 ON_PENDING I grepped QEMU for power_state to ensure that no assumptions of OFF=0 were being made. Backports commit d5affb0d8677e1a8a8fe03fa25005b669e7cdc02 from qemu
This commit is contained in:
parent
76cd64dd7e
commit
0139cbc2cd
|
@ -532,6 +532,14 @@ typedef struct CPUARMState {
|
||||||
*/
|
*/
|
||||||
typedef void ARMELChangeHook(ARMCPU *cpu, void *opaque);
|
typedef void ARMELChangeHook(ARMCPU *cpu, void *opaque);
|
||||||
|
|
||||||
|
/* These values map onto the return values for
|
||||||
|
* QEMU_PSCI_0_2_FN_AFFINITY_INFO */
|
||||||
|
typedef enum ARMPSCIState {
|
||||||
|
PSCI_ON = 0,
|
||||||
|
PSCI_OFF = 1,
|
||||||
|
PSCI_ON_PENDING = 2
|
||||||
|
} ARMPSCIState;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ARMCPU:
|
* ARMCPU:
|
||||||
* @env: #CPUARMState
|
* @env: #CPUARMState
|
||||||
|
|
Loading…
Reference in a new issue