s390x_ss = ss.source_set()
+s390x_common_ss = ss.source_set()
+s390x_common_system_ss = ss.source_set()
+s390x_system_ss = ss.source_set()
+s390x_user_ss = ss.source_set()
+
s390x_ss.add(files(
'cpu.c',
'cpu_features.c',
capture: true,
command: gen_features)
-s390x_ss.add(gen_features_h)
+s390x_common_ss.add(gen_features_h)
+s390x_common_ss.add(files(
+ 'cpu_models_user.c',
+ 'gdbstub.c',
+))
-s390x_system_ss = ss.source_set()
s390x_system_ss.add(files(
'ioinst.c',
))
-s390x_common_system_ss = ss.source_set()
-s390x_common_system_ss.add(gen_features_h)
s390x_common_system_ss.add(files(
'helper.c',
'arch_dump.c',
'mmu_helper.c',
'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')
subdir('kvm')
+s390x_common_system_ss.add_all(s390x_common_ss)
+s390x_user_ss.add_all(s390x_common_ss)
+
target_arch += {'s390x': s390x_ss}
target_system_arch += {'s390x': s390x_system_ss}
target_common_system_arch += {'s390x': s390x_common_system_ss}