Commit f88c029150 for qemu.org
commit f88c029150a4c75a7ea0c8e1b5830b5b3cf27a35
Author: Richard Henderson <richard.henderson@linaro.org>
Date: Mon Sep 14 12:52:14 2026 -1000
target/mips: Fix zero in gen_mxu_d8sum
This is obviously an attempt to set temps to 0,
but accidentally passed NULL to a regular move.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Message-ID: <20260914230901.1781309-2-richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
diff --git a/target/mips/tcg/mxu_translate.c b/target/mips/tcg/mxu_translate.c
index 7961b07314..9559b8aada 100644
--- a/target/mips/tcg/mxu_translate.c
+++ b/target/mips/tcg/mxu_translate.c
@@ -3109,7 +3109,7 @@ static void gen_mxu_d8sum(DisasContext *ctx, bool sumc)
tcg_gen_add_i32(t4, t4, t2);
tcg_gen_add_i32(t4, t4, t3);
} else {
- tcg_gen_mov_i32(t4, 0);
+ tcg_gen_movi_i32(t4, 0);
}
if (XRc != 0) {
tcg_gen_extract_i32(t0, mxu_gpr[XRc - 1], 0, 8);
@@ -3120,7 +3120,7 @@ static void gen_mxu_d8sum(DisasContext *ctx, bool sumc)
tcg_gen_add_i32(t5, t5, t2);
tcg_gen_add_i32(t5, t5, t3);
} else {
- tcg_gen_mov_i32(t5, 0);
+ tcg_gen_movi_i32(t5, 0);
}
if (sumc) {