qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 00/18] hw/microblaze: Quick single binary proof of concept
@ 2025-03-05 15:39 Philippe Mathieu-Daudé
  2025-03-05 15:39 ` [RFC PATCH 01/18] hw/xen/hvm: Fix Aarch64 typo Philippe Mathieu-Daudé
                   ` (17 more replies)
  0 siblings, 18 replies; 42+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-03-05 15:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: Daniel P. Berrangé, Paolo Bonzini, Richard Henderson,
	Pierrick Bouvier, Thomas Huth, Alex Bennée,
	Philippe Mathieu-Daudé

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: <20250305005225.95051-1-philmd@linaro.org>

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

-- 
2.47.1



^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2025-03-22  6:59 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-05 15:39 [RFC PATCH 00/18] hw/microblaze: Quick single binary proof of concept Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 01/18] hw/xen/hvm: Fix Aarch64 typo Philippe Mathieu-Daudé
2025-03-05 16:53   ` Pierrick Bouvier
2025-03-06  1:35   ` Richard Henderson
2025-03-13  8:10   ` Michael Tokarev
2025-03-13  9:40     ` Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 02/18] hw/vfio/common: Get target page size using runtime helpers Philippe Mathieu-Daudé
2025-03-06  1:37   ` Richard Henderson
2025-03-05 15:39 ` [RFC PATCH 03/18] include: Poison TARGET_PHYS_ADDR_SPACE_BITS definition Philippe Mathieu-Daudé
2025-03-06  1:37   ` Richard Henderson
2025-03-05 15:39 ` [RFC PATCH 04/18] qemu: Introduce 'qemu/legacy_binary_info.h' Philippe Mathieu-Daudé
2025-03-05 16:59   ` Pierrick Bouvier
2025-03-06  7:26     ` Thomas Huth
2025-03-06  9:26       ` Philippe Mathieu-Daudé
2025-03-06 11:34         ` Paolo Bonzini
2025-03-06 11:52           ` Daniel P. Berrangé
2025-03-06 13:45             ` BALATON Zoltan
2025-03-06 15:15               ` Daniel P. Berrangé
2025-03-06 15:28                 ` BALATON Zoltan
2025-03-06 21:45                   ` Pierrick Bouvier
2025-03-07  0:46                     ` BALATON Zoltan
2025-03-05 19:19   ` Paolo Bonzini
2025-03-06  1:56   ` Richard Henderson
2025-03-06 12:13     ` Daniel P. Berrangé
2025-03-19 14:25     ` Philippe Mathieu-Daudé
2025-03-22  6:59       ` Markus Armbruster
2025-03-05 15:39 ` [RFC PATCH 05/18] qemu: Introduce legacy_binary_is_64bit() helper Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 06/18] hw/mips/mipssim: Replace TARGET_MIPS64 by legacy_binary_is_64bit() Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 07/18] hw/mips/malta: " Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 08/18] hw/i386: Inline TARGET_DEFAULT_CPU_TYPE definition Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 09/18] hw/ppc/mac: Replace TARGET_PPC64 by legacy_binary_is_64bit() Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 10/18] qemu: Introduce legacy_binary_is_big_endian() helper Philippe Mathieu-Daudé
2025-03-06  7:28   ` Thomas Huth
2025-03-06 14:10     ` Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 11/18] hw/mips/jazz: Replace TARGET_BIG_ENDIAN by legacy_binary_is_big_endian Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 12/18] hw/mips/mipssim: Use legacy_binary_is_big_endian() Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 13/18] hw/xtensa/sim: Replace TARGET_BIG_ENDIAN by legacy_binary_is_big_endian Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 14/18] hw/xtensa/xtfpga: Check endianness via legacy_binary_is_big_endian() Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 15/18] hw/microblaze/petalogix_ml605_mmu: Use legacy_binary_is_big_endian() Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 16/18] hw/microblaze/petalogix_s3adsp1800_mmu: Use legacy_binary_is_big_endian Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 17/18] meson: Allow symlinking system emulation binaries Philippe Mathieu-Daudé
2025-03-05 15:39 ` [RFC PATCH 18/18] configs/targets: Merge qemu-system-microblaze{el} binaries Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).