[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:
Tom Roberts 2020-10-14 16:02:15 +01:00 committed by Tom Roberts
parent 1a9545baaf
commit dbd92c5d4b

View file

@ -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;