]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
configs/targets: Forbid OpenRISC to use legacy native endianness APIs
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 19 Dec 2025 18:15:06 +0000 (18:15 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 22 Jan 2026 09:48:45 +0000 (10:48 +0100)
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é <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20251224161804.90064-5-philmd@linaro.org>

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

index 810567a98f9ba814b891df7d740419b0677d011b..97d7cb10465b51d818a8aae57219e0d581883262 100644 (file)
@@ -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
index 89f81b75bf7b1820fc294b8e21e4e23c365f7071..c53408a2bf5ae8c2d3ab5ea5c16afa18aa12af46 100644 (file)
@@ -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