From: Philippe Mathieu-Daudé Date: Fri, 19 Dec 2025 18:15:06 +0000 (+0000) Subject: configs/targets: Forbid OpenRISC to use legacy native endianness APIs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2a334c5f5626e7905e0643e57943a8a13f6e44b;p=thirdparty%2Fqemu.git configs/targets: Forbid OpenRISC to use legacy native endianness APIs All OpenRISC-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: . 52392f95e69 target/openrisc: Inline translator_ldl() . 16c0efb5a7a target/openrisc: Use explicit big-endian LD/ST API . 5b67dbf1dc3 target/openrisc: Replace target_ulong -> uint32_t . 500708331e3 target/openrisc: Inline tcg_gen_trunc_i64_tl() . 4f6c60683f2 target/openrisc: Replace MO_TE -> MO_BE . 73cd283e58d target/openrisc: Introduce mo_endian() helper . 2f737e19a4d target/openrisc: Conceal MO_TE within do_store() . 22c36c0a20c target/openrisc: Conceal MO_TE within do_load() . ef797ac0025 target/openrisc: Explode MO_TExx -> MO_TE | MO_xx . 81e2fb236b7 target/openrisc: Remove 'TARGET_LONG_BITS != 32' dead code . 9dc4862dc4a target/openrisc: Use vaddr type for $pc jumps . 2367c94cbb1 target/openrisc: Remove target_ulong use in raise_mmu_exception() . 1843e89bec5 target/openrisc: Remove unused cpu_openrisc_map_address_*() handlers . a3c4facd395 target/openrisc: Do not use target_ulong for @mr in MTSPR helper . 2795bc52af4 target/openrisc: Replace VMSTATE_UINTTL() -> VMSTATE_UINT32() Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderson Message-ID: <20251224161804.90064-5-philmd@linaro.org> --- diff --git a/configs/targets/or1k-linux-user.mak b/configs/targets/or1k-linux-user.mak index 810567a98f..97d7cb1046 100644 --- a/configs/targets/or1k-linux-user.mak +++ b/configs/targets/or1k-linux-user.mak @@ -3,3 +3,4 @@ TARGET_BIG_ENDIAN=y TARGET_SYSTBL_ABI=common,32,or1k,time32,stat64,rlimit,renameat TARGET_SYSTBL=syscall.tbl TARGET_LONG_BITS=32 +TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y diff --git a/configs/targets/or1k-softmmu.mak b/configs/targets/or1k-softmmu.mak index 89f81b75bf..c53408a2bf 100644 --- a/configs/targets/or1k-softmmu.mak +++ b/configs/targets/or1k-softmmu.mak @@ -4,3 +4,4 @@ TARGET_BIG_ENDIAN=y TARGET_NEED_FDT=y TARGET_LONG_BITS=32 TARGET_NOT_USING_LEGACY_LDST_PHYS_API=y +TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y