soc/add_cpu: Avoid checking variant with CPUNone.
This commit is contained in:
parent
d16d4917d6
commit
6f8fbfb619
|
@ -891,7 +891,7 @@ class SoC(Module):
|
||||||
colorer("cpu_cls", color="red")))
|
colorer("cpu_cls", color="red")))
|
||||||
raise SoCError()
|
raise SoCError()
|
||||||
cpu_cls = cls if cls is not None else cpu.CPUS[name]
|
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(
|
self.logger.error("{} CPU variant {}, supporteds: {}.".format(
|
||||||
colorer(variant),
|
colorer(variant),
|
||||||
colorer("not supported", color="red"),
|
colorer("not supported", color="red"),
|
||||||
|
|
Loading…
Reference in New Issue