mireg5
Machine indirect register alias 5
- Address
0x356- Group
- Machine-level CSRs
- Privilege
MRW(privileged spec CSR listing, Machine Indirect)- Access
- read/write; lowest privilege M (machine)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Machine Indirect Register Alias 5
Privileged spec: Machine indirect register alias 5
Description
The mireg5 machine indirect alias CSR is used to access register state indirectly
upon a read or write, as determined by the value of miselect.
The behavior upon accessing mireg5 from M-mode, while miselect holds a value
that is not implemented, is UNSPECIFIED.
It is expected that implementations will typically raise an illegal instruction exception for such accesses, so that, for example, they can be identified as software bugs. Platform specs, profile specs, and/or the Privileged ISA spec may place more restrictions on behavior for such accesses.
Attempts to access mireg5 while miselect holds a number in an allocated and implemented
range results in a specific behavior that, for each combination of miselect and mireg5, is
defined by the extension to which the miselect value is allocated.
Ordinarily, mireg5 will access register state, access read-only 0 state, or raise an
illegal instruction exception.
For RV32, if an extension defines an indirectly accessed register as 64 bits wide, it is
recommended that the upper 32 bits of the register are accessed through mireg5,
while the lower 32 bits are accessed through mireg2.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
VALUE | RV32 31-0 / RV64 63-0 | RW | Indirectly Selected Register Value. Register state of the CSR selected by the current |
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.