mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-20 12:17:19 -04:00
Fix PMP CSR locked behavior (#2015)
This commit is contained in:
parent
4f73867fce
commit
90d780eb14
1 changed files with 1 additions and 1 deletions
|
@ -1524,7 +1524,7 @@ module csr_regfile
|
|||
// index is specified by the last byte in the address
|
||||
automatic logic [3:0] index = csr_addr.csr_decode.address[3:0];
|
||||
// check if the entry or the entry above is locked
|
||||
if (!pmpcfg_q[index].locked && !(pmpcfg_q[index+1].locked && pmpcfg_q[index].addr_mode == riscv::TOR)) begin
|
||||
if (!pmpcfg_q[index].locked && !(pmpcfg_q[index+1].locked && pmpcfg_q[index+1].addr_mode == riscv::TOR)) begin
|
||||
pmpaddr_d[index] = csr_wdata[CVA6Cfg.PLEN-3:0];
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue