mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 21:57:11 -04:00
Hardwire the reserved bits of the PMPCFG CSR to 0 (#1368)
This commit is contained in:
commit
de986ed17f
1 changed files with 3 additions and 0 deletions
|
@ -908,6 +908,9 @@ module csr_regfile import ariane_pkg::*; #(
|
|||
// hardwired extension registers
|
||||
mstatus_d.sd = (mstatus_q.xs == riscv::Dirty) | (mstatus_q.fs == riscv::Dirty);
|
||||
|
||||
// reserve PMPCFG bits 5 and 6 (hardwire to 0)
|
||||
for (int i = 0; i < NrPMPEntries; i++) pmpcfg_d[i].reserved = 2'b0;
|
||||
|
||||
// write the floating point status register
|
||||
if (csr_write_fflags_i) begin
|
||||
fcsr_d.fflags = csr_wdata_i[4:0] | fcsr_q.fflags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue