Commit 0cbf555dc0 for qemu.org
commit 0cbf555dc06342dc1d039fc756c41cd4444b8f12
Author: Richard Henderson <richard.henderson@linaro.org>
Date: Mon Sep 14 12:52:14 2026 -1000
target/mips/tcg: Fix zero in gen_mxu_d8sum
This is obviously an attempt to set temps to 0,
but accidentally passed NULL to a regular move.
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
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) {