Re: [PATCH v2] target/riscv: pmp: Clear pmp/smepmp bits on reset

2023-10-22 Thread Alistair Francis
On Thu, Oct 19, 2023 at 4:57 PM Mayuresh Chitale wrote: > > As per the Priv and Smepmp specifications, certain bits such as the 'L' > bit of pmp entries and mseccfg.MML can only be cleared upon reset and it > is necessary to do so to allow 'M' mode firmware to correctly reinitialize > the pmp/smpe

Re: [PATCH v2] target/riscv: pmp: Clear pmp/smepmp bits on reset

2023-10-22 Thread Alistair Francis
On Thu, Oct 19, 2023 at 4:57 PM Mayuresh Chitale wrote: > > As per the Priv and Smepmp specifications, certain bits such as the 'L' > bit of pmp entries and mseccfg.MML can only be cleared upon reset and it > is necessary to do so to allow 'M' mode firmware to correctly reinitialize > the pmp/smpe

[PATCH v2] target/riscv: pmp: Clear pmp/smepmp bits on reset

2023-10-18 Thread Mayuresh Chitale
As per the Priv and Smepmp specifications, certain bits such as the 'L' bit of pmp entries and mseccfg.MML can only be cleared upon reset and it is necessary to do so to allow 'M' mode firmware to correctly reinitialize the pmp/smpemp state across reboots. As required by the spec, also clear the 'A