2020-08-07 13:10:23 +03:00
|
|
|
s390x_ss = ss.source_set()
|
|
|
|
s390x_ss.add(files(
|
|
|
|
'cpu.c',
|
|
|
|
'cpu_features.c',
|
|
|
|
'cpu_models.c',
|
|
|
|
'gdbstub.c',
|
|
|
|
'interrupt.c',
|
2021-07-07 13:53:19 +03:00
|
|
|
'cpu-dump.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
))
|
|
|
|
|
2019-08-17 13:55:32 +03:00
|
|
|
gen_features = executable('gen-features', 'gen-features.c', native: true,
|
|
|
|
build_by_default: false)
|
|
|
|
|
|
|
|
gen_features_h = custom_target('gen-features.h',
|
|
|
|
output: 'gen-features.h',
|
|
|
|
capture: true,
|
|
|
|
command: gen_features)
|
|
|
|
|
2020-08-07 13:10:23 +03:00
|
|
|
s390x_ss.add(gen_features_h)
|
|
|
|
|
2023-06-13 16:33:47 +03:00
|
|
|
s390x_system_ss = ss.source_set()
|
|
|
|
s390x_system_ss.add(files(
|
2021-07-07 13:53:20 +03:00
|
|
|
'helper.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
'arch_dump.c',
|
|
|
|
'diag.c',
|
|
|
|
'ioinst.c',
|
|
|
|
'machine.c',
|
|
|
|
'mmu_helper.c',
|
|
|
|
'sigp.c',
|
2021-07-07 13:53:18 +03:00
|
|
|
'cpu-sysemu.c',
|
2021-07-07 13:53:24 +03:00
|
|
|
'cpu_models_sysemu.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
))
|
|
|
|
|
2021-07-07 13:53:11 +03:00
|
|
|
s390x_user_ss = ss.source_set()
|
2021-07-07 13:53:24 +03:00
|
|
|
s390x_user_ss.add(files(
|
|
|
|
'cpu_models_user.c',
|
|
|
|
))
|
2021-07-07 13:53:11 +03:00
|
|
|
|
2021-07-07 13:53:17 +03:00
|
|
|
subdir('tcg')
|
2021-07-07 13:53:23 +03:00
|
|
|
subdir('kvm')
|
2021-07-07 13:53:17 +03:00
|
|
|
|
2020-08-07 13:10:23 +03:00
|
|
|
target_arch += {'s390x': s390x_ss}
|
2023-10-04 12:06:27 +03:00
|
|
|
target_system_arch += {'s390x': s390x_system_ss}
|
2021-07-07 13:53:11 +03:00
|
|
|
target_user_arch += {'s390x': s390x_user_ss}
|