qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] hw/arm: Replace tswap32() by stl_endian_p()
@ 2024-09-30 22:12 Philippe Mathieu-Daudé
  2024-09-30 22:12 ` [PATCH 1/3] target/arm: Expose arm_cpu_code_is_big_endian() prototype in 'cpu.h' Philippe Mathieu-Daudé
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-09-30 22:12 UTC (permalink / raw)
  To: qemu-devel
  Cc: Alistair Francis, Peter Maydell, Thomas Huth, Hao Wu,
	Laurent Vivier, Joel Stanley, qemu-arm, Andrew Jeffery,
	Steven Lee, Tyrone Ting, Edgar E. Iglesias, Igor Mitsyanko,
	Philippe Mathieu-Daudé, Cédric Le Goater, Jamin Lin,
	Troy Lee, Anton Johansson

- 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



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

end of thread, other threads:[~2024-10-01 15:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-30 22:12 [PATCH 0/3] hw/arm: Replace tswap32() by stl_endian_p() Philippe Mathieu-Daudé
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

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).