@lkundrak @q66 Can't say anything about the rest, but
> is there an actual little-endian sparc? (all i knew is that memory loads and stores can be little endian and that's about it)
Hardware-wise, yes, technially all SPARCs are bi-endian
You can set PSTATE.cle and PSTATE.tle to 1 and from that point on your processor should effectively become LE
However, all instruction words are to be encoded in BE, even when the CPU runs in LE mode :akkoderp:
Aside from that, there are variants of loads and stores that take explicit endianness parameter, and atomic CAS instructions always require endianness to be supplied explicitly