diff mbox series

[PATCH-for-8.0,2/2] target/sparc64: Replace TCGv by TCGv_i64 in gen_op_multiply()

Message ID 20221130163436.87687-3-philmd@linaro.org (mailing list archive)
State New, archived
Headers show
Series target/tcg: Use TCGv_i64 with tcg_temp_new_i64() | expand

Commit Message

Philippe Mathieu-Daudé Nov. 30, 2022, 4:34 p.m. UTC
Although TCGv is defined as TCGv_i64 on sparc64,
make it clear tcg_temp_new_i64() returns a TCGv_i64.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 target/sparc/translate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/target/sparc/translate.c b/target/sparc/translate.c
index 34858eb95f..5a08641995 100644
--- a/target/sparc/translate.c
+++ b/target/sparc/translate.c
@@ -647,8 +647,8 @@  static inline void gen_op_multiply(TCGv dst, TCGv src1, TCGv src2, int sign_ext)
         tcg_gen_mulu2_tl(dst, cpu_y, src1, src2);
     }
 #else
-    TCGv t0 = tcg_temp_new_i64();
-    TCGv t1 = tcg_temp_new_i64();
+    TCGv_i64 t0 = tcg_temp_new_i64();
+    TCGv_i64 t1 = tcg_temp_new_i64();
 
     if (sign_ext) {
         tcg_gen_ext32s_i64(t0, src1);