2021-04-18 16:16:06 +03:00
|
|
|
mips_user_ss = ss.source_set()
|
2023-06-13 16:33:47 +03:00
|
|
|
mips_system_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
|
|
|
|
|
2023-09-29 12:40:03 +03:00
|
|
|
if 'CONFIG_TCG' in config_all_accel
|
2021-04-18 16:16:06 +03:00
|
|
|
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}
|
2023-10-04 12:06:27 +03:00
|
|
|
target_system_arch += {'mips': mips_system_ss}
|
2021-04-18 16:16:06 +03:00
|
|
|
target_user_arch += {'mips': mips_user_ss}
|