mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -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
|
@ -161,9 +161,6 @@ static bool gen_sha256(DisasContext *ctx, arg_r2 *a, DisasExtend ext,
|
|||
tcg_gen_ext_i32_tl(dest, t1);
|
||||
|
||||
gen_set_gpr(ctx, a->rd, dest);
|
||||
tcg_temp_free_i32(t0);
|
||||
tcg_temp_free_i32(t1);
|
||||
tcg_temp_free_i32(t2);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -212,9 +209,6 @@ static bool gen_sha512_rv32(DisasContext *ctx, arg_r *a, DisasExtend ext,
|
|||
tcg_gen_trunc_i64_tl(dest, t1);
|
||||
|
||||
gen_set_gpr(ctx, a->rd, dest);
|
||||
tcg_temp_free_i64(t0);
|
||||
tcg_temp_free_i64(t1);
|
||||
tcg_temp_free_i64(t2);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -271,9 +265,6 @@ static bool gen_sha512h_rv32(DisasContext *ctx, arg_r *a, DisasExtend ext,
|
|||
tcg_gen_trunc_i64_tl(dest, t1);
|
||||
|
||||
gen_set_gpr(ctx, a->rd, dest);
|
||||
tcg_temp_free_i64(t0);
|
||||
tcg_temp_free_i64(t1);
|
||||
tcg_temp_free_i64(t2);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -310,9 +301,6 @@ static bool gen_sha512_rv64(DisasContext *ctx, arg_r2 *a, DisasExtend ext,
|
|||
tcg_gen_trunc_i64_tl(dest, t1);
|
||||
|
||||
gen_set_gpr(ctx, a->rd, dest);
|
||||
tcg_temp_free_i64(t0);
|
||||
tcg_temp_free_i64(t1);
|
||||
tcg_temp_free_i64(t2);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -359,9 +347,6 @@ static bool gen_sm3(DisasContext *ctx, arg_r2 *a, int32_t b, int32_t c)
|
|||
tcg_gen_xor_i32(t1, t1, t0);
|
||||
tcg_gen_ext_i32_tl(dest, t1);
|
||||
gen_set_gpr(ctx, a->rd, dest);
|
||||
|
||||
tcg_temp_free_i32(t0);
|
||||
tcg_temp_free_i32(t1);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue