riscv
: All the CSR write operations should be unsafe by default
#209
Milestone
riscv
: All the CSR write operations should be unsafe by default
#209
In general we should assume that writing to CSRs could do something that potentially violates the Rust abstract model.
Macros like
write_csr_as
andwrite_csr_as_usize
should at least default tounsafe
, and maybe have an option to make a safe variant on a CSR by CSR basis.The text was updated successfully, but these errors were encountered: