aboutsummaryrefslogtreecommitdiff
path: root/target/arm/psci.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/arm/psci.c')
-rw-r--r--target/arm/psci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/arm/psci.c b/target/arm/psci.c
index 64bf82eea1..ade9fe2ede 100644
--- a/target/arm/psci.c
+++ b/target/arm/psci.c
@@ -127,7 +127,9 @@ void arm_handle_psci_call(ARMCPU *cpu)
break;
}
target_cpu = ARM_CPU(target_cpu_state);
- ret = target_cpu->powered_off ? 1 : 0;
+
+ g_assert(qemu_mutex_iothread_locked());
+ ret = target_cpu->power_state;
break;
default:
/* Everything above affinity level 0 is always on. */