xref: /openbmc/qemu/target/mips/meson.build (revision edf64786)
1gen = [
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]
7
8mips_ss = ss.source_set()
9mips_ss.add(gen)
10mips_ss.add(files(
11  'cpu.c',
12  'gdbstub.c',
13))
14mips_ss.add(when: 'CONFIG_TCG', if_true: files(
15  'dsp_helper.c',
16  'fpu_helper.c',
17  'lmmi_helper.c',
18  'msa_helper.c',
19  'msa_translate.c',
20  'op_helper.c',
21  'rel6_translate.c',
22  'tlb_helper.c',
23  'translate.c',
24  'translate_addr_const.c',
25))
26mips_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
27
28mips_softmmu_ss = ss.source_set()
29mips_softmmu_ss.add(files(
30  'addr.c',
31  'cp0_timer.c',
32  'machine.c',
33  'mips-semi.c',
34))
35mips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files(
36  'cp0_helper.c',
37))
38
39target_arch += {'mips': mips_ss}
40target_softmmu_arch += {'mips': mips_softmmu_ss}
41