Skip to contentSkip to conversation

tcg/tci: Fix MemOpIdx operand index for 3-operand memops

PATCH In review Richard Henderson 2 participants 3 messages Jun 8, 2023 – Jun 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcg/tci: Fix MemOpIdx operand index for 3-operand memops

Cut and paste error from the 4-operand memops.

Fixes ab64da797740 ("tcg/tci: Adjust passing of MemOpIdx")
---
 tcg/tci/tcg-target.c.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tcg/tci/tcg-target.c.inc +1 -1
index 0037f904f1..253f27f174 100644
@@ -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;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Richard Henderson

Cut and paste error from the 4-operand memops.

Fixes ab64da797740 ("tcg/tci: Adjust passing of MemOpIdx")

I had this patch tagged for review but you were quicker (not sure I'd have caught the issue although)

Quoted 4 lines
---
  tcg/tci/tcg-target.c.inc | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
author Applied
#2 lore raw
Quoted 8 lines · Philippe Mathieu-Daudé
Quoted 3 lines · Richard Henderson

Cut and paste error from the 4-operand memops.

Fixes ab64da797740 ("tcg/tci: Adjust passing of MemOpIdx")

I had this patch tagged for review but you were quicker (not sure I'd have caught the issue although)

Quoted 8 lines
Quoted 4 lines

---
  tcg/tci/tcg-target.c.inc | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, though it hasn't completely greened the board.

r~