Re: [PATCH] target/riscv/pmp.c: respect mseccfg.RLB for pmpaddrX changes

2023-09-03 Thread Alistair Francis
On Wed, Aug 30, 2023 at 7:50 AM wrote: > > From: Leon Schuermann > > When the rule-lock bypass (RLB) bit is set in the mseccfg CSR, the PMP > configuration lock bits must not apply. While this behavior is > implemented for the pmpcfgX CSRs, this bit is not respected for > changes to the pmpaddrX

Re: [PATCH] target/riscv/pmp.c: respect mseccfg.RLB for pmpaddrX changes

2023-09-03 Thread Alistair Francis
On Wed, Aug 30, 2023 at 7:50 AM wrote: > > From: Leon Schuermann > > When the rule-lock bypass (RLB) bit is set in the mseccfg CSR, the PMP > configuration lock bits must not apply. While this behavior is > implemented for the pmpcfgX CSRs, this bit is not respected for > changes to the pmpaddrX

Re: [PATCH] target/riscv/pmp.c: respect mseccfg.RLB for pmpaddrX changes

2023-09-01 Thread mchitale
On Tue, 2023-08-29 at 17:50 -0400, leon@is.currently.online wrote: > From: Leon Schuermann > > When the rule-lock bypass (RLB) bit is set in the mseccfg CSR, the > PMP > configuration lock bits must not apply. While this behavior is > implemented for the pmpcfgX CSRs, this bit is not respected

[PATCH] target/riscv/pmp.c: respect mseccfg.RLB for pmpaddrX changes

2023-08-29 Thread leon
From: Leon Schuermann When the rule-lock bypass (RLB) bit is set in the mseccfg CSR, the PMP configuration lock bits must not apply. While this behavior is implemented for the pmpcfgX CSRs, this bit is not respected for changes to the pmpaddrX CSRs. This patch ensures that pmpaddrX CSR writes