soc_core: fix cpu_variant config (we don't want the extension)

This commit is contained in:
Florent Kermarrec 2019-07-22 11:41:01 +02:00
parent 7d9cf1d2bd
commit 4b686dbdb2
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ class SoCCore(Module):
# Add CPU # Add CPU
self.config["CPU_TYPE"] = str(cpu_type).upper() self.config["CPU_TYPE"] = str(cpu_type).upper()
self.config["CPU_VARIANT"] = str(cpu_variant).upper() self.config["CPU_VARIANT"] = str(cpu_variant.split('+')[0]).upper()
if cpu_type is not None: if cpu_type is not None:
# CPU selection / instance # CPU selection / instance
if cpu_type == "lm32": if cpu_type == "lm32":