xref: /qemu/target/ppc/meson.build (revision bcfec376)
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  'helper_regs.c',
10  'int_helper.c',
11  'mem_helper.c',
12  'misc_helper.c',
13  'timebase_helper.c',
14  'translate.c',
15))
16
17ppc_ss.add(libdecnumber)
18
19ppc_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c'))
20ppc_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user_only_helper.c'))
21
22ppc_softmmu_ss = ss.source_set()
23ppc_softmmu_ss.add(files(
24  'arch_dump.c',
25  'machine.c',
26  'mmu-hash32.c',
27  'mmu_helper.c',
28  'monitor.c',
29))
30ppc_softmmu_ss.add(when: 'TARGET_PPC64', if_true: files(
31  'compat.c',
32  'mmu-book3s-v3.c',
33  'mmu-hash64.c',
34  'mmu-radix64.c',
35))
36
37target_arch += {'ppc': ppc_ss}
38target_softmmu_arch += {'ppc': ppc_softmmu_ss}
39