From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-arm@nongnu.org, qemu-devel@nongnu.org
Cc: qemu-stable@nongnu.org,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Andrew Jeffery" <andrew@aj.id.au>,
"Joel Stanley" <joel@jms.id.au>,
"Cédric Le Goater" <clg@kaod.org>
Subject: [PATCH 0/3] hw/arm: Fix raspi, aspeed bootloaders on big-endian hosts
Date: Mon, 24 Apr 2023 16:27:14 +0100 [thread overview]
Message-ID: <20230424152717.1333930-1-peter.maydell@linaro.org> (raw)
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
next reply other threads:[~2023-04-24 15:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-24 15:27 Peter Maydell [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230424152717.1333930-1-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=andrew@aj.id.au \
--cc=clg@kaod.org \
--cc=joel@jms.id.au \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).