mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 21:17:59 -04:00
[rtl] Fix illegal write to DCSR cause field
- This field is read-only to software, and so should retain its previous value on a write. This fixes #1134. Signed-off-by: Tom Roberts <tomroberts@lowrisc.org>
This commit is contained in:
parent
1a9545baaf
commit
dbd92c5d4b
1 changed files with 3 additions and 0 deletions
|
@ -532,6 +532,9 @@ module ibex_cs_registers #(
|
|||
dcsr_d.prv = PRIV_LVL_M;
|
||||
end
|
||||
|
||||
// Read-only for SW
|
||||
dcsr_d.cause = dcsr_q.cause;
|
||||
|
||||
// currently not supported:
|
||||
dcsr_d.nmip = 1'b0;
|
||||
dcsr_d.mprven = 1'b0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue