xref: /openbmc/qemu/target/mips/meson.build (revision ee2e67da)
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  decodetree.process('tx79.decode', extra_args: '--static-decode=decode_tx79'),
7]
8
9mips_ss = ss.source_set()
10mips_ss.add(files(
11  'cpu.c',
12  'gdbstub.c',
13))
14mips_tcg_ss = ss.source_set()
15mips_tcg_ss.add(gen)
16mips_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',
28))
29mips_ss.add(when: ['CONFIG_TCG', 'TARGET_MIPS64'], if_true: files(
30  'tx79_translate.c',
31))
32mips_tcg_ss.add(when: 'TARGET_MIPS64', if_false: files(
33  'mxu_translate.c',
34))
35
36mips_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
37
38mips_softmmu_ss = ss.source_set()
39mips_softmmu_ss.add(files(
40  'addr.c',
41  'cp0_timer.c',
42  'machine.c',
43))
44mips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files(
45  'cp0_helper.c',
46  'mips-semi.c',
47))
48
49mips_ss.add_all(when: 'CONFIG_TCG', if_true: [mips_tcg_ss])
50
51target_arch += {'mips': mips_ss}
52target_softmmu_arch += {'mips': mips_softmmu_ss}
53