[PATCH v2 0/9] target/sparc: Stop using the legacy native-endian APIs

Philippe Mathieu-Daudé posted 9 patches 1 month, 3 weeks ago
Failed in applying to current master (apply log)
configs/targets/sparc-linux-user.mak       |  1 -
configs/targets/sparc-softmmu.mak          |  1 -
configs/targets/sparc32plus-linux-user.mak |  1 -
configs/targets/sparc64-linux-user.mak     |  1 -
configs/targets/sparc64-softmmu.mak        |  1 -
hw/sparc/leon3.c                           | 42 +++++++-------
hw/sparc/sun4m.c                           |  6 +-
hw/sparc64/sun4u.c                         |  6 +-
target/sparc/gdbstub.c                     | 12 +---
target/sparc/int32_helper.c                |  4 +-
target/sparc/ldst_helper.c                 | 66 ++++++----------------
target/sparc/mmu_helper.c                  | 32 ++++++-----
target/sparc/translate.c                   | 60 ++++++++++----------
13 files changed, 95 insertions(+), 138 deletions(-)
[PATCH v2 0/9] target/sparc: Stop using the legacy native-endian APIs
Posted by Philippe Mathieu-Daudé 1 month, 3 weeks ago
SPARC is always big-endian, so use the '_be' suffix to
select the big-endian variant of the load/store helper.

Simplify gdbstub using ldn(TARGET_LONG_BITS...).

Based-on: <20251219161953.72724-1-philmd@linaro.org> and more.

Philippe Mathieu-Daudé (9):
  hw/sparc: Use explicit big-endian LD/ST API
  target/sparc: Replace MO_TE -> MO_BE
  target/sparc: Use address_space_ld/st[n]_be() in ld/st_asi helpers
  target/sparc: Use explicit big-endian LD/ST API
  target/sparc: Use big-endian variant of cpu_ld/st_data*()
  target/sparc: Inline translator_ldl()
  target/sparc: Inline cpu_ldl_code() call in cpu_do_interrupt()
  target/sparc: Simplify gdbstub sparc_cpu_gdb_write_register()
  configs/targets: Forbid SPARC to use legacy native endianness APIs

 configs/targets/sparc-linux-user.mak       |  1 -
 configs/targets/sparc-softmmu.mak          |  1 -
 configs/targets/sparc32plus-linux-user.mak |  1 -
 configs/targets/sparc64-linux-user.mak     |  1 -
 configs/targets/sparc64-softmmu.mak        |  1 -
 hw/sparc/leon3.c                           | 42 +++++++-------
 hw/sparc/sun4m.c                           |  6 +-
 hw/sparc64/sun4u.c                         |  6 +-
 target/sparc/gdbstub.c                     | 12 +---
 target/sparc/int32_helper.c                |  4 +-
 target/sparc/ldst_helper.c                 | 66 ++++++----------------
 target/sparc/mmu_helper.c                  | 32 ++++++-----
 target/sparc/translate.c                   | 60 ++++++++++----------
 13 files changed, 95 insertions(+), 138 deletions(-)

-- 
2.52.0