From: Florent Kermarrec Date: Tue, 19 May 2020 14:01:57 +0000 (+0200) Subject: integration/soc_core: avoid cpu_variant check if custom cpu_cls is passed. X-Git-Tag: 24jan2021_ls180~324 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de7e0ee9ff94ade6f7018714e127ee1ccae12361;p=litex.git integration/soc_core: avoid cpu_variant check if custom cpu_cls is passed. --- diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 9567510b..123b3b42 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