diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2024-01-18 21:06:30 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2024-01-26 11:30:48 +0000 |
| commit | c4380f7bcdcb68fdfca876db366782a807fab8f7 (patch) | |
| tree | 5e9b3d58a2356b250f8fbc542b714ef206321e8c /target/arm/arm-powerctl.c | |
| parent | 750245ed7ce2a426a4eaf026f1af3a21fbdc19dc (diff) | |
| download | focaccia-qemu-c4380f7bcdcb68fdfca876db366782a807fab8f7.tar.gz focaccia-qemu-c4380f7bcdcb68fdfca876db366782a807fab8f7.zip | |
target/arm: Create arm_cpu_mp_affinity
Wrapper to return the mp affinity bits from the cpu. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20240118200643.29037-10-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/arm-powerctl.c')
| -rw-r--r-- | target/arm/arm-powerctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/arm-powerctl.c b/target/arm/arm-powerctl.c index 8850381565..6c86e90102 100644 --- a/target/arm/arm-powerctl.c +++ b/target/arm/arm-powerctl.c @@ -37,7 +37,7 @@ CPUState *arm_get_cpu_by_id(uint64_t id) CPU_FOREACH(cpu) { ARMCPU *armcpu = ARM_CPU(cpu); - if (armcpu->mp_affinity == id) { + if (arm_cpu_mp_affinity(armcpu) == id) { return cpu; } } |