[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 21/76] target/cris: Drop cris_alu_free_temps
From: |
Richard Henderson |
Subject: |
[PATCH v2 21/76] target/cris: Drop cris_alu_free_temps |
Date: |
Sun, 26 Feb 2023 19:24:10 -1000 |
Translators are no longer required to free tcg temporaries.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/cris/translate.c | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/target/cris/translate.c b/target/cris/translate.c
index a959b27373..76db745fe2 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -1467,14 +1467,6 @@ static inline void cris_alu_alloc_temps(DisasContext
*dc, int size, TCGv *t)
}
}
-static inline void cris_alu_free_temps(DisasContext *dc, int size, TCGv *t)
-{
- if (size != 4) {
- tcg_temp_free(t[0]);
- tcg_temp_free(t[1]);
- }
-}
-
static int dec_and_r(CPUCRISState *env, DisasContext *dc)
{
TCGv t[2];
@@ -1488,7 +1480,6 @@ static int dec_and_r(CPUCRISState *env, DisasContext *dc)
cris_alu_alloc_temps(dc, size, t);
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]);
cris_alu(dc, CC_OP_AND, cpu_R[dc->op2], t[0], t[1], size);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1518,7 +1509,6 @@ static int dec_lsl_r(CPUCRISState *env, DisasContext *dc)
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]);
tcg_gen_andi_tl(t[1], t[1], 63);
cris_alu(dc, CC_OP_LSL, cpu_R[dc->op2], t[0], t[1], size);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1535,7 +1525,6 @@ static int dec_lsr_r(CPUCRISState *env, DisasContext *dc)
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]);
tcg_gen_andi_tl(t[1], t[1], 63);
cris_alu(dc, CC_OP_LSR, cpu_R[dc->op2], t[0], t[1], size);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1552,7 +1541,6 @@ static int dec_asr_r(CPUCRISState *env, DisasContext *dc)
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 1, t[0], t[1]);
tcg_gen_andi_tl(t[1], t[1], 63);
cris_alu(dc, CC_OP_ASR, cpu_R[dc->op2], t[0], t[1], size);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1568,7 +1556,6 @@ static int dec_muls_r(CPUCRISState *env, DisasContext *dc)
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 1, t[0], t[1]);
cris_alu(dc, CC_OP_MULS, cpu_R[dc->op2], t[0], t[1], 4);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1584,7 +1571,6 @@ static int dec_mulu_r(CPUCRISState *env, DisasContext *dc)
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]);
cris_alu(dc, CC_OP_MULU, cpu_R[dc->op2], t[0], t[1], 4);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1610,7 +1596,6 @@ static int dec_xor_r(CPUCRISState *env, DisasContext *dc)
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]);
cris_alu(dc, CC_OP_XOR, cpu_R[dc->op2], t[0], t[1], 4);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1639,7 +1624,6 @@ static int dec_cmp_r(CPUCRISState *env, DisasContext *dc)
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]);
cris_alu(dc, CC_OP_CMP, cpu_R[dc->op2], t[0], t[1], size);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1666,7 +1650,6 @@ static int dec_add_r(CPUCRISState *env, DisasContext *dc)
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]);
cris_alu(dc, CC_OP_ADD, cpu_R[dc->op2], t[0], t[1], size);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1755,7 +1738,6 @@ static int dec_or_r(CPUCRISState *env, DisasContext *dc)
cris_alu_alloc_temps(dc, size, t);
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]);
cris_alu(dc, CC_OP_OR, cpu_R[dc->op2], t[0], t[1], size);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1796,7 +1778,6 @@ static int dec_neg_r(CPUCRISState *env, DisasContext *dc)
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]);
cris_alu(dc, CC_OP_NEG, cpu_R[dc->op2], t[0], t[1], size);
- cris_alu_free_temps(dc, size, t);
return 2;
}
@@ -1825,7 +1806,6 @@ static int dec_sub_r(CPUCRISState *env, DisasContext *dc)
cris_alu_alloc_temps(dc, size, t);
dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]);
cris_alu(dc, CC_OP_SUB, cpu_R[dc->op2], t[0], t[1], size);
- cris_alu_free_temps(dc, size, t);
return 2;
}
--
2.34.1
- [PATCH v2 06/76] target/arm: Drop tcg_temp_free from translator.c, (continued)
- [PATCH v2 06/76] target/arm: Drop tcg_temp_free from translator.c, Richard Henderson, 2023/02/27
- [PATCH v2 11/76] target/arm: Drop tcg_temp_free from translator-m-nocp.c, Richard Henderson, 2023/02/27
- [PATCH v2 05/76] target/arm: Remove value_global from DisasCompare, Richard Henderson, 2023/02/27
- [PATCH v2 12/76] target/arm: Drop tcg_temp_free from translator-mve.c, Richard Henderson, 2023/02/27
- [PATCH v2 07/76] target/arm: Drop DisasContext.tmp_a64, Richard Henderson, 2023/02/27
- [PATCH v2 08/76] target/arm: Drop new_tmp_a64, Richard Henderson, 2023/02/27
- [PATCH v2 10/76] target/arm: Drop tcg_temp_free from translator-a64.c, Richard Henderson, 2023/02/27
- [PATCH v2 15/76] target/arm: Drop tcg_temp_free from translator-sve.c, Richard Henderson, 2023/02/27
- [PATCH v2 13/76] target/arm: Drop tcg_temp_free from translator-neon.c, Richard Henderson, 2023/02/27
- [PATCH v2 14/76] target/arm: Drop tcg_temp_free from translator-sme.c, Richard Henderson, 2023/02/27
- [PATCH v2 21/76] target/cris: Drop cris_alu_free_temps,
Richard Henderson <=
- [PATCH v2 22/76] target/cris: Drop cris_alu_m_free_temps, Richard Henderson, 2023/02/27
- [PATCH v2 17/76] target/arm: Drop tcg_temp_free from translator.h, Richard Henderson, 2023/02/27
- [PATCH v2 16/76] target/arm: Drop tcg_temp_free from translator-vfp.c, Richard Henderson, 2023/02/27
- [PATCH v2 18/76] target/avr: Drop DisasContext.free_skip_var0, Richard Henderson, 2023/02/27
- [PATCH v2 19/76] target/avr: Drop R from trans_COM, Richard Henderson, 2023/02/27
- [PATCH v2 23/76] target/cris: Drop addr from dec10_ind_move_m_pr, Richard Henderson, 2023/02/27
- [PATCH v2 20/76] target/avr: Drop tcg_temp_free, Richard Henderson, 2023/02/27
- [PATCH v2 24/76] target/cris: Drop tcg_temp_free, Richard Henderson, 2023/02/27
- [PATCH v2 25/76] target/hexagon: Drop tcg_temp_free from C code, Richard Henderson, 2023/02/27