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