Skip to main content

handle_csr_write

Function handle_csr_write 

Source
pub fn handle_csr_write(ram: &[u8], ram_size: u32, csrno: u32, value: u32)
Expand description

Handle a write to an unrecognized CSR number.

The standard CSRs are handled directly in the decode loop. This function covers the custom debug CSRs (0x1360x139) that the original mini-rv32ima added for bare-metal printf-style debugging without a UART driver.