From: Florent Kermarrec Date: Mon, 22 Jul 2019 09:41:01 +0000 (+0200) Subject: soc_core: fix cpu_variant config (we don't want the extension) X-Git-Tag: 24jan2021_ls180~1090 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b686dbdb22c8208035a31d7a82d59245bef3dad;p=litex.git soc_core: fix cpu_variant config (we don't want the extension) --- diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index da9d7a12..fd7d265d 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -245,7 +245,7 @@ class SoCCore(Module): # Add CPU 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: # CPU selection / instance if cpu_type == "lm32":