2020-08-07 12:10:23 +02:00
|
|
|
ppc_ss = ss.source_set()
|
|
|
|
ppc_ss.add(files(
|
|
|
|
'cpu-models.c',
|
|
|
|
'cpu.c',
|
2021-05-07 13:55:51 +02:00
|
|
|
'cpu_init.c',
|
2020-08-07 12:10:23 +02:00
|
|
|
'excp_helper.c',
|
|
|
|
'gdbstub.c',
|
2021-03-15 19:45:59 +01:00
|
|
|
'helper_regs.c',
|
2021-05-25 13:53:55 +02:00
|
|
|
))
|
|
|
|
|
|
|
|
ppc_ss.add(when: 'CONFIG_TCG', if_true: files(
|
|
|
|
'dfp_helper.c',
|
|
|
|
'fpu_helper.c',
|
2020-08-07 12:10:23 +02:00
|
|
|
'int_helper.c',
|
|
|
|
'mem_helper.c',
|
|
|
|
'misc_helper.c',
|
|
|
|
'timebase_helper.c',
|
|
|
|
'translate.c',
|
2022-03-02 06:51:36 +01:00
|
|
|
'power8-pmu.c',
|
2020-08-07 12:10:23 +02:00
|
|
|
))
|
|
|
|
|
|
|
|
ppc_ss.add(libdecnumber)
|
|
|
|
|
2021-06-01 21:35:17 +02:00
|
|
|
gen = [
|
|
|
|
decodetree.process('insn32.decode',
|
|
|
|
extra_args: '--static-decode=decode_insn32'),
|
|
|
|
decodetree.process('insn64.decode',
|
|
|
|
extra_args: ['--static-decode=decode_insn64',
|
|
|
|
'--insnwidth=64']),
|
|
|
|
]
|
2023-06-26 16:01:00 +02:00
|
|
|
ppc_ss.add(when: 'CONFIG_TCG', if_true: gen)
|
2021-06-01 21:35:17 +02:00
|
|
|
|
2020-08-07 12:10:23 +02:00
|
|
|
ppc_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user_only_helper.c'))
|
|
|
|
|
2023-06-13 15:33:47 +02:00
|
|
|
ppc_system_ss = ss.source_set()
|
|
|
|
ppc_system_ss.add(files(
|
2020-08-07 12:10:23 +02:00
|
|
|
'arch_dump.c',
|
|
|
|
'machine.c',
|
|
|
|
'mmu-hash32.c',
|
2021-07-23 19:56:25 +02:00
|
|
|
'mmu_common.c',
|
2023-02-23 16:55:40 +01:00
|
|
|
'ppc-qmp-cmds.c',
|
2020-08-07 12:10:23 +02:00
|
|
|
))
|
2023-06-13 15:33:47 +02:00
|
|
|
ppc_system_ss.add(when: 'CONFIG_TCG', if_true: files(
|
2021-07-23 19:56:25 +02:00
|
|
|
'mmu_helper.c',
|
|
|
|
), if_false: files(
|
|
|
|
'tcg-stub.c',
|
2021-05-25 13:53:54 +02:00
|
|
|
))
|
2023-09-12 08:21:27 +02:00
|
|
|
ppc_system_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
|
2021-05-25 13:53:54 +02:00
|
|
|
|
2023-06-13 15:33:47 +02:00
|
|
|
ppc_system_ss.add(when: 'TARGET_PPC64', if_true: files(
|
2020-08-07 12:10:23 +02:00
|
|
|
'compat.c',
|
|
|
|
'mmu-book3s-v3.c',
|
|
|
|
'mmu-hash64.c',
|
|
|
|
'mmu-radix64.c',
|
|
|
|
))
|
|
|
|
|
|
|
|
target_arch += {'ppc': ppc_ss}
|
2023-10-04 11:06:27 +02:00
|
|
|
target_system_arch += {'ppc': ppc_system_ss}
|