From d6a49e85c41b277e6bcabbd9e3f8b861a64e15ed Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 3 Dec 2020 09:48:19 +0100 Subject: [PATCH] integration/soc_core: only add IRQs from interrupt_map if SoC supports them. --- litex/soc/integration/soc_core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 936467e27..c6b4cf920 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -160,8 +160,9 @@ class SoCCore(LiteXSoC): reset_address = None if integrated_rom_size else cpu_reset_address) # Add User's interrupts - for name, loc in self.interrupt_map.items(): - self.irq.add(name, loc) + if self.irq.enabled: + for name, loc in self.interrupt_map.items(): + self.irq.add(name, loc) # Add integrated ROM if integrated_rom_size: