On 3/10/24 23:28, Richard Henderson wrote:
On 10/3/24 13:50, Philippe Mathieu-Daudé wrote:
On 30/9/24 09:34, Philippe Mathieu-Daudé wrote:
Introduce the ld/st_endian_p() API, which takes an extra
Alternatively we could use ld/st_te_p() since we already
have ld/st_he_p() for host endianness.
That's what ld/st_p are -- target-specific, in exec/cpu-all.h.
They are indeed *target-specific*, so we can not use them in
target-agnostic code.
By explicitly passing the endianness, ld/st_endian_p() API is
target-agnostic.