From de7e0ee9ff94ade6f7018714e127ee1ccae12361 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 19 May 2020 16:01:57 +0200 Subject: [PATCH] integration/soc_core: avoid cpu_variant check if custom cpu_cls is passed. --- 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 9567510b2..123b3b425 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -128,7 +128,7 @@ class SoCCore(LiteXSoC): # Parameters management -------------------------------------------------------------------- cpu_type = None if cpu_type == "None" else cpu_type cpu_reset_address = None if cpu_reset_address == "None" else cpu_reset_address - cpu_variant = cpu.check_format_cpu_variant(cpu_variant) + cpu_variant = cpu.check_format_cpu_variant(cpu_variant) if cpu_cls is None else cpu_variant self.cpu_type = cpu_type self.cpu_variant = cpu_variant