| 1 | arm_ss = ss.source_set() |
| 2 | arm_common_ss = ss.source_set() |
| 3 | arm_common_system_ss = ss.source_set() |
| 4 | arm_common_user_system_ss = ss.source_set() |
| 5 | arm_system_ss = ss.source_set() |
| 6 | arm_stubs_ss = ss.source_set() |
| 7 | arm_user_ss = ss.source_set() |
| 8 | |
| 9 | arm_common_system_ss.add(files('gdbstub.c')) |
| 10 | arm_user_ss.add(files('gdbstub.c')) |
| 11 | |
| 12 | arm_ss.add(when: 'TARGET_AARCH64', if_true: files( |
| 13 | 'cpu64.c', |
| 14 | )) |
| 15 | |
| 16 | arm_common_ss.add(files( |
| 17 | 'mmuidx.c', |
| 18 | )) |
| 19 | arm_common_user_system_ss.add(files( |
| 20 | 'cpregs-gcs.c', |
| 21 | 'cpregs-pmu.c', |
| 22 | 'cpu-max.c', |
| 23 | 'debug_helper.c', |
| 24 | 'helper.c', |
| 25 | 'vfp_fpscr.c', |
| 26 | )) |
| 27 | arm_common_user_system_ss.add(when: 'TARGET_AARCH64', if_true: files( |
| 28 | 'gdbstub64.c' |
| 29 | )) |
| 30 | |
| 31 | arm_common_system_ss.add(files( |
| 32 | 'arm-qmp-cmds.c', |
| 33 | )) |
| 34 | arm_system_ss.add(when: 'CONFIG_KVM', if_true: files('hyp_gdbstub.c', 'kvm.c')) |
| 35 | arm_system_ss.add(when: 'CONFIG_HVF', if_true: files('hyp_gdbstub.c')) |
| 36 | |
| 37 | arm_user_ss.add(files('cpu.c')) |
| 38 | arm_stubs_ss.add(files( |
| 39 | 'cpu32-stubs.c', |
| 40 | 'gicv5-stubs.c', |
| 41 | 'kvm-stub.c', |
| 42 | 'tcg-stubs.c', |
| 43 | )) |
| 44 | arm_user_ss.add(files( |
| 45 | 'el2-stubs.c', |
| 46 | 'cpregs-omap-stub.c', |
| 47 | )) |
| 48 | arm_user_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING', |
| 49 | if_true: files('common-semi-target.c')) |
| 50 | |
| 51 | arm_common_system_ss.add(files('cpu.c')) |
| 52 | arm_common_system_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING', |
| 53 | if_true: files('common-semi-target.c')) |
| 54 | arm_common_system_ss.add(files( |
| 55 | 'arch_dump.c', |
| 56 | 'arm-powerctl.c', |
| 57 | 'cortex-regs.c', |
| 58 | 'cpregs-omap.c', |
| 59 | 'cpu-irq.c', |
| 60 | 'machine.c', |
| 61 | 'ptw.c', |
| 62 | )) |
| 63 | |
| 64 | subdir('hvf') |
| 65 | subdir('whpx') |
| 66 | |
| 67 | if 'CONFIG_TCG' in config_all_accel |
| 68 | subdir('tcg') |
| 69 | endif |
| 70 | |
| 71 | arm_user_ss.add_all(arm_common_user_system_ss) |
| 72 | arm_common_system_ss.add_all(arm_common_user_system_ss) |
| 73 | |
| 74 | target_arch += {'arm': arm_ss} |
| 75 | target_system_arch += {'arm': arm_system_ss} |
| 76 | target_user_arch += {'arm': arm_user_ss} |
| 77 | target_common_arch += {'arm': arm_common_ss} |
| 78 | target_common_system_arch += {'arm': arm_common_system_ss} |
| 79 | target_stubs_arch += {'arm': arm_stubs_ss} |