hw/arm/bcm2836: Hardcode correct CPU type
commit210f47840dd62dcdb6ee87b2c6062f322f7e0363
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 13 Mar 2018 15:34:57 +0000 (13 15:34 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 19 Mar 2018 18:23:24 +0000 (19 18:23 +0000)
treef97121c4c6d1839ae2376c1f657175024b436872
parent1bcb4d16bb0b4ad2fdde8802ccd0598cdf020fc7
hw/arm/bcm2836: Hardcode correct CPU type

Now we have separate types for BCM2386 and BCM2387, we might as well
just hard-code the CPU type they use rather than having it passed
through as an object property. This then lets us put the initialization
of the CPU object in init rather than realize.

Note that this change means that it's no longer possible on
the command line to use -cpu to ask for a different kind of
CPU than the SoC supports. This was never a supported thing to
do anyway; we were just not sanity-checking the command line.

This does require us to only build the bcm2837 object on
TARGET_AARCH64 configs, since otherwise it won't instantiate
due to the missing cortex-a53 device and "make check" will fail.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180313153458.26822-9-peter.maydell@linaro.org
hw/arm/bcm2836.c
hw/arm/raspi.c