aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZong Li <zongbox@gmail.com>2018-10-02 04:52:30 -0400
committerPalmer Dabbelt <palmer@sifive.com>2018-10-22 20:02:56 -0400
commit757331db921428295948fed5e7377a436e66d34e (patch)
treee27876e4729d810df999bd146361e2be927783d6
parent6315730e9eab7de5fa9864bb13a352713f48aef1 (diff)
RISC-V: Select GENERIC_LIB_UMODDI3 on RV32
On 32-bit, it need to use __umoddi3 by some drivers. Signed-off-by: Zong Li <zong@andestech.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index a344980287a5..dc262fa0417b 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -108,6 +108,7 @@ config ARCH_RV32I
108 select GENERIC_LIB_ASHRDI3 108 select GENERIC_LIB_ASHRDI3
109 select GENERIC_LIB_LSHRDI3 109 select GENERIC_LIB_LSHRDI3
110 select GENERIC_LIB_UCMPDI2 110 select GENERIC_LIB_UCMPDI2
111 select GENERIC_LIB_UMODDI3
111 112
112config ARCH_RV64I 113config ARCH_RV64I
113 bool "RV64I" 114 bool "RV64I"