[PATCH 3/3] configs/targets: Forbid TriCore to use legacy native endianness API

Philippe Mathieu-Daudé posted 3 patches 1 month, 2 weeks ago
Maintainers: Bastian Koppelmann <kbastian@rumtueddeln.de>
[PATCH 3/3] configs/targets: Forbid TriCore to use legacy native endianness API
Posted by Philippe Mathieu-Daudé 1 month, 2 weeks ago
The qemu-system-tricore binary is buildable without a single
use of the legacy "native endian" API. Unset the transitional
TARGET_USE_LEGACY_NATIVE_ENDIAN_API definition to forbid
further uses of the legacy API.

Preliminary commits allowing this final change:

 . cd08bcaa36b target/tricore: Expand TCGv type for 32-bit target
 . 8a2235dd077 target/tricore: Un-inline various helpers
 . e843ef2bbac target/tricore: Pass DisasContext as first argument
 . 4f08815467e target/tricore: Expand TCG helpers for 32-bit target
 . f30c8aa229d target/tricore: Inline tcg_gen_ld32u_tl()
 . 6b2e4fcb836 target/tricore: Declare registers as TCGv_i32
 . c558aa94211 target/tricore: Replace target_ulong -> uint32_t in op_helper.c
 . 30257dcd2b0 target/tricore: Remove unnecessary cast to target_ulong
 . 44e2b68d275 target/tricore: Remove target_ulong use in gen_addi_d()
 . a15e8996268 target/tricore: Remove target_ulong use in translate_insn() handler
 . 0d5f9542561 target/tricore: Replace target_ulong -> vaddr with tlb_fill() callees
 . 809b460f305 target/tricore: Remove target_ulong use in gen_goto_tb()

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 configs/targets/tricore-softmmu.mak | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/targets/tricore-softmmu.mak b/configs/targets/tricore-softmmu.mak
index 5e018d81068..9a9f23c7731 100644
--- a/configs/targets/tricore-softmmu.mak
+++ b/configs/targets/tricore-softmmu.mak
@@ -1,3 +1,4 @@
 TARGET_ARCH=tricore
 TARGET_LONG_BITS=32
 TARGET_NOT_USING_LEGACY_LDST_PHYS_API=y
+TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
-- 
2.52.0


Re: [PATCH 3/3] configs/targets: Forbid TriCore to use legacy native endianness API
Posted by Richard Henderson 1 month ago
On 12/25/25 03:30, Philippe Mathieu-Daudé wrote:
> The qemu-system-tricore binary is buildable without a single
> use of the legacy "native endian" API. Unset the transitional
> TARGET_USE_LEGACY_NATIVE_ENDIAN_API definition to forbid
> further uses of the legacy API.
> 
> Preliminary commits allowing this final change:
> 
>   . cd08bcaa36b target/tricore: Expand TCGv type for 32-bit target
>   . 8a2235dd077 target/tricore: Un-inline various helpers
>   . e843ef2bbac target/tricore: Pass DisasContext as first argument
>   . 4f08815467e target/tricore: Expand TCG helpers for 32-bit target
>   . f30c8aa229d target/tricore: Inline tcg_gen_ld32u_tl()
>   . 6b2e4fcb836 target/tricore: Declare registers as TCGv_i32
>   . c558aa94211 target/tricore: Replace target_ulong -> uint32_t in op_helper.c
>   . 30257dcd2b0 target/tricore: Remove unnecessary cast to target_ulong
>   . 44e2b68d275 target/tricore: Remove target_ulong use in gen_addi_d()
>   . a15e8996268 target/tricore: Remove target_ulong use in translate_insn() handler
>   . 0d5f9542561 target/tricore: Replace target_ulong -> vaddr with tlb_fill() callees
>   . 809b460f305 target/tricore: Remove target_ulong use in gen_goto_tb()
> 
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
>   configs/targets/tricore-softmmu.mak | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~

Re: [PATCH 3/3] configs/targets: Forbid TriCore to use legacy native endianness API
Posted by Manos Pitsidianakis 1 month, 1 week ago
On Wed, Dec 24, 2025 at 6:31 PM Philippe Mathieu-Daudé
<philmd@linaro.org> wrote:
>
> The qemu-system-tricore binary is buildable without a single
> use of the legacy "native endian" API. Unset the transitional
> TARGET_USE_LEGACY_NATIVE_ENDIAN_API definition to forbid
> further uses of the legacy API.
>
> Preliminary commits allowing this final change:
>
>  . cd08bcaa36b target/tricore: Expand TCGv type for 32-bit target
>  . 8a2235dd077 target/tricore: Un-inline various helpers
>  . e843ef2bbac target/tricore: Pass DisasContext as first argument
>  . 4f08815467e target/tricore: Expand TCG helpers for 32-bit target
>  . f30c8aa229d target/tricore: Inline tcg_gen_ld32u_tl()
>  . 6b2e4fcb836 target/tricore: Declare registers as TCGv_i32
>  . c558aa94211 target/tricore: Replace target_ulong -> uint32_t in op_helper.c
>  . 30257dcd2b0 target/tricore: Remove unnecessary cast to target_ulong
>  . 44e2b68d275 target/tricore: Remove target_ulong use in gen_addi_d()
>  . a15e8996268 target/tricore: Remove target_ulong use in translate_insn() handler
>  . 0d5f9542561 target/tricore: Replace target_ulong -> vaddr with tlb_fill() callees
>  . 809b460f305 target/tricore: Remove target_ulong use in gen_goto_tb()
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>



>  configs/targets/tricore-softmmu.mak | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/configs/targets/tricore-softmmu.mak b/configs/targets/tricore-softmmu.mak
> index 5e018d81068..9a9f23c7731 100644
> --- a/configs/targets/tricore-softmmu.mak
> +++ b/configs/targets/tricore-softmmu.mak
> @@ -1,3 +1,4 @@
>  TARGET_ARCH=tricore
>  TARGET_LONG_BITS=32
>  TARGET_NOT_USING_LEGACY_LDST_PHYS_API=y
> +TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API=y
> --
> 2.52.0
>