]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/tricore: Remove target_ulong use in gen_addi_d()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 10 Oct 2025 03:47:05 +0000 (05:47 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 16 Oct 2025 15:07:52 +0000 (17:07 +0200)
Callers pass either int32_t or int16_t.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20251010052141.42460-5-philmd@linaro.org>

target/tricore/translate.c

index 4b769b204ab2b0801cdfc1d5cc4ce76ff713a803..116f45135bbed77f8e4200a247f4baaea7a68653 100644 (file)
@@ -1308,7 +1308,7 @@ gen_msubui64_d(TCGv ret_low, TCGv ret_high, TCGv r1, TCGv r2_low, TCGv r2_high,
     gen_msubu64_d(ret_low, ret_high, r1, r2_low, r2_high, temp);
 }
 
-static inline void gen_addi_d(TCGv ret, TCGv r1, target_ulong r2)
+static inline void gen_addi_d(TCGv ret, TCGv r1, int32_t r2)
 {
     TCGv temp = tcg_constant_i32(r2);
     gen_add_d(ret, r1, temp);