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