There is a single qemu-system-loongarch64 binary, but by moving 'gdbstub.c' in the target_common_system_arch[] source set the resulting object can be linked into a single qemu-sytem binary.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- Based-on: <[email protected]> "single-binary: Drop TARGET_PHYS_ADDR_SPACE_BITS" --- target/loongarch/meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/target/loongarch/meson.build b/target/loongarch/meson.build index 20bd3e2f0a3..2ae96d68695 100644 --- a/target/loongarch/meson.build +++ b/target/loongarch/meson.build @@ -3,9 +3,14 @@ gen = decodetree.process('insns.decode') loongarch_ss = ss.source_set() loongarch_ss.add(files( 'cpu.c', - 'gdbstub.c', )) +loongarch_user_ss = ss.source_set() +loongarch_user_ss.add(files('gdbstub.c')) + +loongarch_common_system_ss = ss.source_set() +loongarch_common_system_ss.add(files('gdbstub.c')) + loongarch_system_ss = ss.source_set() loongarch_system_ss.add(files( 'arch_dump.c', @@ -20,5 +25,7 @@ common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen]) subdir('tcg') target_arch += {'loongarch': loongarch_ss} +target_user_arch += {'loongarch': loongarch_user_ss} target_system_arch += {'loongarch': loongarch_system_ss} +target_common_system_arch += {'loongarch': loongarch_common_system_ss} subdir('kvm') -- 2.52.0
