riscv

Macro read_csr_as_rv32

source
macro_rules! read_csr_as_rv32 {
    ($register:ident, $csr_number:literal) => { ... };
}
Expand description

RV32: Convenience macro to read a CSR register value as a register type.

The register type must be a defined type in scope of the macro call.