Re: [PATCH v1] target/riscv: fix pmp implementation

2020-07-13 Thread Alistair Francis
On Mon, Jul 13, 2020 at 3:10 AM Alexandre Mergnat wrote: > > Le ven. 10 juil. 2020 à 22:35, Alistair Francis a > écrit : > > > > On Mon, Jul 6, 2020 at 2:45 AM Alexandre Mergnat > > wrote: > > > > > > The end address calculation for NA4 mode is wrong because the address > > > used isn't shifte

Re: [PATCH v1] target/riscv: fix pmp implementation

2020-07-13 Thread Alexandre Mergnat
Le ven. 10 juil. 2020 à 22:35, Alistair Francis a écrit : > > On Mon, Jul 6, 2020 at 2:45 AM Alexandre Mergnat > wrote: > > > > The end address calculation for NA4 mode is wrong because the address > > used isn't shifted. > > > > That imply all NA4 setup are not applied by the PMP. > > I'm not s

Re: [PATCH v1] target/riscv: fix pmp implementation

2020-07-10 Thread Alistair Francis
On Mon, Jul 6, 2020 at 2:45 AM Alexandre Mergnat wrote: > > The end address calculation for NA4 mode is wrong because the address > used isn't shifted. > > That imply all NA4 setup are not applied by the PMP. I'm not sure what you mean here, can you clarify this? > > The solution is to use the s

[PATCH v1] target/riscv: fix pmp implementation

2020-07-06 Thread Alexandre Mergnat
The end address calculation for NA4 mode is wrong because the address used isn't shifted. That imply all NA4 setup are not applied by the PMP. The solution is to use the shifted address calculated for start address variable. Modifications are tested on Zephyr OS userspace test suite which works