Skip to content

Commit 860d947

Browse files
committed
exccode width fix
Signed-off-by: Arjan Bink <[email protected]>
1 parent ba8c342 commit 860d947

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/user_manual/source/control_status_registers.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -848,14 +848,14 @@ Reset Value: 0x0000_0000
848848
+=============+============+==================================================================================+
849849
| 31 | RW | **INTERRUPT:** This bit is set when the exception was triggered by an interrupt. |
850850
+-------------+------------+----------------------------------------------------------------------------------+
851-
| 30:10 | WLRL (0x0) | **EXCCODE[30:10]**. Hardwired to 0. |
851+
| 30:11 | WLRL (0x0) | **EXCCODE[30:11]**. Hardwired to 0. |
852852
+-------------+------------+----------------------------------------------------------------------------------+
853-
| 9:0 | WLRL | **EXCCODE[30:10]** (See note below) |
853+
| 10:0 | WLRL | **EXCCODE[10:0]**. See note below. |
854854
+-------------+------------+----------------------------------------------------------------------------------+
855855

856856
.. note::
857857

858-
Software accesses to `mcause[7:0]` must be sensitive to the WLRL field specification of this CSR. For example,
858+
Software accesses to `mcause[10:0]` must be sensitive to the WLRL field specification of this CSR. For example,
859859
when `mcause[31]` is set, writing 0x1 to `mcause[1]` (Supervisor software interrupt) will result in UNDEFINED behavior.
860860

861861
Machine Cause (``mcause``) - ``SMCLIC`` == 1
@@ -883,9 +883,9 @@ Reset Value: 0x0000_0000
883883
+-------------+------------+----------------------------------------------------------------------------------+
884884
| 15:12 | WARL (0x0) | Reserved. Hardwired to 0. |
885885
+-------------+------------+----------------------------------------------------------------------------------+
886-
| 11:10 | WLRL (0x0) | **EXCCODE[11:10]** |
886+
| 11 | WLRL (0x0) | **EXCCODE[11]** |
887887
+-------------+------------+----------------------------------------------------------------------------------+
888-
| 9:0 | WLRL | **EXCCODE[9:0]** |
888+
| 10:0 | WLRL | **EXCCODE[10:0]** |
889889
+-------------+------------+----------------------------------------------------------------------------------+
890890

891891
.. note::

0 commit comments

Comments
 (0)