2020-11-29 22:24:40 +01:00
|
|
|
gen = [
|
2020-12-08 19:00:44 +01:00
|
|
|
decodetree.process('mips32r6.decode', extra_args: '--static-decode=decode_mips32r6'),
|
|
|
|
decodetree.process('mips64r6.decode', extra_args: '--static-decode=decode_mips64r6'),
|
2020-11-29 22:24:40 +01:00
|
|
|
decodetree.process('msa32.decode', extra_args: '--static-decode=decode_msa32'),
|
2020-12-08 18:59:36 +01:00
|
|
|
decodetree.process('msa64.decode', extra_args: '--static-decode=decode_msa64'),
|
2020-11-29 22:24:40 +01:00
|
|
|
]
|
|
|
|
|
2020-08-07 12:10:23 +02:00
|
|
|
mips_ss = ss.source_set()
|
2020-11-29 22:24:40 +01:00
|
|
|
mips_ss.add(gen)
|
2020-08-07 12:10:23 +02:00
|
|
|
mips_ss.add(files(
|
|
|
|
'cpu.c',
|
2020-12-06 23:45:09 +01:00
|
|
|
'gdbstub.c',
|
|
|
|
))
|
|
|
|
mips_ss.add(when: 'CONFIG_TCG', if_true: files(
|
2020-08-07 12:10:23 +02:00
|
|
|
'dsp_helper.c',
|
|
|
|
'fpu_helper.c',
|
|
|
|
'lmmi_helper.c',
|
|
|
|
'msa_helper.c',
|
2020-11-16 05:13:37 +01:00
|
|
|
'msa_translate.c',
|
2020-08-07 12:10:23 +02:00
|
|
|
'op_helper.c',
|
2020-12-08 19:00:44 +01:00
|
|
|
'rel6_translate.c',
|
2020-12-06 23:27:17 +01:00
|
|
|
'tlb_helper.c',
|
2020-08-07 12:10:23 +02:00
|
|
|
'translate.c',
|
2020-12-08 18:55:47 +01:00
|
|
|
'translate_addr_const.c',
|
2020-08-07 12:10:23 +02: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 20:29:00 +01:00
|
|
|
'addr.c',
|
2020-08-07 12:10:23 +02:00
|
|
|
'cp0_timer.c',
|
|
|
|
'machine.c',
|
|
|
|
'mips-semi.c',
|
|
|
|
))
|
2020-12-06 23:45:09 +01:00
|
|
|
mips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files(
|
|
|
|
'cp0_helper.c',
|
|
|
|
))
|
2020-08-07 12:10:23 +02:00
|
|
|
|
|
|
|
target_arch += {'mips': mips_ss}
|
|
|
|
target_softmmu_arch += {'mips': mips_softmmu_ss}
|