software/include/base/csr-defs.h: add specific CSR_IRQ_MASK/PENDING for Minerva

This commit is contained in:
Florent Kermarrec 2019-05-15 22:40:32 +02:00
parent f25707012f
commit 1ea22d49b7
1 changed files with 7 additions and 0 deletions

View File

@ -3,8 +3,15 @@
#define CSR_MSTATUS_MIE 0x8
#if defined (__vexriscv__)
#define CSR_IRQ_MASK 0xBC0
#define CSR_IRQ_PENDING 0xFC0
#endif
#if defined (__minerva__)
#define CSR_IRQ_MASK 0x330
#define CSR_IRQ_PENDING 0x360
#endif
#define CSR_DCACHE_INFO 0xCC0