Skip to content

hw/loader: Pass ELFDATA endian order argument to load_elf()

Philippe Mathieu-Daudé qemu-arm qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6hw/avr/boot: Replace load_elf_ram_sym() -> load_elf_as()hw/avr/boot.c+3 -51 reply
2/6hw/loader: Remove unused load_elf_ram()hw/core/loader.c include/hw/loader.h+2 -282 replies
3/6hw/loader: Clarify local variable name in load_elf_ram_sym()hw/core/loader.c+4 -43 replies
4/6hw/loader: Pass ELFDATA endian order argument to load_elf_ram_sym()hw/core/loader.c hw/riscv/boot.c include/hw/loader.h+14 -161 reply
5/6hw/loader: Pass ELFDATA endian order argument to load_elf_as()hw/arm/armv7m.c hw/arm/boot.c hw/avr/boot.c +3 more+16 -201 reply
6/6hw/loader: Pass ELFDATA endian order argument to load_elf()hw/alpha/dp264.c hw/core/loader.c hw/hppa/machine.c +33 more+67 -592 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchBALATON ZoltanRichard HendersonAlistair Francis
1/6R-b
2/6R-b R-b
3/6R-b R-b
4/6R-b
5/6R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/6] hw/loader: Pass ELFDATA endian order argument to load_elf()

Hi,

The goal of this series is to be able to use the generic loader on heterogeneous binary. In order to do that we need to remove its target_words_bigendian() call. This series replace the 'bool is_big_endian' (~equivalent) argument of load_elf*() API by ELFDATA (which can be LSB / MSB or NONE), updating all the call sites.

Philippe Mathieu-Daudé (6):
hw/avr/boot: Replace load_elf_ram_sym() -> load_elf_as() hw/loader: Remove unused load_elf_ram()
hw/loader: Clarify local variable name in load_elf_ram_sym() hw/loader: Pass ELFDATA endian order argument to load_elf_ram_sym() hw/loader: Pass ELFDATA endian order argument to load_elf_as() hw/loader: Pass ELFDATA endian order argument to load_elf()

 include/hw/loader.h            | 22 ++++------------
 hw/core/loader.c               | 48 +++++++++++-----------------------
 hw/alpha/dp264.c               |  4 +--
 hw/arm/armv7m.c                |  2 +-
 hw/arm/boot.c                  | 16 ++++++------
 hw/avr/boot.c                  |  8 +++---
 hw/core/generic-loader.c       |  6 +----
 hw/hppa/machine.c              |  4 +--
 hw/i386/multiboot.c            |  4 +--
 hw/i386/x86-common.c           |  4 +--
 hw/loongarch/boot.c            |  2 +-
 hw/m68k/an5206.c               |  2 +-
 hw/m68k/mcf5208.c              |  2 +-
 hw/m68k/q800.c                 |  2 +-
 hw/m68k/virt.c                 |  2 +-
 hw/microblaze/boot.c           |  6 +++--
 hw/mips/boston.c               |  2 +-
 hw/mips/fuloong2e.c            |  2 +-
 hw/mips/loongson3_virt.c       |  2 +-
 hw/mips/malta.c                |  5 ++--
 hw/mips/mipssim.c              |  3 ++-
 hw/openrisc/boot.c             |  2 +-
 hw/pci-host/raven.c            |  4 +--
 hw/ppc/e500.c                  |  2 +-
 hw/ppc/mac_newworld.c          |  5 ++--
 hw/ppc/mac_oldworld.c          |  4 +--
 hw/ppc/pegasos2.c              |  8 +++---
 hw/ppc/ppc405_boards.c         |  2 +-
 hw/ppc/ppc440_bamboo.c         |  3 ++-
 hw/ppc/sam460ex.c              |  2 +-
 hw/ppc/spapr.c                 |  8 +++---
 hw/ppc/virtex_ml507.c          |  4 +--
 hw/riscv/boot.c                |  3 ++-
 hw/s390x/ipl.c                 |  6 ++---
 hw/sparc/leon3.c               |  2 +-
 hw/sparc/sun4m.c               |  5 ++--
 hw/sparc64/sun4u.c             |  6 ++---
 hw/tricore/triboard.c          |  2 +-
 hw/tricore/tricore_testboard.c |  2 +-
 hw/xtensa/sim.c                |  3 ++-
 hw/xtensa/xtfpga.c             |  3 ++-
 41 files changed, 99 insertions(+), 125 deletions(-)
Signature · 1 line
2.47.1