aboutsummaryrefslogtreecommitdiff
path: root/target/riscv/insn_trans
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-02-26 09:15:34 -1000
committerRichard Henderson <richard.henderson@linaro.org>2023-03-05 13:46:13 -0800
commit2f668fabbc09f9fcf6c93b17c077a078130e057a (patch)
tree5e58883a42c38d260981032c0f774294e88b6209 /target/riscv/insn_trans
parenta5ea3dd7585f1d6d8c7fbb67be1fe1a45fd415fb (diff)
downloadqemu-2f668fabbc09f9fcf6c93b17c077a078130e057a.zip
qemu-2f668fabbc09f9fcf6c93b17c077a078130e057a.tar.gz
qemu-2f668fabbc09f9fcf6c93b17c077a078130e057a.tar.bz2
target/riscv: Avoid tcg_const_*
All uses are strictly read-only. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/riscv/insn_trans')
-rw-r--r--target/riscv/insn_trans/trans_rvv.c.inc4
-rw-r--r--target/riscv/insn_trans/trans_rvzfh.c.inc2
2 files changed, 3 insertions, 3 deletions
diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc
index fa3f16e..f2e3d38 100644
--- a/target/riscv/insn_trans/trans_rvv.c.inc
+++ b/target/riscv/insn_trans/trans_rvv.c.inc
@@ -209,8 +209,8 @@ static bool trans_vsetvli(DisasContext *s, arg_vsetvli *a)
static bool trans_vsetivli(DisasContext *s, arg_vsetivli *a)
{
- TCGv s1 = tcg_const_tl(a->rs1);
- TCGv s2 = tcg_const_tl(a->zimm);
+ TCGv s1 = tcg_constant_tl(a->rs1);
+ TCGv s2 = tcg_constant_tl(a->zimm);
return do_vsetivli(s, a->rd, s1, s2);
}
diff --git a/target/riscv/insn_trans/trans_rvzfh.c.inc b/target/riscv/insn_trans/trans_rvzfh.c.inc
index d2012c2..74dde37 100644
--- a/target/riscv/insn_trans/trans_rvzfh.c.inc
+++ b/target/riscv/insn_trans/trans_rvzfh.c.inc
@@ -299,7 +299,7 @@ static bool trans_fsgnjn_h(DisasContext *ctx, arg_fsgnjn_h *a)
* Replace bit 15 in rs1 with inverse in rs2.
* This formulation retains the nanboxing of rs1.
*/
- mask = tcg_const_i64(~MAKE_64BIT_MASK(15, 1));
+ mask = tcg_constant_i64(~MAKE_64BIT_MASK(15, 1));
tcg_gen_not_i64(rs2, rs2);
tcg_gen_andc_i64(rs2, rs2, mask);
tcg_gen_and_i64(dest, mask, rs1);