Commit 936c783dab for qemu.org
commit 936c783dab9240d6c000d387aaf620dfde4719be
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: Wed Feb 18 09:53:17 2026 +0100
target/tricore: Build 'gdbstub.c' once for system single binary
There is a single qemu-system-tricore 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.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20260219191955.83815-50-philmd@linaro.org>
diff --git a/target/tricore/meson.build b/target/tricore/meson.build
index f40daee61e..76cd78e990 100644
--- a/target/tricore/meson.build
+++ b/target/tricore/meson.build
@@ -5,11 +5,15 @@ tricore_ss.add(files(
'helper.c',
'op_helper.c',
'translate.c',
- 'gdbstub.c',
))
tricore_ss.add(zlib)
-tricore_system_ss = ss.source_set()
+tricore_user_ss = ss.source_set()
+tricore_user_ss.add(files('gdbstub.c'))
+
+tricore_common_system_ss = ss.source_set()
+tricore_common_system_ss.add(files('gdbstub.c'))
target_arch += {'tricore': tricore_ss}
-target_common_system_arch += {'tricore': tricore_system_ss}
+target_user_arch += {'tricore': tricore_user_ss}
+target_common_system_arch += {'tricore': tricore_common_system_ss}