1gen = decodetree.process('insns.decode') 2 3loongarch_ss = ss.source_set() 4loongarch_ss.add(files( 5 'cpu.c', 6 'gdbstub.c', 7)) 8 9loongarch_system_ss = ss.source_set() 10loongarch_system_ss.add(files( 11 'loongarch-qmp-cmds.c', 12 'machine.c', 13)) 14 15common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen]) 16 17subdir('tcg') 18 19target_arch += {'loongarch': loongarch_ss} 20target_system_arch += {'loongarch': loongarch_system_ss} 21subdir('kvm') 22