2020-08-07 13:10:23 +03:00
|
|
|
ppc_ss = ss.source_set()
|
|
|
|
ppc_ss.add(files(
|
|
|
|
'cpu-models.c',
|
|
|
|
'cpu.c',
|
2021-05-07 14:55:51 +03:00
|
|
|
'cpu_init.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
'excp_helper.c',
|
|
|
|
'gdbstub.c',
|
2021-03-15 21:45:59 +03:00
|
|
|
'helper_regs.c',
|
2021-05-25 14:53:55 +03:00
|
|
|
))
|
|
|
|
|
|
|
|
ppc_ss.add(when: 'CONFIG_TCG', if_true: files(
|
|
|
|
'dfp_helper.c',
|
|
|
|
'fpu_helper.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
'int_helper.c',
|
|
|
|
'mem_helper.c',
|
|
|
|
'misc_helper.c',
|
|
|
|
'timebase_helper.c',
|
|
|
|
'translate.c',
|
|
|
|
))
|
|
|
|
|
|
|
|
ppc_ss.add(libdecnumber)
|
|
|
|
|
|
|
|
ppc_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c'))
|
|
|
|
ppc_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user_only_helper.c'))
|
|
|
|
|
|
|
|
ppc_softmmu_ss = ss.source_set()
|
|
|
|
ppc_softmmu_ss.add(files(
|
|
|
|
'arch_dump.c',
|
|
|
|
'machine.c',
|
|
|
|
'mmu-hash32.c',
|
|
|
|
'mmu_helper.c',
|
|
|
|
'monitor.c',
|
|
|
|
))
|
2021-05-25 14:53:54 +03:00
|
|
|
ppc_softmmu_ss.add(when: 'CONFIG_TCG', if_false: files(
|
|
|
|
'tcg-stub.c'
|
|
|
|
))
|
|
|
|
|
2020-08-07 13:10:23 +03:00
|
|
|
ppc_softmmu_ss.add(when: 'TARGET_PPC64', if_true: files(
|
|
|
|
'compat.c',
|
|
|
|
'mmu-book3s-v3.c',
|
|
|
|
'mmu-hash64.c',
|
|
|
|
'mmu-radix64.c',
|
|
|
|
))
|
|
|
|
|
|
|
|
target_arch += {'ppc': ppc_ss}
|
|
|
|
target_softmmu_arch += {'ppc': ppc_softmmu_ss}
|