mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
target/riscv: Drop temp_new
Translators are no longer required to free tcg temporaries, therefore there's no need to record temps for later freeing. Replace the few uses with tcg_temp_new. 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
5d50945166
commit
574f31161e
2 changed files with 7 additions and 25 deletions
|
@ -51,7 +51,7 @@ static bool trans_flh(DisasContext *ctx, arg_flh *a)
|
|||
decode_save_opc(ctx);
|
||||
t0 = get_gpr(ctx, a->rs1, EXT_NONE);
|
||||
if (a->imm) {
|
||||
TCGv temp = temp_new(ctx);
|
||||
TCGv temp = tcg_temp_new();
|
||||
tcg_gen_addi_tl(temp, t0, a->imm);
|
||||
t0 = temp;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue