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/cpu.h | |
parent | 750245ed7ce2a426a4eaf026f1af3a21fbdc19dc (diff) | |
download | qemu-c4380f7bcdcb68fdfca876db366782a807fab8f7.zip qemu-c4380f7bcdcb68fdfca876db366782a807fab8f7.tar.gz qemu-c4380f7bcdcb68fdfca876db366782a807fab8f7.tar.bz2 |
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/cpu.h')
-rw-r--r-- | target/arm/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 55a19e8..d1584bd 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1173,6 +1173,11 @@ void arm_cpu_post_init(Object *obj); uint64_t arm_build_mp_affinity(int idx, uint8_t clustersz); +static inline uint64_t arm_cpu_mp_affinity(ARMCPU *cpu) +{ + return cpu->mp_affinity; +} + #ifndef CONFIG_USER_ONLY extern const VMStateDescription vmstate_arm_cpu; |