Re: [PATCH v4 2/4] target/riscv: configure and turn on vector extension from command line

2020-02-18 Thread Alistair Francis
On Tue, Feb 18, 2020 at 4:46 PM LIU Zhiwei wrote: > > Hi, Alistair > > On 2020/2/19 6:34, Alistair Francis wrote: > > On Mon, Feb 10, 2020 at 12:12 AM LIU Zhiwei wrote: > >> Vector extension is default on only for "any" cpu. It can be turned > >> on by command line "-cpu rv64,v=true,vlen=128,elen

Re: [PATCH v4 2/4] target/riscv: configure and turn on vector extension from command line

2020-02-18 Thread LIU Zhiwei
Hi, Alistair On 2020/2/19 6:34, Alistair Francis wrote: On Mon, Feb 10, 2020 at 12:12 AM LIU Zhiwei wrote: Vector extension is default on only for "any" cpu. It can be turned on by command line "-cpu rv64,v=true,vlen=128,elen=64,vext_spec=v0.7.1". vlen is the vector register length, default v

Re: [PATCH v4 2/4] target/riscv: configure and turn on vector extension from command line

2020-02-18 Thread Alistair Francis
On Mon, Feb 10, 2020 at 12:12 AM LIU Zhiwei wrote: > > Vector extension is default on only for "any" cpu. It can be turned > on by command line "-cpu rv64,v=true,vlen=128,elen=64,vext_spec=v0.7.1". > > vlen is the vector register length, default value is 128 bit. > elen is the max operator size in

Re: [PATCH v4 2/4] target/riscv: configure and turn on vector extension from command line

2020-02-11 Thread LIU Zhiwei
On 2020/2/11 23:56, Richard Henderson wrote: On 2/10/20 8:12 AM, LIU Zhiwei wrote: +if (cpu->cfg.vlen > RV_VLEN_MAX || cpu->cfg.vlen < 128) { +error_setg(errp, + "Vector extension implementation only supports VLEN " + "in

Re: [PATCH v4 2/4] target/riscv: configure and turn on vector extension from command line

2020-02-11 Thread Richard Henderson
On 2/10/20 8:12 AM, LIU Zhiwei wrote: > +if (cpu->cfg.vlen > RV_VLEN_MAX || cpu->cfg.vlen < 128) { > +error_setg(errp, > + "Vector extension implementation only supports VLEN " > + "in the range [128, %d]", RV_VLEN_MAX); > +

[PATCH v4 2/4] target/riscv: configure and turn on vector extension from command line

2020-02-10 Thread LIU Zhiwei
Vector extension is default on only for "any" cpu. It can be turned on by command line "-cpu rv64,v=true,vlen=128,elen=64,vext_spec=v0.7.1". vlen is the vector register length, default value is 128 bit. elen is the max operator size in bits, default value is 64 bit. vext_spec is the vector specifi