[PATCH 08/12] target/tricore: Inline tcg_gen_ld32u_tl()

Philippe Mathieu-Daudé posted 12 patches 1 month ago
Maintainers: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
[PATCH 08/12] target/tricore: Inline tcg_gen_ld32u_tl()
Posted by Philippe Mathieu-Daudé 1 month ago
The TriCore target is only built as 32-bit, so tcg_gen_ld32u_tl()
expands to tcg_gen_ld_i32(). Use the latter to simplify the next
commit mechanical change.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 target/tricore/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index 194c4db8d0f..da08f7bd60a 100644
--- a/target/tricore/translate.c
+++ b/target/tricore/translate.c
@@ -7959,7 +7959,7 @@ static void decode_sys_interrupts(DisasContext *ctx)
             tmp = tcg_temp_new();
             l1 = gen_new_label();
 
-            tcg_gen_ld32u_tl(tmp, tcg_env, offsetof(CPUTriCoreState, DBGSR));
+            tcg_gen_ld_i32(tmp, tcg_env, offsetof(CPUTriCoreState, DBGSR));
             tcg_gen_andi_tl(tmp, tmp, MASK_DBGSR_DE);
             tcg_gen_brcondi_tl(TCG_COND_NE, tmp, 1, l1);
             gen_helper_rfm(tcg_env);
-- 
2.51.0


Re: [PATCH 08/12] target/tricore: Inline tcg_gen_ld32u_tl()
Posted by Richard Henderson 1 month ago
On 10/9/25 22:21, Philippe Mathieu-Daudé wrote:
> The TriCore target is only built as 32-bit, so tcg_gen_ld32u_tl()
> expands to tcg_gen_ld_i32(). Use the latter to simplify the next
> commit mechanical change.
> 
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
>   target/tricore/translate.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

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

r~