xref: /openbmc/qemu/target/mips/meson.build (revision 21fb03be67fa63670796f7b5d7bcd1194e6a8154)
1c7a9ef75SPhilippe Mathieu-Daudégen = [
23f7a9278SPhilippe Mathieu-Daudé  decodetree.process('mips32r6.decode', extra_args: '--static-decode=decode_mips32r6'),
33f7a9278SPhilippe Mathieu-Daudé  decodetree.process('mips64r6.decode', extra_args: '--static-decode=decode_mips64r6'),
4c7a9ef75SPhilippe Mathieu-Daudé  decodetree.process('msa32.decode', extra_args: '--static-decode=decode_msa32'),
55f21f30dSPhilippe Mathieu-Daudé  decodetree.process('msa64.decode', extra_args: '--static-decode=decode_msa64'),
6c7a9ef75SPhilippe Mathieu-Daudé]
7c7a9ef75SPhilippe Mathieu-Daudé
8abff1abfSPaolo Bonzinimips_ss = ss.source_set()
9abff1abfSPaolo Bonzinimips_ss.add(files(
10abff1abfSPaolo Bonzini  'cpu.c',
118b7322adSPhilippe Mathieu-Daudé  'gdbstub.c',
128b7322adSPhilippe Mathieu-Daudé))
1328975799SPhilippe Mathieu-Daudémips_tcg_ss = ss.source_set()
1428975799SPhilippe Mathieu-Daudémips_tcg_ss.add(gen)
1528975799SPhilippe Mathieu-Daudémips_tcg_ss.add(files(
16abff1abfSPaolo Bonzini  'dsp_helper.c',
17abff1abfSPaolo Bonzini  'fpu_helper.c',
18abff1abfSPaolo Bonzini  'lmmi_helper.c',
19abff1abfSPaolo Bonzini  'msa_helper.c',
2080e64a38SPhilippe Mathieu-Daudé  'msa_translate.c',
21abff1abfSPaolo Bonzini  'op_helper.c',
223f7a9278SPhilippe Mathieu-Daudé  'rel6_translate.c',
234cb213dcSPhilippe Mathieu-Daudé  'tlb_helper.c',
24abff1abfSPaolo Bonzini  'translate.c',
25a685f7d0SPhilippe Mathieu-Daudé  'translate_addr_const.c',
26abff1abfSPaolo Bonzini))
27abff1abfSPaolo Bonzinimips_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
28abff1abfSPaolo Bonzini
29abff1abfSPaolo Bonzinimips_softmmu_ss = ss.source_set()
30abff1abfSPaolo Bonzinimips_softmmu_ss.add(files(
312fd9c5adSPhilippe Mathieu-Daudé  'addr.c',
32abff1abfSPaolo Bonzini  'cp0_timer.c',
33abff1abfSPaolo Bonzini  'machine.c',
34abff1abfSPaolo Bonzini))
358b7322adSPhilippe Mathieu-Daudémips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files(
368b7322adSPhilippe Mathieu-Daudé  'cp0_helper.c',
37*21fb03beSPhilippe Mathieu-Daudé  'mips-semi.c',
388b7322adSPhilippe Mathieu-Daudé))
39abff1abfSPaolo Bonzini
4028975799SPhilippe Mathieu-Daudémips_ss.add_all(when: 'CONFIG_TCG', if_true: [mips_tcg_ss])
4128975799SPhilippe Mathieu-Daudé
42abff1abfSPaolo Bonzinitarget_arch += {'mips': mips_ss}
43abff1abfSPaolo Bonzinitarget_softmmu_arch += {'mips': mips_softmmu_ss}
44