Skip to content

hw/arm: Replace tswap32() by stl_endian_p()

Philippe Mathieu-Daudé qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3target/arm: Expose arm_cpu_code_is_big_endian() prototype in 'cpu.h'linux-user/aarch64/cpu_loop.c linux-user/arm/cpu_loop.c target/arm/cpu.c +1 more+13 -80 replies
2/3hw/arm: Have arm_write_bootloader() take a ARMCPU argumenthw/arm/aspeed.c hw/arm/boot.c hw/arm/raspi.c +1 more+14 -110 replies
3/3hw/arm: Replace tswap32() calls by target agnostic stl_endian_p()hw/arm/boot.c hw/arm/exynos4210.c hw/arm/npcm7xx.c +1 more+15 -111 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] hw/arm: Replace tswap32() by stl_endian_p()

- 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(-)
Signature · 1 line
2.45.2