0ca52a5fed
These helpers will be also used for HVF. Aside from reformatting a couple of comments for 'checkpatch.pl' and updating meson to compile 'hyp_gdbstub.c', this is just code motion. Signed-off-by: Francesco Cagnin <fcagnin@quarkslab.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20230601153107.81955-2-fcagnin@quarkslab.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
39 lines
761 B
Meson
39 lines
761 B
Meson
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)
|
|
|
|
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'))
|
|
|
|
arm_ss.add(when: 'TARGET_AARCH64', if_true: files(
|
|
'cpu64.c',
|
|
'gdbstub64.c',
|
|
))
|
|
|
|
arm_softmmu_ss = ss.source_set()
|
|
arm_softmmu_ss.add(files(
|
|
'arch_dump.c',
|
|
'arm-powerctl.c',
|
|
'arm-qmp-cmds.c',
|
|
'cortex-regs.c',
|
|
'machine.c',
|
|
'ptw.c',
|
|
))
|
|
|
|
subdir('hvf')
|
|
|
|
if 'CONFIG_TCG' in config_all
|
|
subdir('tcg')
|
|
else
|
|
arm_ss.add(files('tcg-stubs.c'))
|
|
endif
|
|
|
|
target_arch += {'arm': arm_ss}
|
|
target_softmmu_arch += {'arm': arm_softmmu_ss}
|