diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2022-01-27 15:46:38 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-02-08 10:56:28 +0000 |
commit | d6dc926e6e81dbb7e28d0842f7e78f99b80ce650 (patch) | |
tree | 06ad8d49ce6305a987ddf258bceef55bd394fa8a /hw/arm/realview.c | |
parent | 45dd668f2382475c71528b00465aaaf791cc4369 (diff) | |
download | qemu-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 'hw/arm/realview.c')
-rw-r--r-- | hw/arm/realview.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/arm/realview.c b/hw/arm/realview.c index ddc70b5..7b424e9 100644 --- a/hw/arm/realview.c +++ b/hw/arm/realview.c @@ -363,7 +363,6 @@ static void realview_init(MachineState *machine, memory_region_add_subregion(sysmem, SMP_BOOT_ADDR, ram_hack); realview_binfo.ram_size = ram_size; - realview_binfo.nb_cpus = smp_cpus; realview_binfo.board_id = realview_board_id[board_type]; realview_binfo.loader_start = (board_type == BOARD_PB_A8 ? 0x70000000 : 0); arm_load_kernel(ARM_CPU(first_cpu), machine, &realview_binfo); |