diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-02-26 09:15:34 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-05 13:46:13 -0800 |
commit | 2f668fabbc09f9fcf6c93b17c077a078130e057a (patch) | |
tree | 5e58883a42c38d260981032c0f774294e88b6209 /target/riscv/translate.c | |
parent | a5ea3dd7585f1d6d8c7fbb67be1fe1a45fd415fb (diff) | |
download | qemu-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/translate.c')
-rw-r--r-- | target/riscv/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/riscv/translate.c b/target/riscv/translate.c index 0485abb..9390920 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -201,8 +201,8 @@ static void gen_nanbox_h(TCGv_i64 out, TCGv_i64 in) */ static void gen_check_nanbox_h(TCGv_i64 out, TCGv_i64 in) { - TCGv_i64 t_max = tcg_const_i64(0xffffffffffff0000ull); - TCGv_i64 t_nan = tcg_const_i64(0xffffffffffff7e00ull); + TCGv_i64 t_max = tcg_constant_i64(0xffffffffffff0000ull); + TCGv_i64 t_nan = tcg_constant_i64(0xffffffffffff7e00ull); tcg_gen_movcond_i64(TCG_COND_GEU, out, in, t_max, in, t_nan); } |