riscv64: Ensure kernel is medany code model

Change-Id: I1b3386a072811bd068ab44190d16697dc7aad028
This commit is contained in:
Alexander von Gluck IV 2019-04-09 20:25:04 -05:00
parent 8672576c1e
commit d5ee99bbd7
1 changed files with 6 additions and 0 deletions

View File

@ -436,6 +436,12 @@ rule KernelArchitectureSetup architecture
HAIKU_KERNEL_CCFLAGS += -mtune=68020-60 ;
HAIKU_KERNEL_C++FLAGS += -mtune=68020-60 ;
case riscv64 :
# Kernel lives within any single 2 GiB address space.
# Default is medlow (-2GiB / +2GiB)
HAIKU_KERNEL_CCFLAGS += -mcmodel=medany ;
HAIKU_KERNEL_C++FLAGS += -mcmodel=medany ;
case x86 :
HAIKU_KERNEL_CCFLAGS += -march=pentium ;
HAIKU_KERNEL_C++FLAGS += -march=pentium ;