]> git.proxmox.com Git - mirror_qemu.git/commit
hw/arm/fsl-imx6ul.c: Remove dead SMP-related code
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 22 Jul 2019 13:07:39 +0000 (14:07 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 22 Jul 2019 13:07:39 +0000 (14:07 +0100)
commitbc8c2ecfd07ade1f6b47f6f48929487409e578ff
treee7f0c18f71581221e351c926465393f5d1f1278b
parent9bbb4ef991fa93323f87769a6e217c2b9273a128
hw/arm/fsl-imx6ul.c: Remove dead SMP-related code

The i.MX6UL always has a single Cortex-A7 CPU (we set FSL_IMX6UL_NUM_CPUS
to 1 in line with this). This means that all the code in fsl-imx6ul.c to
handle multiple CPUs is dead code, and Coverity is now complaining that
it is unreachable (CID 14030081403011).

Remove the unreachable code and the only-executes-once loops,
and replace the single-entry cpu[] array in the FSLIMX6ULState
with a simple cpu member.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190712115030.26895-1-peter.maydell@linaro.org
hw/arm/fsl-imx6ul.c
hw/arm/mcimx6ul-evk.c
include/hw/arm/fsl-imx6ul.h