diff options
author | Cédric Le Goater <clg@kaod.org> | 2023-04-24 16:27:16 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-05-02 15:47:40 +0100 |
commit | 902bba549fc386b4b9805320ed1a2e5b68478bdd (patch) | |
tree | bae803f9227c1196abbfe22e6c47db02432ec50c /include/qemu/host-utils.h | |
parent | 0fe43f0abf19bbe24df3dbf0613bb47ed55f1482 (diff) | |
download | qemu-902bba549fc386b4b9805320ed1a2e5b68478bdd.zip qemu-902bba549fc386b4b9805320ed1a2e5b68478bdd.tar.gz qemu-902bba549fc386b4b9805320ed1a2e5b68478bdd.tar.bz2 |
hw/arm/aspeed: Use arm_write_bootloader() to write the bootloader
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: Cédric Le Goater <clg@kaod.org>
Tested-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20230424152717.1333930-3-peter.maydell@linaro.org
[PMM: Moved the "make arm_write_bootloader() function public" part
to its own patch; updated commit message to note that this fixes
an actual bug; adjust to the API changes noted in previous commit]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/qemu/host-utils.h')
0 files changed, 0 insertions, 0 deletions