misa
ISA and extensions
- Address
0x301- Group
- Machine-level CSRs
- Privilege
MRW(privileged spec CSR listing, Machine Trap Setup)- Access
- read/write; lowest privilege M (machine)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Machine ISA Control
Privileged spec: ISA and extensions
Description
Reports the XLEN and "major" extensions supported by the ISA.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
MXL | RV32 31-30 / RV64 63-62 | RO | XLEN in M-mode. |
A | 0 | Indicates support for the | |
B | 1 | Indicates support for the | |
C | 2 | Indicates support for the Writing 0 to this field will cause all compressed instructions to raise an | |
D | 3 | Indicates support for the Writing 0 to this field will cause all double-precision floating point instructions to raise an Additionally, the upper 32-bits of the f registers will read as zero. | |
F | 5 | Indicates support for the Writing 0 to this field will cause all floating point (single and double precision) instructions to raise an Writing 0 to this field with | |
H | 7 | Indicates support for the Writing 0 to this field will cause all attempts to enter VS- or VU- mode, execute a hypervisor instruction, or access a hypervisor CSR to raise an | |
I | 8 | RO | Indicates support for the |
M | 12 | Indicates support for the Writing 0 to this field will cause all attempts to execute an integer divide or
remainder instruction to raise an | |
Q | 16 | Indicates support for the Writing 0 to this field will cause all quad-precision floating point instructions to raise an | |
S | 18 | Indicates support for the Writing 0 to this field will cause all attempts to enter S-mode or access S-mode state to raise an exception. | |
U | 20 | Indicates support for the Writing 0 to this field will cause all attempts to enter U-mode to raise an exception. | |
V | 21 | Indicates support for the Writing 0 to this field will cause all attempts to execute a vector instruction to raise an | |
X | 23 | RO | The |
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.
Specification and related pages
- The RISC-V Instruction Set Manual, Volume II: CSR listing (src/priv/csrs.adoc)
- riscv-opcodes csrs.csv
- riscv-unified-db: spec/std/isa/csr/misa.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)