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
something like that.

load_aout, however, takes a "bswap_needed" argument.  Replace
it with a "big_endian" argument; even though all users are
big-endian, it is cheap enough to keep the optional swapping
functionality even for little-endian boards.

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
---
  include/hw/loader.h   | 2 +-
  hw/core/loader.c      | 4 ++--
  hw/ppc/mac_newworld.c | 7 +------
  hw/ppc/mac_oldworld.c | 7 +------
  hw/sparc/sun4m.c      | 9 +--------
  hw/sparc64/sun4u.c    | 9 +--------
  6 files changed, 7 insertions(+), 31 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to