'gdbstub.c' can now be built once for all qemu-system-sh4*
binaries.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
target/sh4/meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/target/sh4/meson.build b/target/sh4/meson.build
index 1327507dfc8..3861d9b194a 100644
--- a/target/sh4/meson.build
+++ b/target/sh4/meson.build
@@ -1,7 +1,6 @@
sh4_ss = ss.source_set()
sh4_ss.add(files(
'cpu.c',
- 'gdbstub.c',
'helper.c',
'op_helper.c',
'translate.c',
@@ -9,8 +8,13 @@ sh4_ss.add(files(
sh4_common_system_ss = ss.source_set()
sh4_common_system_ss.add(files(
+ 'gdbstub.c',
'monitor.c',
))
+sh4_user_ss = ss.source_set()
+sh4_user_ss.add(files('gdbstub.c'))
+
target_arch += {'sh4': sh4_ss}
+target_user_arch += {'sh4': sh4_user_ss}
target_common_system_arch += {'sh4': sh4_common_system_ss}
--
2.52.0