Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed mpie R/W attribute #481

Merged
merged 2 commits into from
Mar 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/user_manual/source/control_status_registers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ instruction exception.

.. only:: USER

.. table:: Control and Status Register Map (additional CSRs for User mode)
:name: Control and Status Register Map (additional CSRs for User mode)
.. table:: Control and Status Register Map (additional CSRs for User mode support)
:name: Control and Status Register Map (additional CSRs for User mode support)

+-------------------+----------------+------------+------------+----------------------------------------------------+
| CSR address | Name | Privilege | Parameter | Description |
+-------------------+----------------+------------+------------+----------------------------------------------------+
| User CSRs |
| Machine CSRs |
+===================+================+============+============+====================================================+
| 0x306 | ``mcounteren`` | MRW | | Machine Counter Enable |
+-------------------+----------------+------------+------------+----------------------------------------------------+
Expand Down Expand Up @@ -422,7 +422,7 @@ Reset Value: defined (based on `X_EXT``, ``X_ECS_XS``)
+-------------+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 8 | WARL (0x0) | **SPP**. Hardwired to 0. |
+-------------+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 7 | R | **MPIE**: When an exception is encountered, MPIE will be set to MIE. When the mret instruction is executed, the value of MPIE will be stored to MIE. |
| 7 | RW | **MPIE**: When an exception is encountered, MPIE will be set to MIE. When the mret instruction is executed, the value of MPIE will be stored to MIE. |
+-------------+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 6 | WARL (0x0) | **UBE**. Hardwired to 0. |
+-------------+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Expand Down Expand Up @@ -875,7 +875,7 @@ Reset Value: 0x0000_0000
+-------------+------------+----------------------------------------------------------------------------------+
| 29:28 | WARL (0x3) | **MPP:** Previous privilege mode. Same as ``mstatus.MPP`` |
+-------------+------------+----------------------------------------------------------------------------------+
| 27 | R | **MPIE:** Previous interrupt enable. Same as ``mstatus.MPIE`` |
| 27 | RW | **MPIE:** Previous interrupt enable. Same as ``mstatus.MPIE`` |
+-------------+------------+----------------------------------------------------------------------------------+
| 26:24 | RW | Reserved. Hardwired to 0. |
+-------------+------------+----------------------------------------------------------------------------------+
Expand Down