tci: Create tcg_out_call
authorRichard Henderson <rth@twiddle.net>
Mon, 28 Apr 2014 20:21:25 +0000 (13:21 -0700)
committerRichard Henderson <rth@twiddle.net>
Mon, 12 May 2014 18:13:12 +0000 (11:13 -0700)
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tci/tcg-target.c

index 6123f9f8d5b814f1a531214e07564e75f0a061ab..7425e73df549275d98370e36806ca179eeccc576 100644 (file)
@@ -549,6 +549,11 @@ static void tcg_out_movi(TCGContext *s, TCGType type,
     old_code_ptr[1] = s->code_ptr - old_code_ptr;
 }
 
+static inline void tcg_out_call(TCGContext *s, tcg_insn_unit *arg)
+{
+    tcg_out_ri(s, 1, (uintptr_t)arg);
+}
+
 static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args,
                        const int *const_args)
 {