
Compiling for RISC-V with binutils 2.38 and binutils 2.37 requires different build flags. This is fixed by Alexandre Ghiti's patch. But building qemu-riscv32*_defconfig fails due to missing implementations of __ashldi3, __lshrdi3. Add these functions and a unit test for them.
Alexandre Ghiti (1): riscv: Fix build against binutils 2.38
Heinrich Schuchardt (2): riscv: implement __ashldi3, __lshrdi3 test: test bit shift operations on RISC-V
arch/riscv/Makefile | 11 ++++++- arch/riscv/lib/Makefile | 1 + arch/riscv/lib/bitops.S | 15 +++++++++ test/lib/Makefile | 2 ++ test/lib/bitops.c | 71 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 arch/riscv/lib/bitops.S create mode 100644 test/lib/bitops.c