From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Alistair Francis" <alistair@alistair23.me>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Thomas Huth" <thuth@redhat.com>, "Hao Wu" <wuhaotsh@google.com>,
"Laurent Vivier" <laurent@vivier.eu>,
"Joel Stanley" <joel@jms.id.au>,
qemu-arm@nongnu.org,
"Andrew Jeffery" <andrew@codeconstruct.com.au>,
"Steven Lee" <steven_lee@aspeedtech.com>,
"Tyrone Ting" <kfting@nuvoton.com>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
"Igor Mitsyanko" <i.mitsyanko@gmail.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Cédric Le Goater" <clg@kaod.org>,
"Jamin Lin" <jamin_lin@aspeedtech.com>,
"Troy Lee" <leetroy@gmail.com>, "Anton Johansson" <anjo@rev.ng>
Subject: [PATCH 0/3] hw/arm: Replace tswap32() by stl_endian_p()
Date: Tue, 1 Oct 2024 00:12:01 +0200 [thread overview]
Message-ID: <20240930221205.59101-1-philmd@linaro.org> (raw)
- Expose arm_cpu_code_is_big_endian()
- pass ARMCPU argument to arm_write_bootloader() so we can call
arm_cpu_code_is_big_endian() on it,
- Replace target specific tswap32() by target agnostic stl_endian_p()
Tested on little & big endian hosts.
Philippe Mathieu-Daudé (3):
target/arm: Expose arm_cpu_code_is_big_endian() prototype in 'cpu.h'
hw/arm: Have arm_write_bootloader() take a ARMCPU argument
hw/arm: Replace tswap32() calls by target agnostic stl_endian_p()
include/hw/arm/boot.h | 9 ++++++---
target/arm/cpu.h | 7 +++++++
hw/arm/aspeed.c | 3 +--
hw/arm/boot.c | 17 ++++++++++-------
hw/arm/exynos4210.c | 7 +++----
hw/arm/npcm7xx.c | 6 ++++--
hw/arm/raspi.c | 4 ++--
hw/arm/xilinx_zynq.c | 5 +++--
linux-user/aarch64/cpu_loop.c | 4 ++--
linux-user/arm/cpu_loop.c | 4 ++--
target/arm/cpu.c | 6 ++----
11 files changed, 42 insertions(+), 30 deletions(-)
--
2.45.2
next reply other threads:[~2024-09-30 22:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 22:12 Philippe Mathieu-Daudé [this message]
2024-09-30 22:12 ` [PATCH 1/3] target/arm: Expose arm_cpu_code_is_big_endian() prototype in 'cpu.h' Philippe Mathieu-Daudé
2024-09-30 22:12 ` [PATCH 2/3] hw/arm: Have arm_write_bootloader() take a ARMCPU argument Philippe Mathieu-Daudé
2024-09-30 22:12 ` [PATCH 3/3] hw/arm: Replace tswap32() calls by target agnostic stl_endian_p() Philippe Mathieu-Daudé
2024-10-01 9:35 ` 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=20240930221205.59101-1-philmd@linaro.org \
--to=philmd@linaro.org \
--cc=alistair@alistair23.me \
--cc=andrew@codeconstruct.com.au \
--cc=anjo@rev.ng \
--cc=clg@kaod.org \
--cc=edgar.iglesias@gmail.com \
--cc=i.mitsyanko@gmail.com \
--cc=jamin_lin@aspeedtech.com \
--cc=joel@jms.id.au \
--cc=kfting@nuvoton.com \
--cc=laurent@vivier.eu \
--cc=leetroy@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=steven_lee@aspeedtech.com \
--cc=thuth@redhat.com \
--cc=wuhaotsh@google.com \
/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).