]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
configs/targets: Forbid s390x to use legacy native endianness APIs
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 21 Dec 2025 17:24:54 +0000 (18:24 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 22 Jan 2026 09:48:45 +0000 (10:48 +0100)
All s390x-related binaries are buildable without a single
use of the legacy "native endian" API. Set the transitional
TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API definition to forbid
further uses of the legacy API.

Preliminary commits allowing this final change:

 . f0853c25862 target/s390x: Inline translator_lduw() and translator_ldl()
 . ee4dae6a332 target/s390x: Use big-endian variant of cpu_ld/st_data*()
 . 381a1fda5bf target/s390x: Inline cpu_ld{uw, l}_code() calls in EX opcode helper
 . 69da23130f2 target/s390x: Replace MO_TE -> MO_BE
 . 0fb6ad781cc target/s390x: Replace gdb_get_regl() -> gdb_get_reg64()
 . 409cbb1a619 target/s390x: Use explicit big-endian LD/ST API
 . 6d9dad71265 target/s390x: Replace HOST_BIG_ENDIAN #ifdef with if() check

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20251224162036.90404-9-philmd@linaro.org>

configs/targets/s390x-linux-user.mak
configs/targets/s390x-softmmu.mak

index 68c2f288724ef1e43ba68562e6ccd30e07a2f18b..e3723f5dc5440ea54f82e61e0db972dc6f6e7de6 100644 (file)
@@ -4,3 +4,4 @@ TARGET_SYSTBL=syscall.tbl
 TARGET_BIG_ENDIAN=y
 TARGET_XML_FILES= gdb-xml/s390x-core64.xml gdb-xml/s390-acr.xml gdb-xml/s390-fpr.xml gdb-xml/s390-vx.xml gdb-xml/s390-cr.xml gdb-xml/s390-virt.xml gdb-xml/s390-virt-kvm.xml gdb-xml/s390-gs.xml
 TARGET_LONG_BITS=64
+TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
index 76dd5de6584a200e899f8656dceb5bc32ebdc6d6..544657cfe2d5aade61e5ece31daea6d2864a54fc 100644 (file)
@@ -3,3 +3,4 @@ TARGET_BIG_ENDIAN=y
 TARGET_KVM_HAVE_GUEST_DEBUG=y
 TARGET_XML_FILES= gdb-xml/s390x-core64.xml gdb-xml/s390-acr.xml gdb-xml/s390-fpr.xml gdb-xml/s390-vx.xml gdb-xml/s390-cr.xml gdb-xml/s390-virt.xml gdb-xml/s390-virt-kvm.xml gdb-xml/s390-gs.xml
 TARGET_LONG_BITS=64
+TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y