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

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

2020-05-21 Thread LIU Zhiwei
Signed-off-by: LIU Zhiwei --- target/riscv/insn32.decode | 2 + target/riscv/insn_trans/trans_rvv.inc.c | 54 + 2 files changed, 56 insertions(+) diff --git a/target/riscv/insn32.decode b/target/riscv/insn32.decode index 0741a25540..79f9b37b29 100644 --- a/t