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 29subdir('hvf') 30 31if 'CONFIG_TCG' in config_all_accel 32 subdir('tcg') 33else 34 arm_ss.add(files('tcg-stubs.c')) 35endif 36 37target_arch += {'arm': arm_ss} 38target_system_arch += {'arm': arm_system_ss} 39