Skip to content

misc: Prefer evaluating TARGET_BIG_ENDIAN in C

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8linux-user/elfload: Use target_needs_bswap()linux-user/elfload.c+39 -241 reply
2/8accel/kvm: Use target_needs_bswap()accel/kvm/kvm-all.c+15 -141 reply
3/8target/mips: Check CPU endianness at runtime using env_is_bigendian()target/mips/tcg/msa_helper.c+16 -181 reply
4/8target/ppc: Evaluate TARGET_BIG_ENDIAN at compile timetarget/ppc/cpu_init.c target/ppc/mem_helper.c target/ppc/translate.c+8 -162 replies
5/8target/xtensa: Evaluate TARGET_BIG_ENDIAN at compile timetarget/xtensa/translate.c+5 -51 reply
6/8hw/mips: Evaluate TARGET_BIG_ENDIAN at compile timehw/mips/jazz.c hw/mips/malta.c hw/mips/mipssim.c+12 -291 reply
7/8hw/microblaze: Evaluate TARGET_BIG_ENDIAN at compile timehw/microblaze/petalogix_ml605_mmu.c hw/microblaze/xlnx-zynqmp-pmu.c+12 -121 reply
8/8gdbstub/helpers: Evaluate TARGET_BIG_ENDIAN at compile timeinclude/gdbstub/helpers.h+2 -92 replies

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchAlex BennéeRichard Henderson
1/8R-b
2/8R-b
3/8R-b
4/8
5/8R-b
6/8R-b
7/8R-b
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] misc: Prefer evaluating TARGET_BIG_ENDIAN in C

Few single-binary cleanups before switching to the TargetInfo API. Sending as a preliminary cleanup because can be reviewed out of context.

Philippe Mathieu-Daudé (8):
linux-user/elfload: Use target_needs_bswap()
accel/kvm: Use target_needs_bswap()
target/mips: Check CPU endianness at runtime using env_is_bigendian() target/ppc: Evaluate TARGET_BIG_ENDIAN at compile time target/xtensa: Evaluate TARGET_BIG_ENDIAN at compile time hw/mips: Evaluate TARGET_BIG_ENDIAN at compile time hw/microblaze: Evaluate TARGET_BIG_ENDIAN at compile time gdbstub/helpers: Evaluate TARGET_BIG_ENDIAN at compile time

 include/gdbstub/helpers.h           | 11 +----
 accel/kvm/kvm-all.c                 | 29 ++++++-------
 hw/microblaze/petalogix_ml605_mmu.c | 12 +++---
 hw/microblaze/xlnx-zynqmp-pmu.c     | 12 +++---
 hw/mips/jazz.c                      | 10 ++---
 hw/mips/malta.c                     | 21 +++-------
 hw/mips/mipssim.c                   | 10 ++---
 linux-user/elfload.c                | 63 ++++++++++++++++++-----------
 target/mips/tcg/msa_helper.c        | 34 ++++++++--------
 target/ppc/cpu_init.c               | 12 +++---
 target/ppc/mem_helper.c             |  6 +--
 target/ppc/translate.c              |  6 +--
 target/xtensa/translate.c           | 10 ++---
 13 files changed, 109 insertions(+), 127 deletions(-)
Signature · 1 line
2.47.1