mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
target/riscv: Drop tcg_temp_free
Translators are no longer required to free tcg temporaries. Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
574f31161e
commit
f43442961e
10 changed files with 1 additions and 215 deletions
|
@ -62,7 +62,6 @@ static bool trans_jalr(DisasContext *ctx, arg_jalr *a)
|
|||
misaligned = gen_new_label();
|
||||
tcg_gen_andi_tl(t0, cpu_pc, 0x2);
|
||||
tcg_gen_brcondi_tl(TCG_COND_NE, t0, 0x0, misaligned);
|
||||
tcg_temp_free(t0);
|
||||
}
|
||||
|
||||
gen_set_gpri(ctx, a->rd, ctx->pc_succ_insn);
|
||||
|
@ -108,8 +107,6 @@ static TCGCond gen_compare_i128(bool bz, TCGv rl,
|
|||
tcg_gen_xor_tl(tmp, ah, bh);
|
||||
tcg_gen_and_tl(rl, rl, tmp);
|
||||
tcg_gen_xor_tl(rl, rh, rl);
|
||||
|
||||
tcg_temp_free(tmp);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -128,8 +125,6 @@ static TCGCond gen_compare_i128(bool bz, TCGv rl,
|
|||
/* seed third word with 1, which will be result */
|
||||
tcg_gen_sub2_tl(tmp, rh, ah, one, tmp, zero);
|
||||
tcg_gen_sub2_tl(tmp, rl, tmp, rh, bh, zero);
|
||||
|
||||
tcg_temp_free(tmp);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -140,8 +135,6 @@ static TCGCond gen_compare_i128(bool bz, TCGv rl,
|
|||
if (invert) {
|
||||
cond = tcg_invert_cond(cond);
|
||||
}
|
||||
|
||||
tcg_temp_free(rh);
|
||||
return cond;
|
||||
}
|
||||
|
||||
|
@ -169,8 +162,6 @@ static bool gen_branch(DisasContext *ctx, arg_b *a, TCGCond cond)
|
|||
cond = gen_compare_i128(a->rs2 == 0,
|
||||
tmp, src1, src1h, src2, src2h, cond);
|
||||
tcg_gen_brcondi_tl(cond, tmp, 0, l);
|
||||
|
||||
tcg_temp_free(tmp);
|
||||
} else {
|
||||
tcg_gen_brcond_tl(cond, src1, src2, l);
|
||||
}
|
||||
|
@ -254,8 +245,6 @@ static bool gen_load_i128(DisasContext *ctx, arg_lb *a, MemOp memop)
|
|||
}
|
||||
|
||||
gen_set_gpr128(ctx, a->rd, destl, desth);
|
||||
|
||||
tcg_temp_free(addrl);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -344,8 +333,6 @@ static bool gen_store_i128(DisasContext *ctx, arg_sb *a, MemOp memop)
|
|||
tcg_gen_addi_tl(addrl, addrl, 8);
|
||||
tcg_gen_qemu_st_tl(src2h, addrl, ctx->mem_idx, MO_TEUQ);
|
||||
}
|
||||
|
||||
tcg_temp_free(addrl);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -568,14 +555,6 @@ static void gen_sll_i128(TCGv destl, TCGv desth,
|
|||
|
||||
tcg_gen_movcond_tl(TCG_COND_NE, destl, hs, zero, zero, ll);
|
||||
tcg_gen_movcond_tl(TCG_COND_NE, desth, hs, zero, ll, h1);
|
||||
|
||||
tcg_temp_free(ls);
|
||||
tcg_temp_free(rs);
|
||||
tcg_temp_free(hs);
|
||||
tcg_temp_free(ll);
|
||||
tcg_temp_free(lr);
|
||||
tcg_temp_free(h0);
|
||||
tcg_temp_free(h1);
|
||||
}
|
||||
|
||||
static bool trans_sll(DisasContext *ctx, arg_sll *a)
|
||||
|
@ -618,14 +597,6 @@ static void gen_srl_i128(TCGv destl, TCGv desth,
|
|||
|
||||
tcg_gen_movcond_tl(TCG_COND_NE, destl, hs, zero, h1, h0);
|
||||
tcg_gen_movcond_tl(TCG_COND_NE, desth, hs, zero, zero, h1);
|
||||
|
||||
tcg_temp_free(ls);
|
||||
tcg_temp_free(rs);
|
||||
tcg_temp_free(hs);
|
||||
tcg_temp_free(ll);
|
||||
tcg_temp_free(lr);
|
||||
tcg_temp_free(h0);
|
||||
tcg_temp_free(h1);
|
||||
}
|
||||
|
||||
static bool trans_srl(DisasContext *ctx, arg_srl *a)
|
||||
|
@ -659,14 +630,6 @@ static void gen_sra_i128(TCGv destl, TCGv desth,
|
|||
|
||||
tcg_gen_movcond_tl(TCG_COND_NE, destl, hs, zero, h1, h0);
|
||||
tcg_gen_movcond_tl(TCG_COND_NE, desth, hs, zero, lr, h1);
|
||||
|
||||
tcg_temp_free(ls);
|
||||
tcg_temp_free(rs);
|
||||
tcg_temp_free(hs);
|
||||
tcg_temp_free(ll);
|
||||
tcg_temp_free(lr);
|
||||
tcg_temp_free(h0);
|
||||
tcg_temp_free(h1);
|
||||
}
|
||||
|
||||
static bool trans_sra(DisasContext *ctx, arg_sra *a)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue