From: Kurt Kiefer Date: Sat, 27 Apr 2019 21:57:35 +0000 (-0700) Subject: fix vexriscv build X-Git-Tag: 24jan2021_ls180~1264 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf27869ad9a826231dda1487ce24312e13efdf78;p=litex.git fix vexriscv build --- diff --git a/litex/soc/cores/cpu/vexriscv/core.py b/litex/soc/cores/cpu/vexriscv/core.py index f66473be..1effc485 100644 --- a/litex/soc/cores/cpu/vexriscv/core.py +++ b/litex/soc/cores/cpu/vexriscv/core.py @@ -49,7 +49,7 @@ class VexRiscv(Module, AutoCSR): def __init__(self, platform, cpu_reset_address, variant="standard"): assert variant in CPU_VARIANTS, "Unsupported variant %s" % variant - self.gcc_flags = GCC_FLAGS[variant] + self.gcc_flags = GCC_FLAGS[variant] + " -D__vexriscv__" self.platform = platform self.variant = variant @@ -184,7 +184,7 @@ class VexRiscv(Module, AutoCSR): @staticmethod def add_sources(platform, variant="standard"): - cpu_filename = CPU_VARIANTS[variant] + cpu_filename = CPU_VARIANTS[variant] + ".v" vdir = os.path.join(os.path.abspath(os.path.dirname(__file__)), "verilog") platform.add_source(os.path.join(vdir, cpu_filename))