mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-22 19:55:45 +00:00
target/riscv: Clean up fmv.w.x
Use tcg_gen_extu_tl_i64 to avoid the ifdef. Backports 6e0229e63868b8b5bfcc54959cea227ed19f7bd3
This commit is contained in:
parent
3af34d3df4
commit
8fe29be764
|
@ -454,11 +454,7 @@ static bool trans_fmv_w_x(DisasContext *ctx, arg_fmv_w_x *a)
|
|||
TCGv t0 = tcg_temp_new(tcg_ctx);
|
||||
gen_get_gpr(ctx, t0, a->rs1);
|
||||
|
||||
#if defined(TARGET_RISCV64)
|
||||
tcg_gen_mov_i64(tcg_ctx, tcg_ctx->cpu_fpr_risc[a->rd], t0);
|
||||
#else
|
||||
tcg_gen_extu_i32_i64(tcg_ctx, tcg_ctx->cpu_fpr_risc[a->rd], t0);
|
||||
#endif
|
||||
tcg_gen_extu_tl_i64(tcg_ctx, tcg_ctx->cpu_fpr_risc[a->rd], t0);
|
||||
gen_nanbox_s(ctx, tcg_ctx->cpu_fpr_risc[a->rd], tcg_ctx->cpu_fpr_risc[a->rd]);
|
||||
|
||||
mark_fs_dirty(ctx);
|
||||
|
|
Loading…
Reference in a new issue