]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/boot: Drop nb_cpus field from arm_boot_info
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Jan 2022 15:46:38 +0000 (15:46 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Feb 2022 10:56:28 +0000 (10:56 +0000)
commitd6dc926e6e81dbb7e28d0842f7e78f99b80ce650
tree06ad8d49ce6305a987ddf258bceef55bd394fa8a
parent45dd668f2382475c71528b00465aaaf791cc4369
hw/arm/boot: Drop nb_cpus field from arm_boot_info

We use the arm_boot_info::nb_cpus field in only one place, and that
place can easily get the number of CPUs locally rather than relying
on the board code to have set the field correctly.  (At least one
board, xlnx-versal-virt, does not set the field despite having more
than one CPU.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Tested-by: Cédric Le Goater <clg@kaod.org>
Tested-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Message-id: 20220127154639.2090164-16-peter.maydell@linaro.org
18 files changed:
hw/arm/aspeed.c
hw/arm/boot.c
hw/arm/exynos4_boards.c
hw/arm/highbank.c
hw/arm/imx25_pdk.c
hw/arm/kzm.c
hw/arm/mcimx6ul-evk.c
hw/arm/mcimx7d-sabre.c
hw/arm/npcm7xx.c
hw/arm/orangepi.c
hw/arm/raspi.c
hw/arm/realview.c
hw/arm/sabrelite.c
hw/arm/sbsa-ref.c
hw/arm/vexpress.c
hw/arm/virt.c
hw/arm/xilinx_zynq.c
include/hw/arm/boot.h