aboutsummaryrefslogtreecommitdiff
path: root/include/hw/arm
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2022-01-27 15:46:38 +0000
committerPeter Maydell <peter.maydell@linaro.org>2022-02-08 10:56:28 +0000
commitd6dc926e6e81dbb7e28d0842f7e78f99b80ce650 (patch)
tree06ad8d49ce6305a987ddf258bceef55bd394fa8a /include/hw/arm
parent45dd668f2382475c71528b00465aaaf791cc4369 (diff)
downloadqemu-d6dc926e6e81dbb7e28d0842f7e78f99b80ce650.zip
qemu-d6dc926e6e81dbb7e28d0842f7e78f99b80ce650.tar.gz
qemu-d6dc926e6e81dbb7e28d0842f7e78f99b80ce650.tar.bz2
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
Diffstat (limited to 'include/hw/arm')
-rw-r--r--include/hw/arm/boot.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/arm/boot.h b/include/hw/arm/boot.h
index 0cfc1c9..c7ebae1 100644
--- a/include/hw/arm/boot.h
+++ b/include/hw/arm/boot.h
@@ -56,7 +56,6 @@ struct arm_boot_info {
hwaddr smp_loader_start;
hwaddr smp_bootreg_addr;
hwaddr gic_cpu_if_addr;
- int nb_cpus;
int board_id;
/* ARM machines that support the ARM Security Extensions use this field to
* control whether Linux is booted as secure(true) or non-secure(false).