Skip to content

RFC disas: Allow linking multiple disassemblers in a heterogeneous binary

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6target: Only link capstone to targets requiring itdisas/meson.build target/arm/meson.build target/i386/meson.build +2 more+4 -12 replies
2/6target/hexagon: Add Kconfig filetarget/Kconfig target/hexagon/Kconfig+3 -01 reply
3/6target/xtensa: Move xtensa-isa.c to common_ss[]target/xtensa/meson.build+2 -11 reply
4/6disas: Have each system target select its disassemblerKconfig disas/Kconfig meson.build +18 more+79 -10 replies
5/6Kconfig: Expose host CONFIG_CAPSTONE definitionKconfig.host meson.build+4 -00 replies
6/6disas: Select capstone targets by defaultdisas/Kconfig+4 -01 reply

Reviews trailers per patch

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

PatchBrian CainRichard Henderson
1/6
2/6R-b
3/6R-b
4/6
5/6
6/6A-b

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 0/6] disas: Allow linking multiple disassemblers in a heterogeneous binary

Hi,

This series is an experiment to link multiple disassembler in the same system binary. At least in my prototype I wanted to get 3: x86 host and microblaze/xtensa targets.

Instead of having meson.build select one pair of host+target, we let targets to be selected by Kconfig. By default each target keeps selecting its disassembler, so there is no change in current uses of 1 target per binary.

Unfortunately I couldn't generalize to user emulation because we don't use Kconfig there.

Philippe Mathieu-Daudé (6):
target: Only link capstone to targets requiring it target/hexagon: Add Kconfig file target/xtensa: Move xtensa-isa.c to common_ss[]
disas: Have each system target select its disassembler
Kconfig: Expose host CONFIG_CAPSTONE definition
disas: Select capstone targets by default

 meson.build               |  4 ++-
 Kconfig                   |  1 +
 Kconfig.host              |  3 ++
 disas/Kconfig             | 60 +++++++++++++++++++++++++++++++++++++++
 disas/meson.build         |  1 -
 target/Kconfig            |  1 +
 target/alpha/Kconfig      |  1 +
 target/arm/meson.build    |  1 +
 target/avr/Kconfig        |  1 +
 target/hexagon/Kconfig    |  3 ++
 target/hppa/Kconfig       |  1 +
 target/i386/Kconfig       |  1 +
 target/i386/meson.build   |  1 +
 target/loongarch/Kconfig  |  1 +
 target/m68k/Kconfig       |  1 +
 target/microblaze/Kconfig |  1 +
 target/mips/Kconfig       |  1 +
 target/openrisc/Kconfig   |  1 +
 target/ppc/Kconfig        |  1 +
 target/ppc/meson.build    |  1 +
 target/riscv/Kconfig      |  2 ++
 target/rx/Kconfig         |  1 +
 target/s390x/Kconfig      |  1 +
 target/s390x/meson.build  |  1 +
 target/sh4/Kconfig        |  1 +
 target/sparc/Kconfig      |  2 ++
 target/tricore/Kconfig    |  1 +
 target/xtensa/Kconfig     |  1 +
 target/xtensa/meson.build |  3 +-
 29 files changed, 96 insertions(+), 3 deletions(-)
 create mode 100644 disas/Kconfig
 create mode 100644 target/hexagon/Kconfig
Signature · 1 line
2.47.1