From a96304e2876ade96c3a5044547dfd1fcb0b6e922 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 22 Nov 2021 09:10:04 +0100 Subject: [PATCH] cpu/femtorv/core: Generate gcc_flags from GCC_FLAGS/Variants. --- litex/soc/cores/cpu/femtorv/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/litex/soc/cores/cpu/femtorv/core.py b/litex/soc/cores/cpu/femtorv/core.py index 7a4a9f51d..a839b33ec 100644 --- a/litex/soc/cores/cpu/femtorv/core.py +++ b/litex/soc/cores/cpu/femtorv/core.py @@ -59,9 +59,8 @@ class FemtoRV(CPU): # GCC Flags. @property def gcc_flags(self): - flags = "-march=rv32i " - flags += "-mabi=ilp32 " - flags += "-D__femtorv__ " + flags = GCC_FLAGS[self.variant] + flags += " -D__femtorv__ " return flags def __init__(self, platform, variant="standard"):