xref: /openbmc/qemu/target/i386/meson.build (revision e3a6e0da)
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('whpx-all.c'))
34i386_softmmu_ss.add(when: ['CONFIG_POSIX', 'CONFIG_HAX'], if_true: files('hax-all.c', 'hax-mem.c', 'hax-posix.c'))
35i386_softmmu_ss.add(when: ['CONFIG_WIN32', 'CONFIG_HAX'], if_true: files('hax-all.c', 'hax-mem.c', 'hax-windows.c'))
36
37subdir('hvf')
38
39target_arch += {'i386': i386_ss}
40target_softmmu_arch += {'i386': i386_softmmu_ss}
41