software/include/base/csr-defs.h: add specific CSR_IRQ_MASK/PENDING for Minerva
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 15 May 2019 20:40:32 +0000 (22:40 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 15 May 2019 20:40:32 +0000 (22:40 +0200)
litex/soc/software/include/base/csr-defs.h

index d98e8dfb7b09cbbd8ba10f7a0e89bf72e60a4ab7..75c8e043d8ff2918cc7db3292a82f74602e76258 100644 (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