@@ -118,7 +118,7 @@ static void disas_set_insn_syndrome(DisasContext *s, uint32_t syn)
/* We check and clear insn_start_idx to catch multiple updates. */
assert(s->insn_start_idx != 0);
- tcg_set_insn_param(s->insn_start_idx, 2, syn);
+ tcg_set_insn_start_param(s->insn_start_idx, 2, syn);
s->insn_start_idx = 0;
}
@@ -783,6 +783,16 @@ static inline void tcg_set_insn_param(int op_idx, int arg, TCGArg v)
tcg_ctx->gen_op_buf[op_idx].args[arg] = v;
}
+static inline void tcg_set_insn_start_param(int op_idx, int arg, target_ulong v)
+{
+#if TARGET_LONG_BITS <= TCG_TARGET_REG_BITS
+ tcg_set_insn_param(op_idx, arg, v);
+#else
+ tcg_set_insn_param(op_idx, arg * 2, v);
+ tcg_set_insn_param(op_idx, arg * 2 + 1, v >> 32);
+#endif
+}
+
/* The number of opcodes emitted so far. */
static inline int tcg_op_buf_count(void)
{