sstatus
Supervisor Status
The sstatus register tracks and controls the hart’s current operating state.
All fields in sstatus are aliases of the same field in mstatus.
Attributes
Requirement |
|||
|---|---|---|---|
Defining extensions |
|
||
CSR Address |
0x100 |
||
Length |
* 32 when CSR[mstatus].SXL == 0 * 64 when CSR[mstatus].SXL == 1 |
||
Privilege Mode |
S |
Format
This CSR format changes dynamically.
Field Summary
| Name | Location | Type | Reset Value |
|---|---|---|---|
* 31 when CSR[mstatus].SXL == 0 * 63 when CSR[mstatus].SXL == 1 |
RO-H |
UNDEFINED_LEGAL |
|
33:32 |
RO |
2 |
|
19 |
RW |
UNDEFINED_LEGAL |
|
18 |
RW |
UNDEFINED_LEGAL |
|
16:15 |
RO |
UNDEFINED_LEGAL |
|
14:13 |
RW-H |
UNDEFINED_LEGAL |
|
10:9 |
RW-H |
UNDEFINED_LEGAL |
|
8 |
RW-H |
UNDEFINED_LEGAL |
|
6 |
RO |
UNDEFINED_LEGAL |
|
5 |
RW-H |
UNDEFINED_LEGAL |
|
1 |
RW-H |
UNDEFINED_LEGAL |
Fields
SD
- Location
-
-
31 when CSR[mstatus].SXL == 0
-
63 when CSR[mstatus].SXL == 1
-
- Description
-
State Dirty
Alias of mstatus.SD.
- Type
-
RO-H
- Reset value
-
UNDEFINED_LEGAL
MXR
- Location
-
19
- Description
-
Make eXecutable Readable
Alias of mstatus.MXR.
- Type
-
RW
- Reset value
-
UNDEFINED_LEGAL
SUM
- Location
-
18
- Description
-
permit Supervisor Memory Access
Alias of mstatus.SUM.
- Type
-
RW
- Reset value
-
UNDEFINED_LEGAL
XS
- Location
-
16:15
- Description
-
Custom (X) extension context Status.
Alias of mstatus.XS.
- Type
-
RO
- Reset value
-
UNDEFINED_LEGAL
FS
- Location
-
14:13
- Description
-
Floating point context status.
Alias of mstatus.FS.
- Type
-
RW-H
- Reset value
-
UNDEFINED_LEGAL
VS
- Location
-
10:9
- Description
-
Vector context status.
Alias of mstatus.VS.
- Type
-
RW-H
- Reset value
-
UNDEFINED_LEGAL
SPP
- Location
-
8
- Description
-
S-mode Previous Privilege
Alias of mstatus.SPP.
- Type
-
RW-H
- Reset value
-
UNDEFINED_LEGAL
SPIE
- Location
-
5
- Description
-
S-mode Previous Interrupt Enable
Alias of mstatus.SPIE.
- Type
-
RW-H
- Reset value
-
UNDEFINED_LEGAL
SIE
- Location
-
1
- Description
-
S-mode Interrupt Enable
Alias of mstatus.SIE.
- Type
-
RW-H
- Reset value
-
UNDEFINED_LEGAL