target/mips/meson: Restrict mips-semi.c to TCG
[qemu/ar7.git] / target / mips / meson.build
blob53580633ce0531e50e57e6251cae2954110879df
1 gen = [
2   decodetree.process('mips32r6.decode', extra_args: '--static-decode=decode_mips32r6'),
3   decodetree.process('mips64r6.decode', extra_args: '--static-decode=decode_mips64r6'),
4   decodetree.process('msa32.decode', extra_args: '--static-decode=decode_msa32'),
5   decodetree.process('msa64.decode', extra_args: '--static-decode=decode_msa64'),
8 mips_ss = ss.source_set()
9 mips_ss.add(files(
10   'cpu.c',
11   'gdbstub.c',
13 mips_tcg_ss = ss.source_set()
14 mips_tcg_ss.add(gen)
15 mips_tcg_ss.add(files(
16   'dsp_helper.c',
17   'fpu_helper.c',
18   'lmmi_helper.c',
19   'msa_helper.c',
20   'msa_translate.c',
21   'op_helper.c',
22   'rel6_translate.c',
23   'tlb_helper.c',
24   'translate.c',
25   'translate_addr_const.c',
27 mips_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
29 mips_softmmu_ss = ss.source_set()
30 mips_softmmu_ss.add(files(
31   'addr.c',
32   'cp0_timer.c',
33   'machine.c',
35 mips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files(
36   'cp0_helper.c',
37   'mips-semi.c',
40 mips_ss.add_all(when: 'CONFIG_TCG', if_true: [mips_tcg_ss])
42 target_arch += {'mips': mips_ss}
43 target_softmmu_arch += {'mips': mips_softmmu_ss}