From 4b686dbdb22c8208035a31d7a82d59245bef3dad Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 22 Jul 2019 11:41:01 +0200 Subject: [PATCH] soc_core: fix cpu_variant config (we don't want the extension) --- litex/soc/integration/soc_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": -- 2.30.2