Work with no `cpu_variant` provided.
This commit is contained in:
parent
65650919a7
commit
71a837315a
|
@ -202,6 +202,8 @@ class SoCCore(Module):
|
||||||
self.cpu_type = cpu_type
|
self.cpu_type = cpu_type
|
||||||
|
|
||||||
# Support the old style which used underscore for separator
|
# Support the old style which used underscore for separator
|
||||||
|
if cpu_variant is None:
|
||||||
|
cpu_variant = "standard"
|
||||||
cpu_variant = cpu_variant.replace('_', '+')
|
cpu_variant = cpu_variant.replace('_', '+')
|
||||||
# Check for valid CPU variants.
|
# Check for valid CPU variants.
|
||||||
cpu_variant_processor, *cpu_variant_ext = cpu_variant.split('+')
|
cpu_variant_processor, *cpu_variant_ext = cpu_variant.split('+')
|
||||||
|
|
Loading…
Reference in New Issue