On 1/14/2026 4:58 AM, Aleksa Paunovic wrote:
This series contains some minor big-endian RISC-V changes.
The common theme for most of these patches is selecting
the correct subword element on big-endian targets.
The second and the third patches are fixes pertaining to
atomic instructions on big-endian builds. The second patch
fixes issues with inline-atomics. The third should fix
libatomic for big-endian builds.
[1] made our big-endian builds fail,
since self-tests rely on RVV support. We simply disabled
self-tests for big-endian builds.
The patches were tested using QEMU modified
to support big-endian RISC-V targets [2]. We will be upstreaming this in the
future.
We did begin the gdb-sim upstreaming process for big-endian RISC-V, but had no
luck making
inline-atomics work even on little-endian builds. The necessary changes can be
found at [3],
in case someone else finds them useful for testing the series.
FWIW, I'd suggest focusing on QEMU; I don't think many are using gdb-sim
for testing RISC-V.
Jeff