@samitouri / QOSamiQemu / commits / b7288c06fd

target/sh4: Build 'gdbstub.c' once for system binaries

'gdbstub.c' can now be built once for all qemu-system-sh4* binaries. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20260219191955.83815-41-philmd@linaro.org>

Philippe Mathieu-Daudé committed Feb 18, 2026 at 09:39 UTC b7288c06fdf294ec096f4dc9451e846216f93578
1 file changed +5 -1
target/sh4/meson.build
+5 -1
@@ -1,7 +1,6 @@
1 sh4_ss = ss.source_set()
2 sh4_ss.add(files(
3 'cpu.c',
4 - 'gdbstub.c',
4 'helper.c',
5 'op_helper.c',
6 'translate.c',
@@ -9,8 +8,13 @@ sh4_ss.add(files(
8
9 sh4_common_system_ss = ss.source_set()
10 sh4_common_system_ss.add(files(
11 + 'gdbstub.c',
12 'monitor.c',
13 ))
14
15 +sh4_user_ss = ss.source_set()
16 +sh4_user_ss.add(files('gdbstub.c'))
17 +
18 target_arch += {'sh4': sh4_ss}
19 +target_user_arch += {'sh4': sh4_user_ss}
20 target_common_system_arch += {'sh4': sh4_common_system_ss}