csr_regfile.sv: if no U-mode, mstatus.tw is read-only 0 (fix #2228) (#2233)

This commit is contained in:
André Sintzoff 2024-06-11 15:08:28 +02:00 committed by GitHub
parent 91871d97f3
commit 546a8c26da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1280,6 +1280,7 @@ module csr_regfile
mstatus_d.tsr = riscv::Off;
end
if (!CVA6Cfg.RVU) begin
mstatus_d.tw = riscv::Off;
mstatus_d.mprv = riscv::Off;
end
// If h-extension is not enabled, priv level HS is reserved