Added supervisor level ids
This commit is contained in:
parent
6c5e3fcc32
commit
a76c9e5e5c
@ -4,6 +4,24 @@
|
||||
/* ZICSR : Control and Status Registers */
|
||||
#define CSR_COUNT 0x2000
|
||||
|
||||
/* Supervisor-level CSR */
|
||||
/* Supervisor Trap setup CSR */
|
||||
#define CSR_SSTATUS 0x100
|
||||
#define CSR_SIE 0x104
|
||||
#define CSR_STVEC 0x105
|
||||
#define CSR_SCOUNTEREN 0x106
|
||||
#define CSR_SENVCFG 0x10A
|
||||
/* Supervisor Trap handling CSR */
|
||||
#define CSR_SSCRATCH 0x140
|
||||
#define CSR_SEPC 0x141
|
||||
#define CSR_SCAUSE 0x142
|
||||
#define CSR_STVAL 0x143
|
||||
#define CSR_SIP 0x144
|
||||
/* Supervisor Protection/Translation CSR */
|
||||
#define CSR_SATP 0x180
|
||||
/* Debug/Trace CSR */
|
||||
#define CSR_SCONTEXT 0x5A8
|
||||
|
||||
/* Machine-level CSR */
|
||||
#define CSR_MVENDORID 0xF11
|
||||
#define CSR_MARCHID 0xF12
|
||||
|
Loading…
Reference in New Issue
Block a user