Webcentive RISC-V Reference

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

FieldBitsTypeDescription
MXLRV32 31-30 / RV64 63-62RO

XLEN in M-mode.

A0

Indicates support for the A (atomic) extension.

B1

Indicates support for the B (bitmanip) extension.

C2

Indicates support for the C (compressed) extension.

Writing 0 to this field will cause all compressed instructions to raise an IllegalInstruction exception. Additionally, IALIGN becomes 32.

D3

Indicates support for the D (double precision float) extension.

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.

F5

Indicates support for the F (single precision float) extension.

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.

H7

Indicates support for the H (hypervisor) extension.

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.

I8RO

Indicates support for the I (base) extension.

M12

Indicates support for the M (integer multiply/divide) extension.

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.

Q16

Indicates support for the Q (quad precision float) extension.

Writing 0 to this field will cause all quad-precision floating point instructions to raise an IllegalInstruction exception.

S18

Indicates support for the S (supervisor mode) extension.

Writing 0 to this field will cause all attempts to enter S-mode or access S-mode state to raise an exception.

U20

Indicates support for the U (user mode) extension.

Writing 0 to this field will cause all attempts to enter U-mode to raise an exception.

V21

Indicates support for the V (vector) extension.

Writing 0 to this field will cause all attempts to execute a vector instruction to raise an IllegalInstruction trap.

X23RO

The X bit will be set if there are any non-standard extensions.

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages