From 2d24f5084475a78fef673d5ac9e15d561369e4b2 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 24 Mar 2023 09:02:22 +0100 Subject: [PATCH] soc/add_cpu: Make sure to reserve CPU's reserved interrupt when adding CPU. --- litex/soc/integration/soc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index b82555d65..0c027de62 100755 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -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")