diff options
author | LIU Zhiwei | 2020-07-24 02:28:06 +0200 |
---|---|---|
committer | Alistair Francis | 2020-08-22 07:37:55 +0200 |
commit | 6e0229e63868b8b5bfcc54959cea227ed19f7bd3 (patch) | |
tree | ef22adf56c85db22424ac27c149cba71d456ab66 /target/riscv | |
parent | target/riscv: Check nanboxed inputs in trans_rvf.inc.c (diff) | |
download | qemu-6e0229e63868b8b5bfcc54959cea227ed19f7bd3.tar.gz qemu-6e0229e63868b8b5bfcc54959cea227ed19f7bd3.tar.xz qemu-6e0229e63868b8b5bfcc54959cea227ed19f7bd3.zip |
target/riscv: Clean up fmv.w.x
Use tcg_gen_extu_tl_i64 to avoid the ifdef.
Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200626205917.4545-7-zhiwei_liu@c-sky.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200724002807.441147-7-richard.henderson@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv')
-rw-r--r-- | target/riscv/insn_trans/trans_rvf.c.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/target/riscv/insn_trans/trans_rvf.c.inc b/target/riscv/insn_trans/trans_rvf.c.inc index 832f01db6f..138e317723 100644 --- a/target/riscv/insn_trans/trans_rvf.c.inc +++ b/target/riscv/insn_trans/trans_rvf.c.inc @@ -406,11 +406,7 @@ static bool trans_fmv_w_x(DisasContext *ctx, arg_fmv_w_x *a) TCGv t0 = tcg_temp_new(); gen_get_gpr(t0, a->rs1); -#if defined(TARGET_RISCV64) - tcg_gen_mov_i64(cpu_fpr[a->rd], t0); -#else - tcg_gen_extu_i32_i64(cpu_fpr[a->rd], t0); -#endif + tcg_gen_extu_tl_i64(cpu_fpr[a->rd], t0); gen_nanbox_s(cpu_fpr[a->rd], cpu_fpr[a->rd]); mark_fs_dirty(ctx); |