summaryrefslogtreecommitdiffstats
path: root/hw/arm/mcimx7d-sabre.c
diff options
context:
space:
mode:
authorPeter Maydell2022-01-27 16:46:38 +0100
committerPeter Maydell2022-02-08 11:56:28 +0100
commitd6dc926e6e81dbb7e28d0842f7e78f99b80ce650 (patch)
tree06ad8d49ce6305a987ddf258bceef55bd394fa8a /hw/arm/mcimx7d-sabre.c
parenthw/arm/highbank: Drop unused secondary boot stub code (diff)
downloadqemu-d6dc926e6e81dbb7e28d0842f7e78f99b80ce650.tar.gz
qemu-d6dc926e6e81dbb7e28d0842f7e78f99b80ce650.tar.xz
qemu-d6dc926e6e81dbb7e28d0842f7e78f99b80ce650.zip
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 'hw/arm/mcimx7d-sabre.c')
-rw-r--r--hw/arm/mcimx7d-sabre.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/arm/mcimx7d-sabre.c b/hw/arm/mcimx7d-sabre.c
index ba84fc2192..6182b15f19 100644
--- a/hw/arm/mcimx7d-sabre.c
+++ b/hw/arm/mcimx7d-sabre.c
@@ -36,7 +36,6 @@ static void mcimx7d_sabre_init(MachineState *machine)
.loader_start = FSL_IMX7_MMDC_ADDR,
.board_id = -1,
.ram_size = machine->ram_size,
- .nb_cpus = machine->smp.cpus,
.psci_conduit = QEMU_PSCI_CONDUIT_SMC,
};