Move disas.c into the target-independent source set, so that we only have to compile this code once instead multiple times (one time for each target).
Marked as RFC since we have to replace the target_ulongs here with hwaddr, and the TARGET_FMT_lx with HWADDR_FMT_plx, which is a little bit ugly ... what's your opinion? Thomas Huth (2): disas: Move softmmu specific code to separate file disas: Move disas.c into the target-independent source set meson.build | 4 +- disas/disas-internal.h | 20 +++++++++ include/disas/disas.h | 21 +++------ include/hw/elf_ops.h | 2 +- bsd-user/elfload.c | 2 +- disas.c | 98 ++++++++---------------------------------- disas/disas-mon.c | 65 ++++++++++++++++++++++++++++ linux-user/elfload.c | 2 +- disas/meson.build | 2 + 9 files changed, 116 insertions(+), 100 deletions(-) create mode 100644 disas/disas-internal.h create mode 100644 disas/disas-mon.c -- 2.31.1