S390x 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_s390x-v1 CI: https://gitlab.com/philmd/qemu/-/pipelines/2231223066 Philippe Mathieu-Daudé (8): hw/s390x: Use explicit big-endian LD/ST API target/s390x: Use explicit big-endian LD/ST API target/s390x: Replace gdb_get_regl() -> gdb_get_reg64() target/s390x: Replace MO_TE -> MO_BE target/s390x: Inline cpu_ld{uw,l}_code() calls in EX opcode helper target/s390x: Use big-endian variant of cpu_ld/st_data*() target/s390x: Inline translator_lduw() and translator_ldl() configs/targets: Forbid S390x to use legacy native endianness APIs configs/targets/s390x-linux-user.mak | 1 + configs/targets/s390x-softmmu.mak | 1 + target/s390x/tcg/insn-data.h.inc | 54 +++++----- hw/s390x/css.c | 24 ++--- hw/s390x/s390-pci-bus.c | 4 +- hw/s390x/virtio-ccw.c | 24 ++--- target/s390x/cpu-system.c | 2 +- target/s390x/gdbstub.c | 26 ++--- target/s390x/kvm/kvm.c | 8 +- target/s390x/mmu_helper.c | 3 +- target/s390x/tcg/excp_helper.c | 16 +-- target/s390x/tcg/mem_helper.c | 71 +++++++------ target/s390x/tcg/translate.c | 144 +++++++++++++-------------- target/s390x/tcg/vec_helper.c | 8 +- target/s390x/tcg/translate_vx.c.inc | 38 +++---- 15 files changed, 215 insertions(+), 209 deletions(-) -- 2.52.0
