2020-11-30 00:24:40 +03:00
|
|
|
gen = [
|
2020-12-08 21:00:44 +03:00
|
|
|
decodetree.process('mips32r6.decode', extra_args: '--static-decode=decode_mips32r6'),
|
|
|
|
decodetree.process('mips64r6.decode', extra_args: '--static-decode=decode_mips64r6'),
|
2020-11-30 00:24:40 +03:00
|
|
|
decodetree.process('msa32.decode', extra_args: '--static-decode=decode_msa32'),
|
2020-12-08 20:59:36 +03:00
|
|
|
decodetree.process('msa64.decode', extra_args: '--static-decode=decode_msa64'),
|
2021-02-14 19:57:24 +03:00
|
|
|
decodetree.process('tx79.decode', extra_args: '--static-decode=decode_tx79'),
|
2020-11-30 00:24:40 +03:00
|
|
|
]
|
|
|
|
|
2020-08-07 13:10:23 +03:00
|
|
|
mips_ss = ss.source_set()
|
|
|
|
mips_ss.add(files(
|
|
|
|
'cpu.c',
|
2020-12-07 01:45:09 +03:00
|
|
|
'gdbstub.c',
|
|
|
|
))
|
2021-02-24 20:37:27 +03:00
|
|
|
mips_tcg_ss = ss.source_set()
|
|
|
|
mips_tcg_ss.add(gen)
|
|
|
|
mips_tcg_ss.add(files(
|
2020-08-07 13:10:23 +03:00
|
|
|
'dsp_helper.c',
|
|
|
|
'fpu_helper.c',
|
|
|
|
'lmmi_helper.c',
|
|
|
|
'msa_helper.c',
|
2020-11-16 07:13:37 +03:00
|
|
|
'msa_translate.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
'op_helper.c',
|
2020-12-08 21:00:44 +03:00
|
|
|
'rel6_translate.c',
|
2020-12-07 01:27:17 +03:00
|
|
|
'tlb_helper.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
'translate.c',
|
2020-12-08 20:55:47 +03:00
|
|
|
'translate_addr_const.c',
|
2021-02-14 19:57:24 +03:00
|
|
|
'txx9_translate.c',
|
|
|
|
))
|
|
|
|
mips_ss.add(when: ['CONFIG_TCG', 'TARGET_MIPS64'], if_true: files(
|
|
|
|
'tx79_translate.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
))
|
2021-02-17 23:23:49 +03:00
|
|
|
mips_tcg_ss.add(when: 'TARGET_MIPS64', if_false: files(
|
|
|
|
'mxu_translate.c',
|
|
|
|
))
|
|
|
|
|
2020-08-07 13:10:23 +03:00
|
|
|
mips_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
|
|
|
|
|
|
|
|
mips_softmmu_ss = ss.source_set()
|
|
|
|
mips_softmmu_ss.add(files(
|
2020-12-06 22:29:00 +03:00
|
|
|
'addr.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
'cp0_timer.c',
|
|
|
|
'machine.c',
|
|
|
|
))
|
2020-12-07 01:45:09 +03:00
|
|
|
mips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files(
|
|
|
|
'cp0_helper.c',
|
2021-01-16 15:46:09 +03:00
|
|
|
'mips-semi.c',
|
2020-12-07 01:45:09 +03:00
|
|
|
))
|
2020-08-07 13:10:23 +03:00
|
|
|
|
2021-02-24 20:37:27 +03:00
|
|
|
mips_ss.add_all(when: 'CONFIG_TCG', if_true: [mips_tcg_ss])
|
|
|
|
|
2020-08-07 13:10:23 +03:00
|
|
|
target_arch += {'mips': mips_ss}
|
|
|
|
target_softmmu_arch += {'mips': mips_softmmu_ss}
|