From 1ea22d49b7d0b0b200c9599836458070c31a5d4b Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 15 May 2019 22:40:32 +0200 Subject: [PATCH] software/include/base/csr-defs.h: add specific CSR_IRQ_MASK/PENDING for Minerva --- litex/soc/software/include/base/csr-defs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/litex/soc/software/include/base/csr-defs.h b/litex/soc/software/include/base/csr-defs.h index d98e8dfb7..75c8e043d 100644 --- a/litex/soc/software/include/base/csr-defs.h +++ b/litex/soc/software/include/base/csr-defs.h @@ -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