Peter Maydell 0acbdb4c4a hw/arm/raspi: Use arm_write_bootloader() to write boot code
When writing the secondary-CPU stub boot loader code to the guest,
use arm_write_bootloader() instead of directly calling
rom_add_blob_fixed().  This fixes a bug on big-endian hosts, because
arm_write_bootloader() will correctly byte-swap the host-byte-order
array values into the guest-byte-order to write into the guest
memory.

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20230424152717.1333930-4-peter.maydell@linaro.org
2023-05-02 15:47:41 +01:00
..
2023-02-07 09:02:05 +01:00
2023-01-12 16:50:19 +00:00
2023-01-12 17:03:14 +00:00
2023-02-16 16:00:47 +00:00
2023-01-12 17:03:14 +00:00
2023-01-12 17:03:14 +00:00
2023-05-02 10:54:31 +01:00
2023-02-08 07:28:05 +01:00