[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 03/10] tcg-ppc: Split out tcg_out_call
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 03/10] tcg-ppc: Split out tcg_out_call |
Date: |
Tue, 29 Apr 2014 09:52:06 -0700 |
Signed-off-by: Richard Henderson <address@hidden>
---
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
- [Qemu-devel] [PATCH 00/10] tcg: call and move cleanups, Richard Henderson, 2014/04/29
- [Qemu-devel] [PATCH 01/10] tcg-i386: Rename tcg_out_calli to tcg_out_call, Richard Henderson, 2014/04/29
- [Qemu-devel] [PATCH 02/10] tcg-s390: Rename tgen_calli to tcg_out_call, Richard Henderson, 2014/04/29
- [Qemu-devel] [PATCH 03/10] tcg-ppc: Split out tcg_out_call,
Richard Henderson <=
- [Qemu-devel] [PATCH 04/10] tcg-ppc64: Rename tcg_out_calli to tcg_out_call, Richard Henderson, 2014/04/29
- [Qemu-devel] [PATCH 06/10] tcg-mips: Split out tcg_out_call, Richard Henderson, 2014/04/29
- [Qemu-devel] [PATCH 05/10] tcg-sparc: Create tcg_out_call, Richard Henderson, 2014/04/29
- [Qemu-devel] [PATCH 08/10] tcg: Make call address a constant parameter, Richard Henderson, 2014/04/29
- [Qemu-devel] [PATCH 07/10] tci: Create tcg_out_call, Richard Henderson, 2014/04/29
- [Qemu-devel] [PATCH 09/10] tcg: Use tcg_target_available_regs in tcg_reg_alloc_mov, Richard Henderson, 2014/04/29
- [Qemu-devel] [PATCH 10/10] tcg: Remove unreachable code in tcg_out_op and op_defs, Richard Henderson, 2014/04/29