qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/6] hw/loader: Pass ELFDATA endian order argument to load_el


From: Richard Henderson
Subject: Re: [PATCH 5/6] hw/loader: Pass ELFDATA endian order argument to load_elf_as()
Date: Mon, 27 Jan 2025 13:26:51 -0800
User-agent: Mozilla Thunderbird

On 1/27/25 03:38, Philippe Mathieu-Daudé wrote:
Rather than passing a boolean 'is_big_endian' argument,
directly pass the ELFDATA, which can be unspecified using
the ELFDATANONE value.

Update the call sites:
   0 -> ELFDATA2LSB
   1 -> ELFDATA2MSB

Note, this allow removing the target_words_bigendian() call
in the GENERIC_LOADER device, where we pass ELFDATANONE.

Suggested-by: Richard Henderson<richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
  include/hw/loader.h      |  2 +-
  hw/core/loader.c         |  8 ++++----
  hw/arm/armv7m.c          |  2 +-
  hw/arm/boot.c            | 16 ++++++++--------
  hw/avr/boot.c            |  2 +-
  hw/core/generic-loader.c |  6 +-----
  6 files changed, 16 insertions(+), 20 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]