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',
|
|
|
|
))
|
|
|
|
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',
|
|
|
|
'op_helper.c',
|
2020-12-07 01:27:17 +03:00
|
|
|
'tlb_helper.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
'translate.c',
|
|
|
|
))
|
|
|
|
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}
|