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

Philippe Mathieu-Daudé posted 8 patches 7 months ago
Failed in applying to current master (apply log)
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(-)
[PATCH 0/8] misc: Prefer evaluating TARGET_BIG_ENDIAN in C
Posted by Philippe Mathieu-Daudé 7 months ago
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(-)

-- 
2.47.1


Re: [PATCH 0/8] misc: Prefer evaluating TARGET_BIG_ENDIAN in C
Posted by Philippe Mathieu-Daudé 6 months, 3 weeks ago
On 17/4/25 15:09, Philippe Mathieu-Daudé wrote:

> 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/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

Reviewed patches queued, thanks.