soc_core: check for cpu before checking interrupt
This commit is contained in:
parent
b4bdf2a023
commit
af25bf2bc0
|
@ -375,6 +375,7 @@ class SoCCore(Module):
|
|||
self._constants.append(("CONFIG_" + name.upper(), value))
|
||||
|
||||
# Interrupts
|
||||
if hasattr(self, "cpu"):
|
||||
if hasattr(self.cpu, "interrupt"):
|
||||
for interrupt, mod_name in sorted(self.interrupt_rmap.items()):
|
||||
if mod_name == "nmi":
|
||||
|
|
Loading…
Reference in New Issue