[PATCH v2 0/3] riscv: Fix build against binutils 2.38

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sat Oct 1 21:57:06 CEST 2022


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

-- 
2.37.2



More information about the U-Boot mailing list