soc/add_cpu: Make sure to reserve CPU's reserved interrupt when adding CPU.

This commit is contained in:
Florent Kermarrec 2023-03-24 09:02:22 +01:00
parent e55f0da7c7
commit 2d24f50844
1 changed files with 2 additions and 0 deletions

View File

@ -1096,6 +1096,8 @@ class SoC(LiteXModule, SoCCoreCompat):
colorer(name, color="underline"),
colorer("adding", color="cyan")))
self.irq.enable()
if hasattr(self.cpu, "reserved_interrupts"):
self.cpu.interrupts.update(self.cpu.reserved_interrupts)
for name, loc in self.cpu.interrupts.items():
self.irq.add(name, loc)
self.add_config("CPU_HAS_INTERRUPT")