There is a single qemu-system-s390x 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]>
---
 target/s390x/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/s390x/meson.build b/target/s390x/meson.build
index 096b7dcc42e..6f98ce34d73 100644
--- a/target/s390x/meson.build
+++ b/target/s390x/meson.build
@@ -3,7 +3,6 @@ s390x_ss.add(files(
   'cpu.c',
   'cpu_features.c',
   'cpu_models.c',
-  'gdbstub.c',
   'interrupt.c',
   'cpu-dump.c',
 ))
@@ -34,11 +33,13 @@ s390x_common_system_ss.add(files(
   'sigp.c',
   'cpu-system.c',
   'cpu_models_system.c',
+  'gdbstub.c',
 ))
 
 s390x_user_ss = ss.source_set()
 s390x_user_ss.add(files(
   'cpu_models_user.c',
+  'gdbstub.c',
 ))
 
 subdir('tcg')
-- 
2.52.0


Reply via email to