cpu/femtorv/core: Generate gcc_flags from GCC_FLAGS/Variants.

This commit is contained in:
Florent Kermarrec 2021-11-22 09:10:04 +01:00
parent 828f763b48
commit a96304e287
1 changed files with 2 additions and 3 deletions

View File

@ -59,9 +59,8 @@ class FemtoRV(CPU):
# GCC Flags. # GCC Flags.
@property @property
def gcc_flags(self): def gcc_flags(self):
flags = "-march=rv32i " flags = GCC_FLAGS[self.variant]
flags += "-mabi=ilp32 " flags += " -D__femtorv__ "
flags += "-D__femtorv__ "
return flags return flags
def __init__(self, platform, variant="standard"): def __init__(self, platform, variant="standard"):