Received: from eggs.gnu.org ([2001:4830:134:3::10]:59445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjzhn-0005Ix-T8 for qemu-devel@nongnu.org; Mon, 12 May 2014 19:32:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wjzhh-0005xW-Pj for qemu-devel@nongnu.org; Mon, 12 May 2014 19:32:23 -0400 Received: from mail-qa0-x22c.google.com ([2607:f8b0:400d:c00::22c]:62041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjzhh-0005x9-BL for qemu-devel@nongnu.org; Mon, 12 May 2014 19:32:17 -0400 Received: by mail-qa0-f44.google.com with SMTP id j7so8000564qaq.31 for ; Mon, 12 May 2014 16:32:17 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Mon, 12 May 2014 16:31:07 -0700 Message-Id: <1399937474-6530-20-git-send-email-rth@twiddle.net> In-Reply-To: <1399937474-6530-1-git-send-email-rth@twiddle.net> References: <1399937474-6530-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PULL 19/26] tcg-ppc: Split out tcg_out_call List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tcg/ppc/tcg-target.c b/tcg/ppc/tcg-target.c index 32f600c..9062898 100644 --- a/tcg/ppc/tcg-target.c +++ b/tcg/ppc/tcg-target.c @@ -501,7 +501,7 @@ static void tcg_out_callr(TCGContext *s, TCGReg reg, int lk) tcg_out32(s, BCCTR | BO_ALWAYS | lk); } -static void tcg_out_calli(TCGContext *s, void *target, int lk) +static void tcg_out_call1(TCGContext *s, tcg_insn_unit *target, int lk) { #ifdef _CALL_AIX tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_R2, (uintptr_t)target); @@ -511,6 +511,11 @@ static void tcg_out_calli(TCGContext *s, void *target, int lk) #endif } +static void tcg_out_call(TCGContext *s, tcg_insn_unit *target) +{ + tcg_out_call1(s, target, LK); +} + #if defined(CONFIG_SOFTMMU) static void add_qemu_ldst_label (TCGContext *s, @@ -878,7 +883,7 @@ static void tcg_out_qemu_st_slow_path(TCGContext *s, TCGLabelQemuLdst *l) static void emit_ldst_trampoline(TCGContext *s, void *ptr) { tcg_out_mov(s, TCG_TYPE_PTR, TCG_REG_R3, TCG_AREG0); - tcg_out_calli(s, ptr, 0); + tcg_out_call1(s, ptr, 0); } #endif @@ -1387,7 +1392,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, break; case INDEX_op_call: if (const_args[0]) { - tcg_out_calli(s, (void *)(uintptr_t)args[0], LK); + tcg_out_call(s, (void *)(uintptr_t)args[0]); } else { tcg_out_callr(s, args[0], LK); } -- 1.9.0