qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] hw/arm: Fix raspi, aspeed bootloaders on big-endian hosts
@ 2023-04-24 15:27 Peter Maydell
  2023-04-24 15:27 ` [PATCH 1/3] hw/arm/boot: Make write_bootloader() public as arm_write_bootloader() Peter Maydell
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Peter Maydell @ 2023-04-24 15:27 UTC (permalink / raw)
  To: qemu-arm, qemu-devel
  Cc: qemu-stable, Philippe Mathieu-Daudé, Andrew Jeffery,
	Joel Stanley, Cédric Le Goater

Both the raspi and aspeed boards load their secondary CPU bootloader
code in a way that only works on little-endian hosts. This patchset
fixes that by making them both use the write_bootloader() function
in boot.c, which gets endianness-handling right.

Patches 1 and 2 are essentially a patch from Cédric from a few
months ago:
https://patchew.org/QEMU/20230119123449.531826-1-clg@kaod.org/20230119123449.531826-9-clg@kaod.org/
I've split it into two patches and tweaked it a bit.

These fixes let us run the avocado tests for these boards on
big-endian hosts.

thanks
-- PMM

Cédric Le Goater (2):
  hw/arm/boot: Make write_bootloader() public as arm_write_bootloader()
  hw/arm/aspeed: Use arm_write_bootloader() to write the bootloader

Peter Maydell (1):
  hw/arm/raspi: Use arm_write_bootloader() to write boot code

 include/hw/arm/boot.h | 49 +++++++++++++++++++++++++++++++++
 hw/arm/aspeed.c       | 38 +++++++++++++------------
 hw/arm/boot.c         | 35 ++++++-----------------
 hw/arm/raspi.c        | 64 +++++++++++++++++++++++--------------------
 4 files changed, 111 insertions(+), 75 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-05-02 10:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-24 15:27 [PATCH 0/3] hw/arm: Fix raspi, aspeed bootloaders on big-endian hosts Peter Maydell
2023-04-24 15:27 ` [PATCH 1/3] hw/arm/boot: Make write_bootloader() public as arm_write_bootloader() Peter Maydell
2023-04-24 15:27 ` [PATCH 2/3] hw/arm/aspeed: Use arm_write_bootloader() to write the bootloader Peter Maydell
2023-04-24 15:27 ` [PATCH 3/3] hw/arm/raspi: Use arm_write_bootloader() to write boot code Peter Maydell
2023-04-25 12:52 ` [PATCH 0/3] hw/arm: Fix raspi, aspeed bootloaders on big-endian hosts Cédric Le Goater
2023-04-25 15:51 ` Philippe Mathieu-Daudé
2023-05-02 10:27 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).