Re: [RFC v5 06/68] target/riscv: rvv-1.0: add translation-time vector context status

2020-10-05 Thread Frank Chang
On Mon, Oct 5, 2020 at 10:00 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 10/5/20 2:12 AM, Frank Chang wrote: > > I think you want to be sharing the code between vsetvl and vsetvli > now. Just > > pass in a TCGv value to a common helper. > > > > > > The only

Re: [RFC v5 06/68] target/riscv: rvv-1.0: add translation-time vector context status

2020-10-05 Thread Richard Henderson
On 10/5/20 2:12 AM, Frank Chang wrote: > I think you want to be sharing the code between vsetvl and vsetvli now.  > Just > pass in a TCGv value to a common helper. > > > The only difference now between vsetvl and vsetvli is the format of zimm and > s2 > fields. > But they have

Re: [RFC v5 06/68] target/riscv: rvv-1.0: add translation-time vector context status

2020-10-05 Thread Frank Chang
On Sat, Oct 3, 2020 at 12:19 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 9/29/20 2:03 PM, frank.ch...@sifive.com wrote: > > +++ b/target/riscv/insn_trans/trans_rvv.c.inc > > @@ -41,6 +41,7 @@ static bool trans_vsetvl(DisasContext *ctx, arg_vsetvl > *a) > >

Re: [RFC v5 06/68] target/riscv: rvv-1.0: add translation-time vector context status

2020-10-02 Thread Richard Henderson
On 9/29/20 2:03 PM, frank.ch...@sifive.com wrote: > +++ b/target/riscv/insn_trans/trans_rvv.c.inc > @@ -41,6 +41,7 @@ static bool trans_vsetvl(DisasContext *ctx, arg_vsetvl *a) > gen_get_gpr(s2, a->rs2); > gen_helper_vsetvl(dst, cpu_env, s1, s2); > gen_set_gpr(a->rd, dst); > +

[RFC v5 06/68] target/riscv: rvv-1.0: add translation-time vector context status

2020-09-29 Thread frank . chang
From: Frank Chang Signed-off-by: LIU Zhiwei Signed-off-by: Frank Chang Reviewed-by: Richard Henderson --- target/riscv/insn_trans/trans_rvv.c.inc | 70 - target/riscv/translate.c| 33 2 files changed, 90 insertions(+), 13 deletions(-)