]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tcg/tci: Fix MemOpIdx operand index for 3-operand memops
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Jun 2023 16:29:25 +0000 (09:29 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 9 Jun 2023 15:30:56 +0000 (08:30 -0700)
Cut and paste error from the 4-operand memops.

Fixes: ab64da797740 ("tcg/tci: Adjust passing of MemOpIdx")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230608162925.677598-1-richard.henderson@linaro.org>

tcg/tci/tcg-target.c.inc

index 0037f904f1f76592de944f2c57a673527fe01eb0..253f27f1740fe1a4322bee2a0970b9035a3a233c 100644 (file)
@@ -847,7 +847,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
         if (TCG_TARGET_REG_BITS == 64) {
             tcg_out_op_rrm(s, opc, args[0], args[1], args[2]);
         } else {
-            tcg_out_movi(s, TCG_TYPE_I32, TCG_REG_TMP, args[4]);
+            tcg_out_movi(s, TCG_TYPE_I32, TCG_REG_TMP, args[3]);
             tcg_out_op_rrrr(s, opc, args[0], args[1], args[2], TCG_REG_TMP);
         }
         break;