Skip to content

Commit 142fb62

Browse files
committed
tcg/arm: More use of the ARMInsn enum
Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Richard Henderson <[email protected]>
1 parent 1446600 commit 142fb62

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tcg/arm/tcg-target.c.inc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ static void tcg_out_blx_imm(TCGContext *s, int32_t offset)
570570
(((offset - 8) >> 2) & 0x00ffffff));
571571
}
572572

573-
static void tcg_out_dat_reg(TCGContext *s, ARMCond cond, int opc, int rd,
573+
static void tcg_out_dat_reg(TCGContext *s, ARMCond cond, ARMInsn opc, int rd,
574574
int rn, int rm, int shift)
575575
{
576576
tcg_out32(s, (cond << 28) | (0 << 25) | opc |
@@ -603,14 +603,14 @@ static void tcg_out_b_reg(TCGContext *s, ARMCond cond, TCGReg rn)
603603
}
604604
}
605605

606-
static void tcg_out_dat_imm(TCGContext *s, ARMCond cond, int opc,
606+
static void tcg_out_dat_imm(TCGContext *s, ARMCond cond, ARMInsn opc,
607607
int rd, int rn, int im)
608608
{
609609
tcg_out32(s, (cond << 28) | (1 << 25) | opc |
610610
(rn << 16) | (rd << 12) | im);
611611
}
612612

613-
static void tcg_out_ldstm(TCGContext *s, ARMCond cond, int opc,
613+
static void tcg_out_ldstm(TCGContext *s, ARMCond cond, ARMInsn opc,
614614
TCGReg rn, uint16_t mask)
615615
{
616616
tcg_out32(s, (cond << 28) | opc | (rn << 16) | mask);
@@ -637,8 +637,8 @@ static void tcg_out_memop_8(TCGContext *s, ARMCond cond, ARMInsn opc, TCGReg rt,
637637
(rn << 16) | (rt << 12) | ((imm8 & 0xf0) << 4) | (imm8 & 0xf));
638638
}
639639

640-
static void tcg_out_memop_12(TCGContext *s, ARMCond cond, ARMInsn opc, TCGReg rt,
641-
TCGReg rn, int imm12, bool p, bool w)
640+
static void tcg_out_memop_12(TCGContext *s, ARMCond cond, ARMInsn opc,
641+
TCGReg rt, TCGReg rn, int imm12, bool p, bool w)
642642
{
643643
bool u = 1;
644644
if (imm12 < 0) {
@@ -873,7 +873,7 @@ static void tcg_out_movi32(TCGContext *s, ARMCond cond, int rd, uint32_t arg)
873873
* Emit either the reg,imm or reg,reg form of a data-processing insn.
874874
* rhs must satisfy the "rI" constraint.
875875
*/
876-
static void tcg_out_dat_rI(TCGContext *s, ARMCond cond, int opc, TCGArg dst,
876+
static void tcg_out_dat_rI(TCGContext *s, ARMCond cond, ARMInsn opc, TCGArg dst,
877877
TCGArg lhs, TCGArg rhs, int rhs_is_const)
878878
{
879879
if (rhs_is_const) {
@@ -887,8 +887,8 @@ static void tcg_out_dat_rI(TCGContext *s, ARMCond cond, int opc, TCGArg dst,
887887
* Emit either the reg,imm or reg,reg form of a data-processing insn.
888888
* rhs must satisfy the "rIK" constraint.
889889
*/
890-
static void tcg_out_dat_rIK(TCGContext *s, ARMCond cond, int opc, int opinv,
891-
TCGReg dst, TCGReg lhs, TCGArg rhs,
890+
static void tcg_out_dat_rIK(TCGContext *s, ARMCond cond, ARMInsn opc,
891+
ARMInsn opinv, TCGReg dst, TCGReg lhs, TCGArg rhs,
892892
bool rhs_is_const)
893893
{
894894
if (rhs_is_const) {
@@ -903,8 +903,8 @@ static void tcg_out_dat_rIK(TCGContext *s, ARMCond cond, int opc, int opinv,
903903
}
904904
}
905905

906-
static void tcg_out_dat_rIN(TCGContext *s, ARMCond cond, int opc, int opneg,
907-
TCGArg dst, TCGArg lhs, TCGArg rhs,
906+
static void tcg_out_dat_rIN(TCGContext *s, ARMCond cond, ARMInsn opc,
907+
ARMInsn opneg, TCGArg dst, TCGArg lhs, TCGArg rhs,
908908
bool rhs_is_const)
909909
{
910910
/* Emit either the reg,imm or reg,reg form of a data-processing insn.

0 commit comments

Comments
 (0)