From af950285745d1745fce3f26a861e69edab391e5c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 13 Nov 2018 11:09:39 +0100 Subject: [PATCH] cpu/mor1kx: use clang only for linux variant --- litex/soc/cores/cpu/mor1kx/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/cores/cpu/mor1kx/core.py b/litex/soc/cores/cpu/mor1kx/core.py index c53c6e5e..3b55991b 100644 --- a/litex/soc/cores/cpu/mor1kx/core.py +++ b/litex/soc/cores/cpu/mor1kx/core.py @@ -10,8 +10,6 @@ class MOR1KX(Module): endianness = "big" gcc_triple = "or1k-elf" gcc_flags = "-mhard-mul -mhard-div -mror" - clang_triple = "or1k-linux" - clang_flags = "-mhard-mul -mhard-div -mror -mffl1 -maddc" linker_output_format = "elf32-or1k" def __init__(self, platform, reset_pc, variant=None): @@ -53,6 +51,8 @@ class MOR1KX(Module): # Use the default configuration pass elif variant == "linux": + self.clang_triple = "or1k-linux" + self.clang_flags = "-mhard-mul -mhard-div -mror -mffl1 -maddc" cpu_args.update(dict( # Linux needs the memory management units. p_FEATURE_IMMU="ENABLED", -- 2.30.2