1i386_ss = ss.source_set() 2i386_ss.add(files( 3 'cpu.c', 4 'gdbstub.c', 5 'helper.c', 6 'xsave_helper.c', 7)) 8i386_ss.add(when: 'CONFIG_TCG', if_true: files( 9 'bpt_helper.c', 10 'cc_helper.c', 11 'excp_helper.c', 12 'fpu_helper.c', 13 'int_helper.c', 14 'mem_helper.c', 15 'misc_helper.c', 16 'mpx_helper.c', 17 'seg_helper.c', 18 'smm_helper.c', 19 'svm_helper.c', 20 'translate.c'), if_false: files('tcg-stub.c')) 21i386_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c')) 22i386_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'), if_false: files('sev-stub.c')) 23 24i386_softmmu_ss = ss.source_set() 25i386_softmmu_ss.add(files( 26 'arch_dump.c', 27 'arch_memory_mapping.c', 28 'machine.c', 29 'monitor.c', 30)) 31i386_softmmu_ss.add(when: 'CONFIG_HYPERV', if_true: files('hyperv.c'), if_false: files('hyperv-stub.c')) 32i386_softmmu_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c')) 33i386_softmmu_ss.add(when: 'CONFIG_WHPX', if_true: files( 34 'whpx-all.c', 35 'whpx-cpus.c', 36 'whpx-apic.c', 37)) 38i386_softmmu_ss.add(when: 'CONFIG_HAX', if_true: files( 39 'hax-all.c', 40 'hax-mem.c', 41 'hax-cpus.c', 42)) 43i386_softmmu_ss.add(when: ['CONFIG_HAX', 'CONFIG_POSIX'], if_true: files('hax-posix.c')) 44i386_softmmu_ss.add(when: ['CONFIG_HAX', 'CONFIG_WIN32'], if_true: files('hax-windows.c')) 45 46subdir('hvf') 47 48target_arch += {'i386': i386_ss} 49target_softmmu_arch += {'i386': i386_softmmu_ss} 50