Re: [PATCH v8 58/62] target/riscv: floating-point scalar move instructions

2020-06-04 Thread LIU Zhiwei
On 2020/6/5 5:32, Richard Henderson wrote: On 5/21/20 2:44 AM, LIU Zhiwei wrote: +static bool trans_vfmv_f_s(DisasContext *s, arg_vfmv_f_s *a) +{ +if (!s->vill && has_ext(s, RVF) && +(s->mstatus_fs != 0) && (s->sew != 0)) { +unsigned int ofs = (8 << s->sew); +unsig

Re: [PATCH v8 58/62] target/riscv: floating-point scalar move instructions

2020-06-04 Thread Richard Henderson
On 5/21/20 2:44 AM, LIU Zhiwei wrote: > +static bool trans_vfmv_f_s(DisasContext *s, arg_vfmv_f_s *a) > +{ > +if (!s->vill && has_ext(s, RVF) && > +(s->mstatus_fs != 0) && (s->sew != 0)) { > +unsigned int ofs = (8 << s->sew); > +unsigned int len = 64 - ofs; > +TC