[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 40/57] tcg/tci: Split out tcg_out_op_v
From: |
Richard Henderson |
Subject: |
[PATCH v5 40/57] tcg/tci: Split out tcg_out_op_v |
Date: |
Thu, 11 Mar 2021 08:39:41 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/tci/tcg-target.c.inc | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc
index f93772f01f..eeafec6d44 100644
--- a/tcg/tci/tcg-target.c.inc
+++ b/tcg/tci/tcg-target.c.inc
@@ -303,6 +303,15 @@ static void tcg_out_op_p(TCGContext *s, TCGOpcode op, void
*p0)
old_code_ptr[1] = s->code_ptr - old_code_ptr;
}
+static void tcg_out_op_v(TCGContext *s, TCGOpcode op)
+{
+ uint8_t *old_code_ptr = s->code_ptr;
+
+ tcg_out_op_t(s, op);
+
+ old_code_ptr[1] = s->code_ptr - old_code_ptr;
+}
+
static void tcg_out_op_rr(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r1)
{
uint8_t *old_code_ptr = s->code_ptr;
@@ -587,8 +596,6 @@ static void tcg_out_call(TCGContext *s, const tcg_insn_unit
*arg)
static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args,
const int *const_args)
{
- uint8_t *old_code_ptr = s->code_ptr;
-
switch (opc) {
case INDEX_op_exit_tb:
tcg_out_op_p(s, opc, (void *)args[0]);
@@ -725,8 +732,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const
TCGArg *args,
break;
case INDEX_op_mb:
- tcg_out_op_t(s, opc);
- old_code_ptr[1] = s->code_ptr - old_code_ptr;
+ tcg_out_op_v(s, opc);
break;
case INDEX_op_mov_i32: /* Always emitted via tcg_out_mov. */
--
2.25.1
- Re: [PATCH v5 35/57] tcg/tci: Split out tcg_out_op_rrcl, (continued)
- [PATCH v5 39/57] tcg/tci: Split out tcg_out_op_{rrm,rrrm,rrrrm}, Richard Henderson, 2021/03/11
- [PATCH v5 41/57] tcg/tci: Split out tcg_out_op_np, Richard Henderson, 2021/03/11
- [PATCH v5 37/57] tcg/tci: Split out tcg_out_op_rrrr, Richard Henderson, 2021/03/11
- [PATCH v5 43/57] tcg/tci: Reserve r13 for a temporary, Richard Henderson, 2021/03/11
- [PATCH v5 44/57] tcg/tci: Emit setcond before brcond, Richard Henderson, 2021/03/11
- [PATCH v5 45/57] tcg/tci: Remove tci_write_reg, Richard Henderson, 2021/03/11
- [PATCH v5 40/57] tcg/tci: Split out tcg_out_op_v,
Richard Henderson <=
- [PATCH v5 42/57] tcg/tci: Split out tcg_out_op_r[iI], Richard Henderson, 2021/03/11
- [PATCH v5 50/57] tcg/tci: Implement extract, sextract, Richard Henderson, 2021/03/11
- [PATCH v5 51/57] tcg/tci: Implement clz, ctz, ctpop, Richard Henderson, 2021/03/11
- [PATCH v5 47/57] tcg/tci: Implement goto_ptr, Richard Henderson, 2021/03/11
- [PATCH v5 48/57] tcg/tci: Implement movcond, Richard Henderson, 2021/03/11
- [PATCH v5 49/57] tcg/tci: Implement andc, orc, eqv, nand, nor, Richard Henderson, 2021/03/11