TCGv_i64 rd = cpu_fpr[a->rd];
TCGv addr = get_th_address_indexed(ctx, a->rs1, a->rs2, a->imm2, zext_offs);
+ memop |= MO_TE;
tcg_gen_qemu_ld_i64(rd, addr, ctx->mem_idx, memop);
if ((memop & MO_SIZE) == MO_32) {
gen_nanbox_s(rd, rd);
TCGv_i64 rd = cpu_fpr[a->rd];
TCGv addr = get_th_address_indexed(ctx, a->rs1, a->rs2, a->imm2, zext_offs);
+ memop |= MO_TE;
tcg_gen_qemu_st_i64(rd, addr, ctx->mem_idx, memop);
return true;
REQUIRE_XTHEADFMEMIDX(ctx);
REQUIRE_FPU;
REQUIRE_EXT(ctx, RVD);
- return gen_fload_idx(ctx, a, MO_TE | MO_UQ, false);
+ return gen_fload_idx(ctx, a, MO_UQ, false);
}
static bool trans_th_flrw(DisasContext *ctx, arg_th_memidx *a)
REQUIRE_XTHEADFMEMIDX(ctx);
REQUIRE_FPU;
REQUIRE_EXT(ctx, RVF);
- return gen_fload_idx(ctx, a, MO_TE | MO_UL, false);
+ return gen_fload_idx(ctx, a, MO_UL, false);
}
static bool trans_th_flurd(DisasContext *ctx, arg_th_memidx *a)
REQUIRE_XTHEADFMEMIDX(ctx);
REQUIRE_FPU;
REQUIRE_EXT(ctx, RVD);
- return gen_fload_idx(ctx, a, MO_TE | MO_UQ, true);
+ return gen_fload_idx(ctx, a, MO_UQ, true);
}
static bool trans_th_flurw(DisasContext *ctx, arg_th_memidx *a)
REQUIRE_XTHEADFMEMIDX(ctx);
REQUIRE_FPU;
REQUIRE_EXT(ctx, RVF);
- return gen_fload_idx(ctx, a, MO_TE | MO_UL, true);
+ return gen_fload_idx(ctx, a, MO_UL, true);
}
static bool trans_th_fsrd(DisasContext *ctx, arg_th_memidx *a)
REQUIRE_XTHEADFMEMIDX(ctx);
REQUIRE_FPU;
REQUIRE_EXT(ctx, RVD);
- return gen_fstore_idx(ctx, a, MO_TE | MO_UQ, false);
+ return gen_fstore_idx(ctx, a, MO_UQ, false);
}
static bool trans_th_fsrw(DisasContext *ctx, arg_th_memidx *a)
REQUIRE_XTHEADFMEMIDX(ctx);
REQUIRE_FPU;
REQUIRE_EXT(ctx, RVF);
- return gen_fstore_idx(ctx, a, MO_TE | MO_UL, false);
+ return gen_fstore_idx(ctx, a, MO_UL, false);
}
static bool trans_th_fsurd(DisasContext *ctx, arg_th_memidx *a)
REQUIRE_XTHEADFMEMIDX(ctx);
REQUIRE_FPU;
REQUIRE_EXT(ctx, RVD);
- return gen_fstore_idx(ctx, a, MO_TE | MO_UQ, true);
+ return gen_fstore_idx(ctx, a, MO_UQ, true);
}
static bool trans_th_fsurw(DisasContext *ctx, arg_th_memidx *a)
REQUIRE_XTHEADFMEMIDX(ctx);
REQUIRE_FPU;
REQUIRE_EXT(ctx, RVF);
- return gen_fstore_idx(ctx, a, MO_TE | MO_UL, true);
+ return gen_fstore_idx(ctx, a, MO_UL, true);
}
/* XTheadFmv */