2020-08-07 12:10:23 +02:00
|
|
|
mips_ss = ss.source_set()
|
|
|
|
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',
|
|
|
|
'op_helper.c',
|
2020-12-06 23:27:17 +01:00
|
|
|
'tlb_helper.c',
|
2020-08-07 12:10:23 +02: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 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}
|