On Wed, Jan 17, 2024 at 8:17 AM Daniel Henrique Barboza <dbarb...@ventanamicro.com> wrote: > > Use ctx->cfg_ptr->vlenb instead of ctx->cfg_ptr->vlen / 8. > > Signed-off-by: Daniel Henrique Barboza <dbarb...@ventanamicro.com> > Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
Reviewed-by: Alistair Francis <alistair.fran...@wdc.com> Alistair > --- > target/riscv/insn_trans/trans_rvbf16.c.inc | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/target/riscv/insn_trans/trans_rvbf16.c.inc > b/target/riscv/insn_trans/trans_rvbf16.c.inc > index 4e39c00884..8ee99df3f3 100644 > --- a/target/riscv/insn_trans/trans_rvbf16.c.inc > +++ b/target/riscv/insn_trans/trans_rvbf16.c.inc > @@ -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); > -- > 2.43.0 > >