summaryrefslogtreecommitdiffstats
path: root/arch/riscv/Makefile
diff options
context:
space:
mode:
authorAlex Guo <xfguo@jlsemi.com>2018-07-29 01:14:47 +0000
committerPalmer Dabbelt <palmer@sifive.com>2018-08-13 08:31:30 -0700
commita89757daf25cfe5320a5f40773271d86e2456c10 (patch)
treef9b2fde77d6093253ae8b73be93530486e6c8781 /arch/riscv/Makefile
parent4938c79bd0f5f3650c8c2cd4cdc972f0a6962ce4 (diff)
downloadlinux-a89757daf25cfe5320a5f40773271d86e2456c10.tar.bz2
RISC-V: implement __lshrti3.
Signed-off-by: Alex Guo <xfguo@jlsemi.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/Makefile')
-rw-r--r--arch/riscv/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
index 6d4a5f6c3f4f..1f536a7784aa 100644
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@ -26,6 +26,9 @@ ifeq ($(CONFIG_ARCH_RV64I),y)
KBUILD_CFLAGS += -mabi=lp64
KBUILD_AFLAGS += -mabi=lp64
+
+ KBUILD_CFLAGS += $(call cc-ifversion, -ge, 0500, -DCONFIG_ARCH_SUPPORTS_INT128)
+
KBUILD_MARCH = rv64im
LDFLAGS += -melf64lriscv
else