xref: /openbmc/qemu/target/s390x/meson.build (revision 3a30446aed8497b5928576c6d1aedba557363934)
1s390x_ss = ss.source_set()
2s390x_ss.add(files(
3  'cpu.c',
4  'cpu_features.c',
5  'cpu_models.c',
6  'gdbstub.c',
7  'helper.c',
8  'interrupt.c',
9))
10
11s390x_ss.add(when: 'CONFIG_TCG', if_true: files(
12  'cc_helper.c',
13  'crypto_helper.c',
14  'excp_helper.c',
15  'fpu_helper.c',
16  'int_helper.c',
17  'mem_helper.c',
18  'misc_helper.c',
19  'translate.c',
20  'vec_fpu_helper.c',
21  'vec_helper.c',
22  'vec_int_helper.c',
23  'vec_string_helper.c',
24), if_false: 'tcg-stub.c')
25
26s390x_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c'))
27
28gen_features = executable('gen-features', 'gen-features.c', native: true,
29                          build_by_default: false)
30
31gen_features_h = custom_target('gen-features.h',
32                               output: 'gen-features.h',
33                               capture: true,
34                               command: gen_features)
35
36s390x_ss.add(gen_features_h)
37
38s390x_softmmu_ss = ss.source_set()
39s390x_softmmu_ss.add(files(
40  'arch_dump.c',
41  'diag.c',
42  'ioinst.c',
43  'machine.c',
44  'mmu_helper.c',
45  'sigp.c',
46))
47
48target_arch += {'s390x': s390x_ss}
49target_softmmu_arch += {'s390x': s390x_softmmu_ss}
50