xref: /openbmc/qemu/target/mips/meson.build (revision 830a72301c35548907ff05399a99f34dab9c867d)
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'),
6ffc672aaSPhilippe Mathieu-Daudé  decodetree.process('tx79.decode', extra_args: '--static-decode=decode_tx79'),
7c7a9ef75SPhilippe Mathieu-Daudé]
8c7a9ef75SPhilippe Mathieu-Daudé
9abff1abfSPaolo Bonzinimips_ss = ss.source_set()
10abff1abfSPaolo Bonzinimips_ss.add(files(
11abff1abfSPaolo Bonzini  'cpu.c',
12*830a7230SPhilippe Mathieu-Daudé  'fpu.c',
138b7322adSPhilippe Mathieu-Daudé  'gdbstub.c',
148b7322adSPhilippe Mathieu-Daudé))
1528975799SPhilippe Mathieu-Daudémips_tcg_ss = ss.source_set()
1628975799SPhilippe Mathieu-Daudémips_tcg_ss.add(gen)
1728975799SPhilippe Mathieu-Daudémips_tcg_ss.add(files(
18abff1abfSPaolo Bonzini  'dsp_helper.c',
19abff1abfSPaolo Bonzini  'fpu_helper.c',
20abff1abfSPaolo Bonzini  'lmmi_helper.c',
21abff1abfSPaolo Bonzini  'msa_helper.c',
2280e64a38SPhilippe Mathieu-Daudé  'msa_translate.c',
23abff1abfSPaolo Bonzini  'op_helper.c',
243f7a9278SPhilippe Mathieu-Daudé  'rel6_translate.c',
254cb213dcSPhilippe Mathieu-Daudé  'tlb_helper.c',
26abff1abfSPaolo Bonzini  'translate.c',
27a685f7d0SPhilippe Mathieu-Daudé  'translate_addr_const.c',
28ffc672aaSPhilippe Mathieu-Daudé  'txx9_translate.c',
29ffc672aaSPhilippe Mathieu-Daudé))
3058ecf15dSPhilippe Mathieu-Daudémips_tcg_ss.add(when: 'TARGET_MIPS64', if_true: files(
31ffc672aaSPhilippe Mathieu-Daudé  'tx79_translate.c',
3258ecf15dSPhilippe Mathieu-Daudé), if_false: files(
33b24db6fcSPhilippe Mathieu-Daudé  'mxu_translate.c',
34b24db6fcSPhilippe Mathieu-Daudé))
35b24db6fcSPhilippe Mathieu-Daudé
36abff1abfSPaolo Bonzinimips_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
37abff1abfSPaolo Bonzini
38abff1abfSPaolo Bonzinimips_softmmu_ss = ss.source_set()
39abff1abfSPaolo Bonzinimips_softmmu_ss.add(files(
402fd9c5adSPhilippe Mathieu-Daudé  'addr.c',
41abff1abfSPaolo Bonzini  'cp0_timer.c',
42abff1abfSPaolo Bonzini  'machine.c',
43abff1abfSPaolo Bonzini))
448b7322adSPhilippe Mathieu-Daudémips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files(
458b7322adSPhilippe Mathieu-Daudé  'cp0_helper.c',
4621fb03beSPhilippe Mathieu-Daudé  'mips-semi.c',
478b7322adSPhilippe Mathieu-Daudé))
48abff1abfSPaolo Bonzini
4928975799SPhilippe Mathieu-Daudémips_ss.add_all(when: 'CONFIG_TCG', if_true: [mips_tcg_ss])
5028975799SPhilippe Mathieu-Daudé
51abff1abfSPaolo Bonzinitarget_arch += {'mips': mips_ss}
52abff1abfSPaolo Bonzinitarget_softmmu_arch += {'mips': mips_softmmu_ss}
53