1arm_ss = ss.source_set() 2arm_common_ss = ss.source_set() 3arm_ss.add(files( 4 'gdbstub.c', 5)) 6 7arm_ss.add(when: 'TARGET_AARCH64', if_true: files( 8 'cpu64.c', 9 'gdbstub64.c')) 10 11arm_system_ss = ss.source_set() 12arm_common_system_ss = ss.source_set() 13arm_system_ss.add(files( 14 'arm-qmp-cmds.c', 15)) 16arm_system_ss.add(when: 'CONFIG_KVM', if_true: files('hyp_gdbstub.c', 'kvm.c')) 17arm_system_ss.add(when: 'CONFIG_HVF', if_true: files('hyp_gdbstub.c')) 18 19arm_user_ss = ss.source_set() 20arm_user_ss.add(files('cpu.c')) 21arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files( 22 'cpu32-stubs.c', 23)) 24arm_user_ss.add(files( 25 'debug_helper.c', 26 'helper.c', 27 'vfp_fpscr.c', 28)) 29 30arm_common_system_ss.add(files('cpu.c')) 31arm_common_system_ss.add(when: 'TARGET_AARCH64', if_false: files( 32 'cpu32-stubs.c')) 33arm_common_system_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c')) 34arm_common_system_ss.add(when: 'CONFIG_HVF', if_false: files('hvf-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_common_system_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