1arm_ss = ss.source_set() 2arm_ss.add(files( 3 'cpu.c', 4 'debug_helper.c', 5 'gdbstub.c', 6 'helper.c', 7 'vfp_helper.c', 8)) 9arm_ss.add(zlib) 10 11arm_ss.add(when: 'CONFIG_KVM', if_true: files('hyp_gdbstub.c', 'kvm.c'), if_false: files('kvm-stub.c')) 12arm_ss.add(when: 'CONFIG_HVF', if_true: files('hyp_gdbstub.c')) 13 14arm_ss.add(when: 'TARGET_AARCH64', if_true: files( 15 'cpu64.c', 16 'gdbstub64.c', 17)) 18 19arm_system_ss = ss.source_set() 20arm_system_ss.add(files( 21 'arch_dump.c', 22 'arm-powerctl.c', 23 'arm-qmp-cmds.c', 24 'cortex-regs.c', 25 'machine.c', 26 'ptw.c', 27)) 28 29arm_user_ss = ss.source_set() 30 31subdir('hvf') 32 33if 'CONFIG_TCG' in config_all_accel 34 subdir('tcg') 35else 36 arm_ss.add(files('tcg-stubs.c')) 37endif 38 39target_arch += {'arm': arm_ss} 40target_system_arch += {'arm': arm_system_ss} 41target_user_arch += {'arm': arm_user_ss} 42