1arm_ss = ss.source_set() 2arm_common_ss = ss.source_set() 3arm_ss.add(files( 4 'gdbstub.c', 5)) 6arm_ss.add(zlib) 7 8arm_ss.add(when: 'TARGET_AARCH64', if_true: files( 9 'cpu64.c', 10 'gdbstub64.c')) 11 12arm_system_ss = ss.source_set() 13arm_common_system_ss = ss.source_set() 14arm_system_ss.add(files( 15 'arm-qmp-cmds.c', 16)) 17arm_system_ss.add(when: 'CONFIG_KVM', if_true: files('hyp_gdbstub.c', 'kvm.c')) 18arm_system_ss.add(when: 'CONFIG_HVF', if_true: files('hyp_gdbstub.c')) 19 20arm_user_ss = ss.source_set() 21arm_user_ss.add(files('cpu.c')) 22arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files( 23 'cpu32-stubs.c', 24)) 25arm_user_ss.add(files( 26 'debug_helper.c', 27 'helper.c', 28 'vfp_fpscr.c', 29)) 30 31arm_common_system_ss.add(files('cpu.c'), capstone) 32arm_common_system_ss.add(when: 'TARGET_AARCH64', if_false: files( 33 'cpu32-stubs.c')) 34arm_common_system_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c')) 35arm_common_system_ss.add(files( 36 'arch_dump.c', 37 'arm-powerctl.c', 38 'cortex-regs.c', 39 'debug_helper.c', 40 'helper.c', 41 'machine.c', 42 'ptw.c', 43 'vfp_fpscr.c', 44)) 45 46subdir('hvf') 47 48if 'CONFIG_TCG' in config_all_accel 49 subdir('tcg') 50else 51 arm_ss.add(files('tcg-stubs.c')) 52endif 53 54target_arch += {'arm': arm_ss} 55target_system_arch += {'arm': arm_system_ss} 56target_user_arch += {'arm': arm_user_ss} 57target_common_arch += {'arm': arm_common_ss} 58target_common_system_arch += {'arm': arm_common_system_ss} 59