Re: [PATCH v2] target/riscv: fix wfi exception behavior

2021-05-05 Thread Alistair Francis
On Wed, Apr 21, 2021 at 7:37 AM Jose Martins wrote: > > The wfi exception trigger behavior should take into account user mode, > hstatus.vtw, and the fact the an wfi might raise different types of > exceptions depending on various factors: > > If supervisor mode is not present: > > - an illegal in

Re: [PATCH v2] target/riscv: fix wfi exception behavior

2021-04-26 Thread Alistair Francis
On Wed, Apr 21, 2021 at 7:37 AM Jose Martins wrote: > > The wfi exception trigger behavior should take into account user mode, > hstatus.vtw, and the fact the an wfi might raise different types of > exceptions depending on various factors: > > If supervisor mode is not present: > > - an illegal in

[PATCH v2] target/riscv: fix wfi exception behavior

2021-04-20 Thread Jose Martins
The wfi exception trigger behavior should take into account user mode, hstatus.vtw, and the fact the an wfi might raise different types of exceptions depending on various factors: If supervisor mode is not present: - an illegal instruction exception should be generated if user mode executes and w