]> Git Repo - qemu.git/blobdiff - tcg/tcg.h
Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.12-20180410' into staging
[qemu.git] / tcg / tcg.h
index 9e2d909a4a82c5fd60243c29979c61840ffcfd0e..30896ca304ed6fc851cf6919f1c32d1ec2b2aa2c 100644 (file)
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -825,6 +825,16 @@ static inline void tcg_set_insn_param(TCGOp *op, int arg, TCGArg v)
     op->args[arg] = v;
 }
 
+static inline void tcg_set_insn_start_param(TCGOp *op, int arg, target_ulong v)
+{
+#if TARGET_LONG_BITS <= TCG_TARGET_REG_BITS
+    tcg_set_insn_param(op, arg, v);
+#else
+    tcg_set_insn_param(op, arg * 2, v);
+    tcg_set_insn_param(op, arg * 2 + 1, v >> 32);
+#endif
+}
+
 /* The last op that was emitted.  */
 static inline TCGOp *tcg_last_op(void)
 {
This page took 0.022468 seconds and 4 git commands to generate.