mirror of https://github.com/xemu-project/xemu.git
target/riscv/insn_trans/trans_rvbf16.c.inc: use cpu->cfg.vlenb
Use ctx->cfg_ptr->vlenb instead of ctx->cfg_ptr->vlen / 8. Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20240122161107.26737-5-dbarboza@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
7cb59921c0
commit
33383193c8
|
@ -83,8 +83,8 @@ static bool trans_vfncvtbf16_f_f_w(DisasContext *ctx, arg_vfncvtbf16_f_f_w *a)
|
|||
data = FIELD_DP32(data, VDATA, VMA, ctx->vma);
|
||||
tcg_gen_gvec_3_ptr(vreg_ofs(ctx, a->rd), vreg_ofs(ctx, 0),
|
||||
vreg_ofs(ctx, a->rs2), tcg_env,
|
||||
ctx->cfg_ptr->vlen / 8,
|
||||
ctx->cfg_ptr->vlen / 8, data,
|
||||
ctx->cfg_ptr->vlenb,
|
||||
ctx->cfg_ptr->vlenb, data,
|
||||
gen_helper_vfncvtbf16_f_f_w);
|
||||
mark_vs_dirty(ctx);
|
||||
gen_set_label(over);
|
||||
|
@ -112,8 +112,8 @@ static bool trans_vfwcvtbf16_f_f_v(DisasContext *ctx, arg_vfwcvtbf16_f_f_v *a)
|
|||
data = FIELD_DP32(data, VDATA, VMA, ctx->vma);
|
||||
tcg_gen_gvec_3_ptr(vreg_ofs(ctx, a->rd), vreg_ofs(ctx, 0),
|
||||
vreg_ofs(ctx, a->rs2), tcg_env,
|
||||
ctx->cfg_ptr->vlen / 8,
|
||||
ctx->cfg_ptr->vlen / 8, data,
|
||||
ctx->cfg_ptr->vlenb,
|
||||
ctx->cfg_ptr->vlenb, data,
|
||||
gen_helper_vfwcvtbf16_f_f_v);
|
||||
mark_vs_dirty(ctx);
|
||||
gen_set_label(over);
|
||||
|
@ -143,8 +143,8 @@ static bool trans_vfwmaccbf16_vv(DisasContext *ctx, arg_vfwmaccbf16_vv *a)
|
|||
tcg_gen_gvec_4_ptr(vreg_ofs(ctx, a->rd), vreg_ofs(ctx, 0),
|
||||
vreg_ofs(ctx, a->rs1),
|
||||
vreg_ofs(ctx, a->rs2), tcg_env,
|
||||
ctx->cfg_ptr->vlen / 8,
|
||||
ctx->cfg_ptr->vlen / 8, data,
|
||||
ctx->cfg_ptr->vlenb,
|
||||
ctx->cfg_ptr->vlenb, data,
|
||||
gen_helper_vfwmaccbf16_vv);
|
||||
mark_vs_dirty(ctx);
|
||||
gen_set_label(over);
|
||||
|
|
Loading…
Reference in New Issue