]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/loader: Pass ELFDATA endian order argument to load_elf_ram_sym()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 26 Jan 2025 14:03:04 +0000 (15:03 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 31 Jan 2025 18:36:44 +0000 (19:36 +0100)
commit3cd6dbce752d0cd78ab85a7f476b7ddc6933e0f2
tree87fcf6de87c7f6bffe187273a3e8b1026a04d1be
parent518f8fdfe265ffff6e2f2ad7a7bbb7f95b270434
hw/loader: Pass ELFDATA endian order argument to load_elf_ram_sym()

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

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250127113824.50177-5-philmd@linaro.org>
hw/core/loader.c
hw/riscv/boot.c
include/hw/loader.h