2020-08-07 13:10:23 +03:00
|
|
|
arm_ss = ss.source_set()
|
|
|
|
arm_ss.add(files(
|
|
|
|
'cpu.c',
|
|
|
|
'debug_helper.c',
|
|
|
|
'gdbstub.c',
|
|
|
|
'helper.c',
|
|
|
|
'vfp_helper.c',
|
|
|
|
))
|
|
|
|
arm_ss.add(zlib)
|
|
|
|
|
2023-06-06 12:19:29 +03:00
|
|
|
arm_ss.add(when: 'CONFIG_KVM', if_true: files('hyp_gdbstub.c', 'kvm.c', 'kvm64.c'), if_false: files('kvm-stub.c'))
|
|
|
|
arm_ss.add(when: 'CONFIG_HVF', if_true: files('hyp_gdbstub.c'))
|
2020-08-07 13:10:23 +03:00
|
|
|
|
|
|
|
arm_ss.add(when: 'TARGET_AARCH64', if_true: files(
|
|
|
|
'cpu64.c',
|
|
|
|
'gdbstub64.c',
|
|
|
|
))
|
|
|
|
|
2023-06-13 16:33:47 +03:00
|
|
|
arm_system_ss = ss.source_set()
|
|
|
|
arm_system_ss.add(files(
|
2020-08-07 13:10:23 +03:00
|
|
|
'arch_dump.c',
|
|
|
|
'arm-powerctl.c',
|
2023-02-23 18:55:37 +03:00
|
|
|
'arm-qmp-cmds.c',
|
2023-04-26 21:00:01 +03:00
|
|
|
'cortex-regs.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
'machine.c',
|
2022-06-08 21:38:48 +03:00
|
|
|
'ptw.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
))
|
|
|
|
|
2021-09-16 18:54:02 +03:00
|
|
|
subdir('hvf')
|
|
|
|
|
2023-02-17 23:11:29 +03:00
|
|
|
if 'CONFIG_TCG' in config_all
|
|
|
|
subdir('tcg')
|
2023-02-17 23:11:30 +03:00
|
|
|
else
|
|
|
|
arm_ss.add(files('tcg-stubs.c'))
|
2023-02-17 23:11:29 +03:00
|
|
|
endif
|
|
|
|
|
2020-08-07 13:10:23 +03:00
|
|
|
target_arch += {'arm': arm_ss}
|
2023-06-13 16:33:47 +03:00
|
|
|
target_softmmu_arch += {'arm': arm_system_ss}
|