Machine Status High
The mstatus register tracks and controls the hart's current operating state.
| 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| — | MDT | MPELP | — | MPV | GVA | MBE | SBE | — | |||||||||||||||||||||||
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [10] | MDT | mstatus.MDT | see `mstatus.MDT` | RW-H | 1 |
| [9] | MPELP | mstatus.MPELP | see `mstatus.MPELP` | RW-H | UNDEFINED_LEGAL |
| [7] | MPV | mstatus.MPV | see `mstatus.MPV` | RW-H | UNDEFINED_LEGAL |
| [6] | GVA | mstatus.GVA | see `mstatus.GVA` | RW-H | 0 |
| [5] | MBE | mstatus.MBE | see `mstatus.MBE` | return (M_MODE_ENDIANNESS == "dynamic") ? CsrFieldType::RW : CsrFieldType::RO; | return (M_MODE_ENDIANNESS == "big") ? 1 : 0; |
| [4] | SBE | mstatus.SBE | see `mstatus.SBE` | return (S_MODE_ENDIANNESS == "dynamic") ? CsrFieldType::RW : CsrFieldType::RO; | if (S_MODE_ENDIANNESS == "little") {
return 0;
} else if (S_MODE_ENDIANNESS == "big") {
return 1;
} else {
return UNDEFINED_LEGAL;
} |
Version af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.