misa
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
MSmSummary
Reports the XLEN and "major" extensions supported by the ISA.
Syntax / Encoding
CSR 0x301 (M-mode, RW)
Bitfields (14)
| Bits | Field | Description |
|---|---|---|
63:62 | MXL | XLEN in M-mode. [RV32: 31:30, RV64: 63:62] |
23 | X | The X bit will be set if there are any non-standard extensions. |
21 | V | Indicates support for the V (vector) extension. [when,"MUTABLE_MISA_V == true"] Writing 0 to this field will cause all attempts to execute a vector instruction to raise an IllegalInstruction trap. |
20 | U | Indicates support for the U (user mode) extension. [when,"MUTABLE_MISA_U == true"] Writing 0 to this field will cause all attempts to enter U-mode to raise an exception. |
18 | S | Indicates support for the S (supervisor mode) extension. [when,"MUTABLE_MISA_S == true"] Writing 0 to this field will cause all attempts to enter S-mode or access S-mode state to raise an exception. |
16 | Q | Indicates support for the Q (quad precision float) extension. [when,"MUTABLE_MISA_Q == true"] -- Writing 0 to this field will cause all quad-precision floating point instructions to raise an IllegalInstruction exception. -- |
12 | M | Indicates support for the M (integer multiply/divide) extension. [when,"MUTABLE_MISA_M == true"] Writing 0 to this field will cause all attempts to execute an integer divide or remainder instruction to raise an IllegalInstruction exception. The multiply instructions are provided by Zmmul and are unaffected. |
8 | I | Indicates support for the I (base) extension. |
7 | H | Indicates support for the H (hypervisor) extension. [when,"MUTABLE_MISA_H == true"] 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 IllegalInstruction fault. |
5 | F | Indicates support for the F (single precision float) extension. [when,"MUTABLE_MISA_F == true"] -- Writing 0 to this field will cause all floating point (single and double precision) instructions to raise an IllegalInstruction exception. Writing 0 to this field with misa.D set will result in UNDEFINED behavior. -- |
3 | D | Indicates support for the D (double precision float) extension. [when,"MUTABLE_MISA_D == true"] -- Writing 0 to this field will cause all double-precision floating point instructions to raise an IllegalInstruction exception. Additionally, the upper 32-bits of the f registers will read as zero. -- |
2 | C | Indicates support for the C (compressed) extension. [when,"MUTABLE_MISA_C == true"] Writing 0 to this field will cause all compressed instructions to raise an IllegalInstruction exception. Additionally, IALIGN becomes 32. |
1 | B | Indicates support for the B (bitmanip) extension. |
0 | A | Indicates support for the A (atomic) extension. |