public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/3] riscv: Fix build against binutils 2.38
@ 2022-10-01 19:57 Heinrich Schuchardt
  2022-10-01 19:57 ` [PATCH v2 1/3] riscv: implement __ashldi3, __lshrdi3 Heinrich Schuchardt
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Heinrich Schuchardt @ 2022-10-01 19:57 UTC (permalink / raw)
  To: Rick Chen; +Cc: Leo, Simon Glass, u-boot, Heinrich Schuchardt

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-04 11:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-01 19:57 [PATCH v2 0/3] riscv: Fix build against binutils 2.38 Heinrich Schuchardt
2022-10-01 19:57 ` [PATCH v2 1/3] riscv: implement __ashldi3, __lshrdi3 Heinrich Schuchardt
2022-10-04 11:38   ` Andreas Schwab
2022-10-01 19:57 ` [PATCH v2 2/3] riscv: Fix build against binutils 2.38 Heinrich Schuchardt
2022-10-01 19:57 ` [PATCH v2 3/3] test: test bit shift operations on RISC-V Heinrich Schuchardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox