Re: [PATCH] target/riscv: fix vs() to return proper error code

2021-03-08 Thread Alistair Francis
On Tue, Feb 23, 2021 at 1:46 PM Richard Henderson wrote: > > On 2/22/21 10:59 PM, frank.ch...@sifive.com wrote: > > From: Frank Chang > > > > vs() should return -RISCV_EXCP_ILLEGAL_INST instead of -1 if rvv feature > > is not enabled. > > > > If -1 is returned, exception will be raised and cs->ex

Re: [PATCH] target/riscv: fix vs() to return proper error code

2021-02-23 Thread Richard Henderson
On 2/22/21 10:59 PM, frank.ch...@sifive.com wrote: > From: Frank Chang > > vs() should return -RISCV_EXCP_ILLEGAL_INST instead of -1 if rvv feature > is not enabled. > > If -1 is returned, exception will be raised and cs->exception_index will > be set to the negative return value. The exception