From: Florent Kermarrec Date: Wed, 15 May 2019 20:40:32 +0000 (+0200) Subject: software/include/base/csr-defs.h: add specific CSR_IRQ_MASK/PENDING for Minerva X-Git-Tag: 24jan2021_ls180~1210^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ea22d49b7d0b0b200c9599836458070c31a5d4b;p=litex.git software/include/base/csr-defs.h: add specific CSR_IRQ_MASK/PENDING for Minerva --- diff --git a/litex/soc/software/include/base/csr-defs.h b/litex/soc/software/include/base/csr-defs.h index d98e8dfb..75c8e043 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