[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 18/28] target/cris: Don't use tcg_temp_local_new
From: |
Richard Henderson |
Subject: |
[PATCH v2 18/28] target/cris: Don't use tcg_temp_local_new |
Date: |
Wed, 22 Feb 2023 13:27:05 -1000 |
Since tcg_temp_new is now identical, use that.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/cris/translate.c | 6 +++---
target/cris/translate_v10.c.inc | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/target/cris/translate.c b/target/cris/translate.c
index 905d01288e..a959b27373 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -1621,7 +1621,7 @@ static int dec_bound_r(CPUCRISState *env, DisasContext
*dc)
LOG_DIS("bound.%c $r%u, $r%u\n",
memsize_char(size), dc->op1, dc->op2);
cris_cc_mask(dc, CC_MASK_NZ);
- l0 = tcg_temp_local_new();
+ l0 = tcg_temp_new();
dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, l0);
cris_alu(dc, CC_OP_BOUND, cpu_R[dc->op2], cpu_R[dc->op2], l0, 4);
tcg_temp_free(l0);
@@ -2404,8 +2404,8 @@ static int dec_bound_m(CPUCRISState *env, DisasContext
*dc)
dc->op1, dc->postinc ? "+]" : "]",
dc->op2);
- l[0] = tcg_temp_local_new();
- l[1] = tcg_temp_local_new();
+ l[0] = tcg_temp_new();
+ l[1] = tcg_temp_new();
insn_len = dec_prep_alu_m(env, dc, 0, memsize, l[0], l[1]);
cris_cc_mask(dc, CC_MASK_NZ);
cris_alu(dc, CC_OP_BOUND, cpu_R[dc->op2], l[0], l[1], 4);
diff --git a/target/cris/translate_v10.c.inc b/target/cris/translate_v10.c.inc
index f500e93447..9660f28584 100644
--- a/target/cris/translate_v10.c.inc
+++ b/target/cris/translate_v10.c.inc
@@ -68,9 +68,9 @@ static void gen_store_v10_conditional(DisasContext *dc, TCGv
addr, TCGv val,
unsigned int size, int mem_index)
{
TCGLabel *l1 = gen_new_label();
- TCGv taddr = tcg_temp_local_new();
- TCGv tval = tcg_temp_local_new();
- TCGv t1 = tcg_temp_local_new();
+ TCGv taddr = tcg_temp_new();
+ TCGv tval = tcg_temp_new();
+ TCGv t1 = tcg_temp_new();
dc->postinc = 0;
cris_evaluate_flags(dc);
@@ -434,7 +434,7 @@ static void dec10_reg_bound(DisasContext *dc, int size)
{
TCGv t;
- t = tcg_temp_local_new();
+ t = tcg_temp_new();
t_gen_zext(t, cpu_R[dc->src], size);
cris_alu(dc, CC_OP_BOUND, cpu_R[dc->dst], cpu_R[dc->dst], t, 4);
tcg_temp_free(t);
@@ -935,7 +935,7 @@ static int dec10_ind_bound(CPUCRISState *env, DisasContext
*dc,
int rd = dc->dst;
TCGv t;
- t = tcg_temp_local_new();
+ t = tcg_temp_new();
insn_len += dec10_prep_move_m(env, dc, 0, size, t);
cris_alu(dc, CC_OP_BOUND, cpu_R[dc->dst], cpu_R[rd], t, 4);
if (dc->dst == 15) {
--
2.34.1
- [PATCH v2 09/28] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr}, (continued)
- [PATCH v2 09/28] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr}, Richard Henderson, 2023/02/22
- [PATCH v2 10/28] tcg: Add tcg_gen_movi_ptr, Richard Henderson, 2023/02/22
- [PATCH v2 12/28] accel/tcg/plugin: Use tcg_temp_ebb_*, Richard Henderson, 2023/02/22
- [PATCH v2 13/28] accel/tcg/plugin: Tidy plugin_gen_disable_mem_helpers, Richard Henderson, 2023/02/22
- [PATCH v2 11/28] tcg: Use tcg_temp_ebb_new_* in tcg/, Richard Henderson, 2023/02/22
- [PATCH v2 14/28] tcg: Don't re-use TEMP_TB temporaries, Richard Henderson, 2023/02/22
- [PATCH v2 15/28] tcg: Change default temp lifetime to TEMP_TB, Richard Henderson, 2023/02/22
- [PATCH v2 16/28] target/arm: Drop copies in gen_sve_{ldr,str}, Richard Henderson, 2023/02/22
- [PATCH v2 17/28] target/arm: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/22
- [PATCH v2 18/28] target/cris: Don't use tcg_temp_local_new,
Richard Henderson <=
- [PATCH v2 21/28] target/i386: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/22
- [PATCH v2 20/28] target/hppa: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/22
- [PATCH v2 22/28] target/mips: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/22
- [PATCH v2 26/28] tcg: Remove tcg_temp_local_new_*, tcg_const_local_*, Richard Henderson, 2023/02/22
- [PATCH v2 23/28] target/ppc: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/22
- [PATCH v2 25/28] exec/gen-icount: Don't use tcg_temp_local_new_i32, Richard Henderson, 2023/02/22
- [PATCH v2 19/28] target/hexagon: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/22
- [PATCH v2 24/28] target/xtensa: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/22
- [PATCH v2 28/28] tcg: Use noinline for major tcg_gen_code_subroutines, Richard Henderson, 2023/02/22