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'),
|
2020-11-30 00:24:40 +03:00
|
|
|
]
|
|
|
|
|
2020-08-07 13:10:23 +03:00
|
|
|
mips_ss = ss.source_set()
|
2020-11-30 00:24:40 +03:00
|
|
|
mips_ss.add(gen)
|
2020-08-07 13:10:23 +03:00
|
|
|
mips_ss.add(files(
|
|
|
|
'cpu.c',
|
2020-12-07 01:45:09 +03:00
|
|
|
'gdbstub.c',
|
|
|
|
))
|
|
|
|
mips_ss.add(when: 'CONFIG_TCG', if_true: 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',
|
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',
|
|
|
|
'mips-semi.c',
|
|
|
|
))
|
2020-12-07 01:45:09 +03:00
|
|
|
mips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files(
|
|
|
|
'cp0_helper.c',
|
|
|
|
))
|
2020-08-07 13:10:23 +03:00
|
|
|
|
|
|
|
target_arch += {'mips': mips_ss}
|
|
|
|
target_softmmu_arch += {'mips': mips_softmmu_ss}
|