diff options
author | Leon Schuermann <leons@opentitan.org> | 2023-08-29 17:50:46 -0400 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-09-13 12:21:22 +0300 |
commit | b5fad36452586583858ddbbc2d085451cc79490a (patch) | |
tree | ea058ed0506eaed5825256ac62b0c44cd4d51948 /target/arm/helper-a64.c | |
parent | 7601c960b6d7f3dd0e3729c7d858e3ef8513e794 (diff) |
target/riscv/pmp.c: respect mseccfg.RLB for pmpaddrX changes
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 work even on locked regions when the global rule-lock bypass is
enabled.
Signed-off-by: Leon Schuermann <leons@opentitan.org>
Reviewed-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20230829215046.1430463-1-leon@is.currently.online>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
(cherry picked from commit 4e3adce1244e1ca30ec05874c3eca14911dc0825)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target/arm/helper-a64.c')
0 files changed, 0 insertions, 0 deletions