Re: [PATCH] load_aout: replace bswap_needed with big_endian

2025-03-23 Thread Richard Henderson
On 3/20/25 05:43, Paolo Bonzini wrote: Targets know whether they are big-endian more than they know if the endianness is different from the host: the former is mostly a constant, at least in machine creation code, while the latter has to be computed with TARGET_BIG_ENDIAN != HOST_BIG_ENDIAN or so

Re: [PATCH] load_aout: replace bswap_needed with big_endian

2025-03-20 Thread Pierrick Bouvier
On 3/20/25 05:43, Paolo Bonzini wrote: Targets know whether they are big-endian more than they know if the endianness is different from the host: the former is mostly a constant, at least in machine creation code, while the latter has to be computed with TARGET_BIG_ENDIAN != HOST_BIG_ENDIAN or so

Re: [PATCH] load_aout: replace bswap_needed with big_endian

2025-03-20 Thread Philippe Mathieu-Daudé
On 20/3/25 13:43, Paolo Bonzini wrote: Targets know whether they are big-endian more than they know if the endianness is different from the host: the former is mostly a constant, at least in machine creation code, while the latter has to be computed with TARGET_BIG_ENDIAN != HOST_BIG_ENDIAN or so

[PATCH] load_aout: replace bswap_needed with big_endian

2025-03-20 Thread Paolo Bonzini
Targets know whether they are big-endian more than they know if the endianness is different from the host: the former is mostly a constant, at least in machine creation code, while the latter has to be computed with TARGET_BIG_ENDIAN != HOST_BIG_ENDIAN or something like that. load_aout, however, t