]>
Commit | Line | Data |
---|---|---|
abff1abf PB |
1 | ppc_ss = ss.source_set() |
2 | ppc_ss.add(files( | |
3 | 'cpu-models.c', | |
4 | 'cpu.c', | |
3e770bf7 | 5 | 'cpu_init.c', |
abff1abf | 6 | 'excp_helper.c', |
abff1abf | 7 | 'gdbstub.c', |
8a05fd9a | 8 | 'helper_regs.c', |
c2743582 BL |
9 | )) |
10 | ||
11 | ppc_ss.add(when: 'CONFIG_TCG', if_true: files( | |
12 | 'dfp_helper.c', | |
13 | 'fpu_helper.c', | |
abff1abf PB |
14 | 'int_helper.c', |
15 | 'mem_helper.c', | |
16 | 'misc_helper.c', | |
17 | 'timebase_helper.c', | |
18 | 'translate.c', | |
33edcde7 | 19 | 'power8-pmu.c', |
abff1abf PB |
20 | )) |
21 | ||
22 | ppc_ss.add(libdecnumber) | |
23 | ||
99082815 RH |
24 | gen = [ |
25 | decodetree.process('insn32.decode', | |
26 | extra_args: '--static-decode=decode_insn32'), | |
27 | decodetree.process('insn64.decode', | |
28 | extra_args: ['--static-decode=decode_insn64', | |
29 | '--insnwidth=64']), | |
30 | ] | |
28eafc12 | 31 | ppc_ss.add(when: 'CONFIG_TCG', if_true: gen) |
99082815 | 32 | |
abff1abf PB |
33 | ppc_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user_only_helper.c')) |
34 | ||
de6cd759 PMD |
35 | ppc_system_ss = ss.source_set() |
36 | ppc_system_ss.add(files( | |
abff1abf PB |
37 | 'arch_dump.c', |
38 | 'machine.c', | |
39 | 'mmu-hash32.c', | |
5118ebe8 | 40 | 'mmu_common.c', |
0f3fea21 | 41 | 'ppc-qmp-cmds.c', |
abff1abf | 42 | )) |
de6cd759 | 43 | ppc_system_ss.add(when: 'CONFIG_TCG', if_true: files( |
5118ebe8 LMC |
44 | 'mmu_helper.c', |
45 | ), if_false: files( | |
46 | 'tcg-stub.c', | |
8033fb3f | 47 | )) |
a523b676 | 48 | ppc_system_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c')) |
8033fb3f | 49 | |
de6cd759 | 50 | ppc_system_ss.add(when: 'TARGET_PPC64', if_true: files( |
abff1abf PB |
51 | 'compat.c', |
52 | 'mmu-book3s-v3.c', | |
53 | 'mmu-hash64.c', | |
54 | 'mmu-radix64.c', | |
55 | )) | |
56 | ||
57 | target_arch += {'ppc': ppc_ss} | |
01c85e60 | 58 | target_system_arch += {'ppc': ppc_system_ss} |