[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 15/38] tcg/tci: Split out tci_args_rrrr
From: |
Richard Henderson |
Subject: |
[PULL 15/38] tcg/tci: Split out tci_args_rrrr |
Date: |
Wed, 17 Mar 2021 09:34:21 -0600 |
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/tci.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/tcg/tci.c b/tcg/tci.c
index 91c5f71065..2fcf5a2473 100644
--- a/tcg/tci.c
+++ b/tcg/tci.c
@@ -239,6 +239,15 @@ static void tci_args_rrrc(const uint8_t **tb_ptr,
}
#if TCG_TARGET_REG_BITS == 32
+static void tci_args_rrrr(const uint8_t **tb_ptr,
+ TCGReg *r0, TCGReg *r1, TCGReg *r2, TCGReg *r3)
+{
+ *r0 = tci_read_r(tb_ptr);
+ *r1 = tci_read_r(tb_ptr);
+ *r2 = tci_read_r(tb_ptr);
+ *r3 = tci_read_r(tb_ptr);
+}
+
static void tci_args_rrrrcl(const uint8_t **tb_ptr, TCGReg *r0, TCGReg *r1,
TCGReg *r2, TCGReg *r3, TCGCond *c4, void **l5)
{
@@ -661,11 +670,8 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState
*env,
}
break;
case INDEX_op_mulu2_i32:
- t0 = *tb_ptr++;
- t1 = *tb_ptr++;
- t2 = tci_read_rval(regs, &tb_ptr);
- tmp64 = (uint32_t)tci_read_rval(regs, &tb_ptr);
- tci_write_reg64(regs, t1, t0, (uint32_t)t2 * tmp64);
+ tci_args_rrrr(&tb_ptr, &r0, &r1, &r2, &r3);
+ tci_write_reg64(regs, r1, r0, (uint64_t)regs[r2] * regs[r3]);
break;
#endif /* TCG_TARGET_REG_BITS == 32 */
#if TCG_TARGET_HAS_ext8s_i32 || TCG_TARGET_HAS_ext8s_i64
--
2.25.1
- [PULL 20/38] tcg/tci: Remove tci_disas, (continued)
- [PULL 20/38] tcg/tci: Remove tci_disas, Richard Henderson, 2021/03/17
- [PULL 19/38] tcg/tci: Hoist op_size checking into tci_args_*, Richard Henderson, 2021/03/17
- [PULL 21/38] tcg/tci: Implement the disassembler properly, Richard Henderson, 2021/03/17
- [PULL 27/38] tcg/tci: Split out tcg_out_op_rrr, Richard Henderson, 2021/03/17
- [PULL 30/38] tcg/tci: Split out tcg_out_op_rrrbb, Richard Henderson, 2021/03/17
- [PULL 28/38] tcg/tci: Split out tcg_out_op_rrrc, Richard Henderson, 2021/03/17
- [PULL 24/38] tcg/tci: Split out tcg_out_op_l, Richard Henderson, 2021/03/17
- [PULL 25/38] tcg/tci: Split out tcg_out_op_p, Richard Henderson, 2021/03/17
- [PULL 36/38] tcg/tci: Split out tcg_out_op_v, Richard Henderson, 2021/03/17
- [PULL 17/38] tcg/tci: Reduce qemu_ld/st TCGMemOpIdx operand to 32-bits, Richard Henderson, 2021/03/17
- [PULL 15/38] tcg/tci: Split out tci_args_rrrr,
Richard Henderson <=
- [PULL 16/38] tcg/tci: Clean up deposit operations, Richard Henderson, 2021/03/17
- [PULL 23/38] tcg/tci: Split out tcg_out_op_rrs, Richard Henderson, 2021/03/17
- [PULL 22/38] tcg/tci: Push opcode emit into each case, Richard Henderson, 2021/03/17
- [PULL 31/38] tcg/tci: Split out tcg_out_op_rrcl, Richard Henderson, 2021/03/17
- [PULL 33/38] tcg/tci: Split out tcg_out_op_rrrr, Richard Henderson, 2021/03/17
- [PULL 35/38] tcg/tci: Split out tcg_out_op_{rrm,rrrm,rrrrm}, Richard Henderson, 2021/03/17
- [PULL 32/38] tcg/tci: Split out tcg_out_op_rrrrrr, Richard Henderson, 2021/03/17
- [PULL 38/38] tcg: Fix prototypes for tcg_out_vec_op and tcg_out_op, Richard Henderson, 2021/03/17
- [PULL 37/38] tcg/tci: Split out tcg_out_op_r[iI], Richard Henderson, 2021/03/17
- [PULL 34/38] tcg/tci: Split out tcg_out_op_rrrrcl, Richard Henderson, 2021/03/17