xref: /openbmc/qemu/target/arm/meson.build (revision 0d70c5aa1bbfb0f5099d53d6e084337a8246cc0c)
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  'cpregs-pmu.c',
26  'debug_helper.c',
27  'helper.c',
28  'vfp_fpscr.c',
29))
30
31arm_common_system_ss.add(files('cpu.c'))
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(when: 'CONFIG_HVF', if_false: files('hvf-stub.c'))
36arm_common_system_ss.add(files(
37  'arch_dump.c',
38  'arm-powerctl.c',
39  'cortex-regs.c',
40  'cpregs-pmu.c',
41  'debug_helper.c',
42  'helper.c',
43  'machine.c',
44  'ptw.c',
45  'vfp_fpscr.c',
46))
47
48subdir('hvf')
49
50if 'CONFIG_TCG' in config_all_accel
51   subdir('tcg')
52else
53    arm_common_system_ss.add(files('tcg-stubs.c'))
54endif
55
56target_arch += {'arm': arm_ss}
57target_system_arch += {'arm': arm_system_ss}
58target_user_arch += {'arm': arm_user_ss}
59target_common_arch += {'arm': arm_common_ss}
60target_common_system_arch += {'arm': arm_common_system_ss}
61