1c7a9ef75SPhilippe Mathieu-Daudégen = [ 23f7a9278SPhilippe Mathieu-Daudé decodetree.process('mips32r6.decode', extra_args: '--static-decode=decode_mips32r6'), 33f7a9278SPhilippe Mathieu-Daudé decodetree.process('mips64r6.decode', extra_args: '--static-decode=decode_mips64r6'), 4c7a9ef75SPhilippe Mathieu-Daudé decodetree.process('msa32.decode', extra_args: '--static-decode=decode_msa32'), 55f21f30dSPhilippe Mathieu-Daudé decodetree.process('msa64.decode', extra_args: '--static-decode=decode_msa64'), 6ffc672aaSPhilippe Mathieu-Daudé decodetree.process('tx79.decode', extra_args: '--static-decode=decode_tx79'), 7c7a9ef75SPhilippe Mathieu-Daudé] 8c7a9ef75SPhilippe Mathieu-Daudé 90a31c16cSPhilippe Mathieu-Daudémips_user_ss = ss.source_set() 10*85d8da3fSPhilippe Mathieu-Daudémips_softmmu_ss = ss.source_set() 11abff1abfSPaolo Bonzinimips_ss = ss.source_set() 12abff1abfSPaolo Bonzinimips_ss.add(files( 13abff1abfSPaolo Bonzini 'cpu.c', 14830a7230SPhilippe Mathieu-Daudé 'fpu.c', 158b7322adSPhilippe Mathieu-Daudé 'gdbstub.c', 16fed50ffdSPhilippe Mathieu-Daudé 'msa.c', 178b7322adSPhilippe Mathieu-Daudé)) 18*85d8da3fSPhilippe Mathieu-Daudé 19*85d8da3fSPhilippe Mathieu-Daudéif have_system 20*85d8da3fSPhilippe Mathieu-Daudé subdir('sysemu') 21*85d8da3fSPhilippe Mathieu-Daudéendif 22*85d8da3fSPhilippe Mathieu-Daudé 2328975799SPhilippe Mathieu-Daudémips_tcg_ss = ss.source_set() 2428975799SPhilippe Mathieu-Daudémips_tcg_ss.add(gen) 2528975799SPhilippe Mathieu-Daudémips_tcg_ss.add(files( 26abff1abfSPaolo Bonzini 'dsp_helper.c', 27abff1abfSPaolo Bonzini 'fpu_helper.c', 286f4aec6aSPhilippe Mathieu-Daudé 'ldst_helper.c', 29abff1abfSPaolo Bonzini 'lmmi_helper.c', 30abff1abfSPaolo Bonzini 'msa_helper.c', 3180e64a38SPhilippe Mathieu-Daudé 'msa_translate.c', 32abff1abfSPaolo Bonzini 'op_helper.c', 333f7a9278SPhilippe Mathieu-Daudé 'rel6_translate.c', 344cb213dcSPhilippe Mathieu-Daudé 'tlb_helper.c', 35abff1abfSPaolo Bonzini 'translate.c', 36a685f7d0SPhilippe Mathieu-Daudé 'translate_addr_const.c', 37ffc672aaSPhilippe Mathieu-Daudé 'txx9_translate.c', 38ffc672aaSPhilippe Mathieu-Daudé)) 3958ecf15dSPhilippe Mathieu-Daudémips_tcg_ss.add(when: 'TARGET_MIPS64', if_true: files( 40ffc672aaSPhilippe Mathieu-Daudé 'tx79_translate.c', 4158ecf15dSPhilippe Mathieu-Daudé), if_false: files( 42b24db6fcSPhilippe Mathieu-Daudé 'mxu_translate.c', 43b24db6fcSPhilippe Mathieu-Daudé)) 440a31c16cSPhilippe Mathieu-Daudéif 'CONFIG_TCG' in config_all 450a31c16cSPhilippe Mathieu-Daudé subdir('tcg') 460a31c16cSPhilippe Mathieu-Daudéendif 47b24db6fcSPhilippe Mathieu-Daudé 48abff1abfSPaolo Bonzinimips_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c')) 49abff1abfSPaolo Bonzini 508b7322adSPhilippe Mathieu-Daudémips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files( 518b7322adSPhilippe Mathieu-Daudé 'cp0_helper.c', 5221fb03beSPhilippe Mathieu-Daudé 'mips-semi.c', 538b7322adSPhilippe Mathieu-Daudé)) 54abff1abfSPaolo Bonzini 5528975799SPhilippe Mathieu-Daudémips_ss.add_all(when: 'CONFIG_TCG', if_true: [mips_tcg_ss]) 5628975799SPhilippe Mathieu-Daudé 57abff1abfSPaolo Bonzinitarget_arch += {'mips': mips_ss} 58abff1abfSPaolo Bonzinitarget_softmmu_arch += {'mips': mips_softmmu_ss} 590a31c16cSPhilippe Mathieu-Daudétarget_user_arch += {'mips': mips_user_ss} 60