[PATCH v3 0/9] target/sparc: Use explicit big-endian LD/ST API

Philippe Mathieu-Daudé posted 9 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251224162642.90857-1-philmd@linaro.org
Maintainers: Laurent Vivier <laurent@vivier.eu>, Gerd Hoffmann <kraxel@redhat.com>, "Clément Chigot" <chigot@adacore.com>, Frederic Konrad <konrad.frederic@yahoo.fr>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Artyom Tarasenko <atar4qemu@gmail.com>
There is a newer version of this series
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/audio/cs4231.c                          |  2 +-
hw/char/grlib_apbuart.c                    |  2 +-
hw/display/cg3.c                           |  2 +-
hw/display/tcx.c                           | 14 ++---
hw/dma/sparc32_dma.c                       |  2 +-
hw/intc/grlib_irqmp.c                      |  2 +-
hw/intc/slavio_intctl.c                    |  4 +-
hw/misc/eccmemctl.c                        |  2 +-
hw/misc/slavio_misc.c                      | 16 +++---
hw/rtc/sun4v-rtc.c                         |  2 +-
hw/sparc/leon3.c                           | 42 +++++++--------
hw/sparc/sun4m.c                           |  6 +--
hw/sparc64/sun4u.c                         |  6 +--
hw/timer/grlib_gptimer.c                   |  2 +-
hw/timer/slavio_timer.c                    |  2 +-
target/sparc/gdbstub.c                     | 12 +----
target/sparc/int32_helper.c                |  4 +-
target/sparc/ldst_helper.c                 | 48 ++++++++---------
target/sparc/mmu_helper.c                  | 32 ++++++------
target/sparc/translate.c                   | 60 +++++++++++-----------
25 files changed, 134 insertions(+), 133 deletions(-)
[PATCH v3 0/9] target/sparc: Use explicit big-endian LD/ST API
Posted by Philippe Mathieu-Daudé 1 month, 2 weeks ago
SPARC is big-endian. Use the explicit 'big'
endianness instead of the 'native' one.
Forbid further uses of legacy APIs.

tag: https://gitlab.com/philmd/qemu/-/tags/endian_sparc-v3
CI: https://gitlab.com/philmd/qemu/-/pipelines/2231223066

Philippe Mathieu-Daudé (9):
  hw/sparc: Mark SPARC-specific peripherals as big-endian
  hw/sparc: Use explicit big-endian LD/ST API
  target/sparc: Replace MO_TE -> MO_BE
  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/audio/cs4231.c                          |  2 +-
 hw/char/grlib_apbuart.c                    |  2 +-
 hw/display/cg3.c                           |  2 +-
 hw/display/tcx.c                           | 14 ++---
 hw/dma/sparc32_dma.c                       |  2 +-
 hw/intc/grlib_irqmp.c                      |  2 +-
 hw/intc/slavio_intctl.c                    |  4 +-
 hw/misc/eccmemctl.c                        |  2 +-
 hw/misc/slavio_misc.c                      | 16 +++---
 hw/rtc/sun4v-rtc.c                         |  2 +-
 hw/sparc/leon3.c                           | 42 +++++++--------
 hw/sparc/sun4m.c                           |  6 +--
 hw/sparc64/sun4u.c                         |  6 +--
 hw/timer/grlib_gptimer.c                   |  2 +-
 hw/timer/slavio_timer.c                    |  2 +-
 target/sparc/gdbstub.c                     | 12 +----
 target/sparc/int32_helper.c                |  4 +-
 target/sparc/ldst_helper.c                 | 48 ++++++++---------
 target/sparc/mmu_helper.c                  | 32 ++++++------
 target/sparc/translate.c                   | 60 +++++++++++-----------
 25 files changed, 134 insertions(+), 133 deletions(-)

-- 
2.52.0