01c85e60a4
Finish the convertion started with commit de6cd7599b
("meson: Replace softmmu_ss -> system_ss"). If the
$target_type is 'system', then use the target_system_arch[]
source set :)
Mechanical change doing:
$ sed -i -e s/target_softmmu_arch/target_system_arch/g \
$(git grep -l target_softmmu_arch)
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231004090629.37473-13-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
59 lines
1.3 KiB
Meson
59 lines
1.3 KiB
Meson
ppc_ss = ss.source_set()
|
|
ppc_ss.add(files(
|
|
'cpu-models.c',
|
|
'cpu.c',
|
|
'cpu_init.c',
|
|
'excp_helper.c',
|
|
'gdbstub.c',
|
|
'helper_regs.c',
|
|
))
|
|
|
|
ppc_ss.add(when: 'CONFIG_TCG', if_true: files(
|
|
'dfp_helper.c',
|
|
'fpu_helper.c',
|
|
'int_helper.c',
|
|
'mem_helper.c',
|
|
'misc_helper.c',
|
|
'timebase_helper.c',
|
|
'translate.c',
|
|
'power8-pmu.c',
|
|
))
|
|
|
|
ppc_ss.add(libdecnumber)
|
|
|
|
gen = [
|
|
decodetree.process('insn32.decode',
|
|
extra_args: '--static-decode=decode_insn32'),
|
|
decodetree.process('insn64.decode',
|
|
extra_args: ['--static-decode=decode_insn64',
|
|
'--insnwidth=64']),
|
|
]
|
|
ppc_ss.add(when: 'CONFIG_TCG', if_true: gen)
|
|
|
|
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_system_ss = ss.source_set()
|
|
ppc_system_ss.add(files(
|
|
'arch_dump.c',
|
|
'machine.c',
|
|
'mmu-hash32.c',
|
|
'mmu_common.c',
|
|
'ppc-qmp-cmds.c',
|
|
))
|
|
ppc_system_ss.add(when: 'CONFIG_TCG', if_true: files(
|
|
'mmu_helper.c',
|
|
), if_false: files(
|
|
'tcg-stub.c',
|
|
))
|
|
|
|
ppc_system_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_system_arch += {'ppc': ppc_system_ss}
|