1 pub const CSR_SSTATUS: usize = 0x100; 2 pub const CSR_SSCRATCH: usize = 0x140; 3 pub const CSR_SEPC: usize = 0x141; 4 pub const CSR_SCAUSE: usize = 0x142; 5 pub const CSR_STVAL: usize = 0x143; 6 7 // === Status register flags === 8 9 /// Previously Supervisor 10 pub const SR_SPP: usize = 0x00000100; 11 /// Supervisor User Memory Access 12 pub const SR_SUM: usize = 0x00040000; 13 14 /// Floating-Point Status 15 pub const SR_FS: usize = 0x00006000; 16 /// Vector status 17 pub const SR_VS: usize = 0x00000600; 18 19 /// Vector and Floating-Point Unit 20 pub const SR_FS_VS: usize = SR_FS | SR_VS; 21