2020-08-07 12:10:23 +02:00
|
|
|
i386_ss = ss.source_set()
|
|
|
|
i386_ss.add(files(
|
|
|
|
'cpu.c',
|
|
|
|
'gdbstub.c',
|
|
|
|
'helper.c',
|
|
|
|
'xsave_helper.c',
|
|
|
|
))
|
|
|
|
i386_ss.add(when: 'CONFIG_TCG', if_true: files(
|
|
|
|
'bpt_helper.c',
|
|
|
|
'cc_helper.c',
|
|
|
|
'excp_helper.c',
|
|
|
|
'fpu_helper.c',
|
|
|
|
'int_helper.c',
|
|
|
|
'mem_helper.c',
|
|
|
|
'misc_helper.c',
|
|
|
|
'mpx_helper.c',
|
|
|
|
'seg_helper.c',
|
|
|
|
'smm_helper.c',
|
|
|
|
'svm_helper.c',
|
|
|
|
'translate.c'), if_false: files('tcg-stub.c'))
|
|
|
|
i386_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'), if_false: files('sev-stub.c'))
|
|
|
|
|
|
|
|
i386_softmmu_ss = ss.source_set()
|
|
|
|
i386_softmmu_ss.add(files(
|
|
|
|
'arch_dump.c',
|
|
|
|
'arch_memory_mapping.c',
|
|
|
|
'machine.c',
|
|
|
|
'monitor.c',
|
|
|
|
))
|
2020-07-07 11:39:12 +02:00
|
|
|
i386_softmmu_ss.add(when: 'CONFIG_WHPX', if_true: files(
|
|
|
|
'whpx-all.c',
|
|
|
|
'whpx-cpus.c',
|
2020-10-28 03:23:19 +01:00
|
|
|
'whpx-apic.c',
|
2020-07-07 11:39:12 +02:00
|
|
|
))
|
2020-07-07 11:18:49 +02:00
|
|
|
i386_softmmu_ss.add(when: 'CONFIG_HAX', if_true: files(
|
|
|
|
'hax-all.c',
|
|
|
|
'hax-mem.c',
|
|
|
|
'hax-cpus.c',
|
|
|
|
))
|
|
|
|
i386_softmmu_ss.add(when: ['CONFIG_HAX', 'CONFIG_POSIX'], if_true: files('hax-posix.c'))
|
|
|
|
i386_softmmu_ss.add(when: ['CONFIG_HAX', 'CONFIG_WIN32'], if_true: files('hax-windows.c'))
|
2020-08-07 12:10:23 +02:00
|
|
|
|
2020-12-12 16:55:08 +01:00
|
|
|
subdir('kvm')
|
2020-08-07 12:10:23 +02:00
|
|
|
subdir('hvf')
|
|
|
|
|
|
|
|
target_arch += {'i386': i386_ss}
|
|
|
|
target_softmmu_arch += {'i386': i386_softmmu_ss}
|