Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging
[qemu/ar7.git] / target / mips / meson.build
blob3b131c4a7f61ca36c18d369db4625b20f4843082
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'),
6   decodetree.process('tx79.decode', extra_args: '--static-decode=decode_tx79'),
9 mips_ss = ss.source_set()
10 mips_ss.add(files(
11   'cpu.c',
12   'gdbstub.c',
14 mips_tcg_ss = ss.source_set()
15 mips_tcg_ss.add(gen)
16 mips_tcg_ss.add(files(
17   'dsp_helper.c',
18   'fpu_helper.c',
19   'lmmi_helper.c',
20   'msa_helper.c',
21   'msa_translate.c',
22   'op_helper.c',
23   'rel6_translate.c',
24   'tlb_helper.c',
25   'translate.c',
26   'translate_addr_const.c',
27   'txx9_translate.c',
29 mips_ss.add(when: ['CONFIG_TCG', 'TARGET_MIPS64'], if_true: files(
30   'tx79_translate.c',
32 mips_tcg_ss.add(when: 'TARGET_MIPS64', if_false: files(
33   'mxu_translate.c',
36 mips_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
38 mips_softmmu_ss = ss.source_set()
39 mips_softmmu_ss.add(files(
40   'addr.c',
41   'cp0_timer.c',
42   'machine.c',
44 mips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files(
45   'cp0_helper.c',
46   'mips-semi.c',
49 mips_ss.add_all(when: 'CONFIG_TCG', if_true: [mips_tcg_ss])
51 target_arch += {'mips': mips_ss}
52 target_softmmu_arch += {'mips': mips_softmmu_ss}