xref: /openbmc/qemu/target/ppc/meson.build (revision e6546342)
1ppc_ss = ss.source_set()
2ppc_ss.add(files(
3  'cpu-models.c',
4  'cpu.c',
5  'dfp_helper.c',
6  'excp_helper.c',
7  'fpu_helper.c',
8  'gdbstub.c',
9  'int_helper.c',
10  'mem_helper.c',
11  'misc_helper.c',
12  'timebase_helper.c',
13  'translate.c',
14))
15
16ppc_ss.add(libdecnumber)
17
18ppc_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c'))
19ppc_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user_only_helper.c'))
20
21ppc_softmmu_ss = ss.source_set()
22ppc_softmmu_ss.add(files(
23  'arch_dump.c',
24  'machine.c',
25  'mmu-hash32.c',
26  'mmu_helper.c',
27  'monitor.c',
28))
29ppc_softmmu_ss.add(when: 'TARGET_PPC64', if_true: files(
30  'compat.c',
31  'mmu-book3s-v3.c',
32  'mmu-hash64.c',
33  'mmu-radix64.c',
34))
35
36target_arch += {'ppc': ppc_ss}
37target_softmmu_arch += {'ppc': ppc_softmmu_ss}
38