All HPPA-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:

 . c77d0e90093 target/hppa: Use big-endian variant of cpu_ld/st_data*()
 . 75498b3f7b9 target/hppa: Use explicit big-endian LD/ST API
 . bcf5e5d3e33 target/hppa: Inline translator_ldl()
 . 7307ff95581 target/hppa: Replace MO_TE -> MO_BE
 . 6c1c734f786 target/hppa: Introduce mo_endian() helper
 . 64d1c178513 target/hppa: Conceal MO_TE within do_store_32/64()
 . 0807994a0cc target/hppa: Conceal MO_TE within do_store()
 . e3da4367117 target/hppa: Conceal MO_TE within do_load_32/64()
 . 4eef4dab502 target/hppa: Conceal MO_TE within do_load()
 . 714dd08fed1 target/hppa: Explode MO_TExx -> MO_TE | MO_xx

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Manos Pitsidianakis <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-ID: <[email protected]>
---
 configs/targets/hppa-linux-user.mak | 1 +
 configs/targets/hppa-softmmu.mak    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/targets/hppa-linux-user.mak 
b/configs/targets/hppa-linux-user.mak
index 59190f63358..a0c7398d599 100644
--- a/configs/targets/hppa-linux-user.mak
+++ b/configs/targets/hppa-linux-user.mak
@@ -5,3 +5,4 @@ TARGET_SYSTBL=syscall.tbl
 TARGET_BIG_ENDIAN=y
 # Compromise to ease maintenance vs system mode
 TARGET_LONG_BITS=64
+TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
diff --git a/configs/targets/hppa-softmmu.mak b/configs/targets/hppa-softmmu.mak
index ea331107a08..003f9f46dcc 100644
--- a/configs/targets/hppa-softmmu.mak
+++ b/configs/targets/hppa-softmmu.mak
@@ -1,3 +1,4 @@
 TARGET_ARCH=hppa
 TARGET_BIG_ENDIAN=y
 TARGET_LONG_BITS=64
+TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
-- 
2.52.0


Reply via email to