cores/cpu: use standard+debug variant when only debug is specified.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 18 Feb 2020 15:59:55 +0000 (16:59 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 18 Feb 2020 15:59:55 +0000 (16:59 +0100)
litex/soc/cores/cpu/__init__.py

index 3a52fcdbd9cb7e9882984330fe2f90a8dec863ba..870a96967717f1ebc03881bf4f49ede3403f9b15 100644 (file)
@@ -93,6 +93,8 @@ def check_format_cpu_variant(variant):
        # Support the old style which used underscore for separator
     if variant is None:
         variant = "standard"
+    if variant == "debug":
+        variant = "standard+debug"
     variant = variant.replace('_', '+')
 
     # Check for valid CPU variants.