integration/soc_core: only add IRQs from interrupt_map if SoC supports them.

This commit is contained in:
Florent Kermarrec 2020-12-03 09:48:19 +01:00
parent 42e7b8d35a
commit d6a49e85c4
1 changed files with 3 additions and 2 deletions

View File

@ -160,6 +160,7 @@ class SoCCore(LiteXSoC):
reset_address = None if integrated_rom_size else cpu_reset_address) reset_address = None if integrated_rom_size else cpu_reset_address)
# Add User's interrupts # Add User's interrupts
if self.irq.enabled:
for name, loc in self.interrupt_map.items(): for name, loc in self.interrupt_map.items():
self.irq.add(name, loc) self.irq.add(name, loc)