On 5/15/2026 7:10 AM, Philippe Mathieu-Daudé wrote: > bcm2836.c models 3 similar SoC: BCM2835, BCM2836 and BCM2837. > The BCM2837 is a 64-bit only SoC (Cortex-A53), only available > in the 64-bit binary. > > If we build this file as common object, all BCM SoCs become > available in both 32 and 64-bit binaries; however when running > the introspection test on the 32-bit binary, the BCM2837 init() > method tries to init the Cortex-A53 type -- although not > realizing it -- which is not available. This can be avoided by > deferring the CPU type initialization to the SoC DeviceRealize > step (this is safe because nothing uses the CPU type before, > only the GIC access them, just after their realization). > > Signed-off-by: Philippe Mathieu-Daudé <[email protected]> > --- > hw/arm/bcm2836.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >
Reviewed-by: Pierrick Bouvier <[email protected]>
