riscv-qemu icon indicating copy to clipboard operation
riscv-qemu copied to clipboard

Generate illegal instruction traps for s* CSR accesses if misa.S is not set

Open michaeljclark opened this issue 6 years ago • 0 comments

misa.S indicates the machine supports S mode, and hence implements the s*CSRs, either returning the required values, or hard-coded to zero as specified.

However, if S-mode is not implemented, s* CSR accesses should generate illegal instruction traps.

michaeljclark avatar Apr 04 '18 01:04 michaeljclark