Re: [PATCH v4 0/3] RISC-V: Populate mtval and stval

2022-01-06 Thread Alistair Francis
On Mon, Dec 20, 2021 at 4:49 PM Alistair Francis wrote: > > From: Alistair Francis > > Populate mtval and stval when taking an illegal instruction exception. > > The RISC-V spec states that "The stval register can optionally also be > used to return the faulting instruction bits on an illegal ins

[PATCH v4 0/3] RISC-V: Populate mtval and stval

2021-12-20 Thread Alistair Francis
From: Alistair Francis Populate mtval and stval when taking an illegal instruction exception. The RISC-V spec states that "The stval register can optionally also be used to return the faulting instruction bits on an illegal instruction exception...". In this case we are always writing the value