From 6f8fbfb619eb136841d59554b96b32074a6441ab Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 21 Oct 2021 11:44:45 +0200 Subject: [PATCH] soc/add_cpu: Avoid checking variant with CPUNone. --- litex/soc/integration/soc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index dc2e7fb7b..b27a830bd 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -891,7 +891,7 @@ class SoC(Module): colorer("cpu_cls", color="red"))) raise SoCError() cpu_cls = cls if cls is not None else cpu.CPUS[name] - if variant not in cpu_cls.variants: + if (variant not in cpu_cls.variants) and (cpu_cls is not cpu.CPUNone): self.logger.error("{} CPU variant {}, supporteds: {}.".format( colorer(variant), colorer("not supported", color="red"),