2021-04-18 16:16:06 +03:00
|
|
|
mips_user_ss = ss.source_set()
|
2021-04-13 11:31:44 +03:00
|
|
|
mips_softmmu_ss = ss.source_set()
|
2020-08-07 13:10:23 +03:00
|
|
|
mips_ss = ss.source_set()
|
|
|
|
mips_ss.add(files(
|
|
|
|
'cpu.c',
|
2021-01-16 15:55:03 +03:00
|
|
|
'fpu.c',
|
2020-12-07 01:45:09 +03:00
|
|
|
'gdbstub.c',
|
2021-01-16 18:32:06 +03:00
|
|
|
'msa.c',
|
2020-12-07 01:45:09 +03:00
|
|
|
))
|
2021-04-13 11:31:44 +03:00
|
|
|
|
|
|
|
if have_system
|
|
|
|
subdir('sysemu')
|
|
|
|
endif
|
|
|
|
|
2021-04-18 16:16:06 +03:00
|
|
|
if 'CONFIG_TCG' in config_all
|
|
|
|
subdir('tcg')
|
|
|
|
endif
|
2021-02-17 23:23:49 +03:00
|
|
|
|
2020-08-07 13:10:23 +03:00
|
|
|
mips_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
|
|
|
|
|
|
|
|
target_arch += {'mips': mips_ss}
|
|
|
|
target_softmmu_arch += {'mips': mips_softmmu_ss}
|
2021-04-18 16:16:06 +03:00
|
|
|
target_user_arch += {'mips': mips_user_ss}
|