integration/soc_core: avoid cpu_variant check if custom cpu_cls is passed.

This commit is contained in:
Florent Kermarrec 2020-05-19 16:01:57 +02:00
parent 6f8f0d2346
commit de7e0ee9ff
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class SoCCore(LiteXSoC):
# Parameters management -------------------------------------------------------------------- # Parameters management --------------------------------------------------------------------
cpu_type = None if cpu_type == "None" else cpu_type cpu_type = None if cpu_type == "None" else cpu_type
cpu_reset_address = None if cpu_reset_address == "None" else cpu_reset_address 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_type = cpu_type
self.cpu_variant = cpu_variant self.cpu_variant = cpu_variant