diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-18 21:06:31 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2024-01-26 11:30:48 +0000 |
| commit | e2d8cf9b5312ada63ffa7460dec7cf89cf0bd61e (patch) | |
| tree | d070dc1a098fc06fe6e770969e6129ef9dcb1cbc /target/arm/cpu.c | |
| parent | c4380f7bcdcb68fdfca876db366782a807fab8f7 (diff) | |
| download | focaccia-qemu-e2d8cf9b5312ada63ffa7460dec7cf89cf0bd61e.tar.gz focaccia-qemu-e2d8cf9b5312ada63ffa7460dec7cf89cf0bd61e.zip | |
target/arm: Expose arm_cpu_mp_affinity() in 'multiprocessing.h' header
Declare arm_cpu_mp_affinity() prototype in the new "target/arm/multiprocessing.h" header so units in hw/arm/ can use it without having to include the huge target-specific "cpu.h". File list to include the new header generated using: $ git grep -lw arm_cpu_mp_affinity Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20240118200643.29037-11-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpu.c')
| -rw-r--r-- | target/arm/cpu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 5b5af7d4e1..04296f2928 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1314,6 +1314,11 @@ uint64_t arm_build_mp_affinity(int idx, uint8_t clustersz) return (Aff1 << ARM_AFF1_SHIFT) | Aff0; } +uint64_t arm_cpu_mp_affinity(ARMCPU *cpu) +{ + return cpu->mp_affinity; +} + static void arm_cpu_initfn(Object *obj) { ARMCPU *cpu = ARM_CPU(obj); |