Skip to content

RFC hw/microblaze: Quick single binary proof of concept

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest18 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18hw/xen/hvm: Fix Aarch64 typoinclude/hw/xen/arch_hvm.h+1 -14 replies
2/18hw/vfio/common: Get target page size using runtime helpershw/vfio/common.c+6 -31 reply
3/18include: Poison TARGET_PHYS_ADDR_SPACE_BITS definitioninclude/exec/poison.h+1 -01 reply
4/18qemu: Introduce 'qemu/legacy_binary_info.h'include/qemu/legacy_binary_info.h legacy_binary_info.c meson.build +1 more+177 -115 replies
5/18qemu: Introduce legacy_binary_is_64bit() helperinclude/qemu/legacy_binary_info.h legacy_binary_info.c+40 -00 replies
6/18hw/mips/mipssim: Replace TARGET_MIPS64 by legacy_binary_is_64bit()hw/mips/mipssim.c+5 -100 replies
7/18hw/mips/malta: Replace TARGET_MIPS64 by legacy_binary_is_64bit()hw/mips/malta.c+3 -50 replies
8/18hw/i386: Inline TARGET_DEFAULT_CPU_TYPE definitionhw/i386/microvm.c hw/i386/pc.c hw/i386/xen/xen-pvh.c +1 more+12 -90 replies
9/18hw/ppc/mac: Replace TARGET_PPC64 by legacy_binary_is_64bit()hw/ppc/mac_newworld.c hw/ppc/mac_oldworld.c+6 -80 replies
10/18qemu: Introduce legacy_binary_is_big_endian() helperinclude/qemu/legacy_binary_info.h legacy_binary_info.c+51 -02 replies
11/18hw/mips/jazz: Replace TARGET_BIG_ENDIAN by legacy_binary_is_big_endianhw/mips/jazz.c+11 -120 replies
12/18hw/mips/mipssim: Use legacy_binary_is_big_endian()hw/mips/mipssim.c+9 -120 replies
13/18hw/xtensa/sim: Replace TARGET_BIG_ENDIAN by legacy_binary_is_big_endianhw/xtensa/sim.c+3 -10 replies
14/18hw/xtensa/xtfpga: Check endianness via legacy_binary_is_big_endian()hw/xtensa/xtfpga.c+7 -50 replies
15/18hw/microblaze/petalogix_ml605_mmu: Use legacy_binary_is_big_endian()hw/microblaze/petalogix_ml605_mmu.c+2 -20 replies
16/18hw/microblaze/petalogix_s3adsp1800_mmu: Use legacy_binary_is_big_endianhw/microblaze/petalogix_s3adsp1800_mmu.c+8 -50 replies
17/18meson: Allow symlinking system emulation binariesmeson.build+16 -00 replies
18/18configs/targets: Merge qemu-system-microblaze{el} binariesconfigs/targets/microblazeel-softmmu.mak meson.build+2 -100 replies

Reviews trailers per patch

3 of 18 patches have a Reviewed-by or Acked-by.

PatchPierrick BouvierRichard Henderson
1/18R-b R-b
2/18R-b
3/18R-b
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18
15/18
16/18
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 00/18] hw/microblaze: Quick single binary proof of concept

Introduce an API to get target-specific information from our current binary names (considered legacy as of today).

At this point, get endianness and target_long_bits, just enough to build qemu-system-microblaze (default to big endian) and its little-endian symlink:

 $ make qemu-system-microblaze{,el}
 $ ./qemu-system-microblaze -M help
 Supported machines are:
 none                 empty machine
 petalogix-ml605      PetaLogix linux refdesign for xilinx ml605 (big endian) (deprecated)
 petalogix-s3adsp1800 PetaLogix linux refdesign for xilinx Spartan 3ADSP1800 (big endian) (default)
 xlnx-zynqmp-pmu      Xilinx ZynqMP PMU machine (big endian) (deprecated)
 $ ./qemu-system-microblazeel -M help
 Supported machines are:
 none                 empty machine
 petalogix-ml605      PetaLogix linux refdesign for xilinx ml605 (big endian) (deprecated)
 petalogix-s3adsp1800 PetaLogix linux refdesign for xilinx Spartan 3ADSP1800 (little endian) (default)
 xlnx-zynqmp-pmu      Xilinx ZynqMP PMU machine (big endian) (deprecated)

Based-on: <[email protected]>

Philippe Mathieu-Daudé (18):
hw/xen/hvm: Fix Aarch64 typo
hw/vfio/common: Get target page size using runtime helpers
include: Poison TARGET_PHYS_ADDR_SPACE_BITS definition
qemu: Introduce 'qemu/legacy_binary_info.h'
qemu: Introduce legacy_binary_is_64bit() helper hw/mips/mipssim: Replace TARGET_MIPS64 by legacy_binary_is_64bit() hw/mips/malta: Replace TARGET_MIPS64 by legacy_binary_is_64bit() hw/i386: Inline TARGET_DEFAULT_CPU_TYPE definition hw/ppc/mac: Replace TARGET_PPC64 by legacy_binary_is_64bit()
qemu: Introduce legacy_binary_is_big_endian() helper hw/mips/jazz: Replace TARGET_BIG_ENDIAN by legacy_binary_is_big_endian hw/mips/mipssim: Use legacy_binary_is_big_endian() hw/xtensa/sim: Replace TARGET_BIG_ENDIAN by
legacy_binary_is_big_endian
hw/xtensa/xtfpga: Check endianness via legacy_binary_is_big_endian() hw/microblaze/petalogix_ml605_mmu: Use legacy_binary_is_big_endian() hw/microblaze/petalogix_s3adsp1800_mmu: Use
legacy_binary_is_big_endian
meson: Allow symlinking system emulation binaries configs/targets: Merge qemu-system-microblaze{el} binaries

 configs/targets/microblazeel-softmmu.mak |   8 -
 meson.build                              |  18 +-
 include/exec/poison.h                    |   1 +
 include/hw/xen/arch_hvm.h                |   2 +-
 include/qemu/legacy_binary_info.h        |  25 +++
 target/i386/cpu.h                        |   6 -
 hw/i386/microvm.c                        |   5 +-
 hw/i386/pc.c                             |   5 +-
 hw/i386/xen/xen-pvh.c                    |   5 +-
 hw/microblaze/petalogix_ml605_mmu.c      |   4 +-
 hw/microblaze/petalogix_s3adsp1800_mmu.c |  13 +-
 hw/mips/jazz.c                           |  23 ++-
 hw/mips/malta.c                          |   8 +-
 hw/mips/mipssim.c                        |  36 ++--
 hw/ppc/mac_newworld.c                    |   9 +-
 hw/ppc/mac_oldworld.c                    |   5 +-
 hw/vfio/common.c                         |   9 +-
 hw/xtensa/sim.c                          |   4 +-
 hw/xtensa/xtfpga.c                       |  12 +-
 legacy_binary_info.c                     | 240 +++++++++++++++++++++++
 system/vl.c                              |   2 +
 21 files changed, 358 insertions(+), 82 deletions(-)
 delete mode 100644 configs/targets/microblazeel-softmmu.mak
 create mode 100644 include/qemu/legacy_binary_info.h
 create mode 100644 legacy_binary_info.c
Signature · 1 line
2.47.1