cpu/microwatt: add io_regions and gcc_flags

This commit is contained in:
Florent Kermarrec 2019-12-17 09:33:46 +01:00
parent 16e7c6b634
commit b9edde20de
1 changed files with 10 additions and 2 deletions

View File

@ -19,11 +19,19 @@ class Microwatt(CPU):
endianness = "little" endianness = "little"
gcc_triple = ("powerpc64le-linux") gcc_triple = ("powerpc64le-linux")
linker_output_format = "elf64-powerpc64le" linker_output_format = "elf64-powerpc64le"
io_regions = {0x80000000: 0x80000000} # origin, length FIXME: check default IO regions io_regions = {0xc0000000: 0x10000000} # origin, length
@property @property
def gcc_flags(self): def gcc_flags(self):
# FIXME: add default flags flags = "-m64 "
flags += "-mabi=elfv2 "
flags += "-msoft-float "
flags += "-mno-string "
flags += "-mno-multiple "
flags += "-mno-vsx "
flags += "-mno-altivec "
flags += "-mlittle-endian "
flags += "-mstrict-align "
flags += "-D__microwatt__ " flags += "-D__microwatt__ "
return flags return flags