xref: /openbmc/qemu/target/i386/meson.build (revision 0d70c5aa1bbfb0f5099d53d6e084337a8246cc0c)
1i386_ss = ss.source_set()
2i386_ss.add(files(
3  'cpu.c',
4  'gdbstub.c',
5  'helper.c',
6  'xsave_helper.c',
7  'cpu-dump.c',
8))
9i386_ss.add(when: 'CONFIG_SEV', if_true: files('host-cpu.c', 'confidential-guest.c'))
10
11# x86 cpu type
12i386_ss.add(when: 'CONFIG_KVM', if_true: files('host-cpu.c'))
13i386_ss.add(when: 'CONFIG_HVF', if_true: files('host-cpu.c'))
14i386_ss.add(when: 'CONFIG_WHPX', if_true: files('host-cpu.c'))
15i386_ss.add(when: 'CONFIG_NVMM', if_true: files('host-cpu.c'))
16
17i386_system_ss = ss.source_set()
18i386_system_ss.add(files(
19  'arch_dump.c',
20  'arch_memory_mapping.c',
21  'machine.c',
22  'monitor.c',
23  'cpu-apic.c',
24  'cpu-system.c',
25))
26i386_system_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'),
27                                       if_false: files('sev-system-stub.c'))
28
29i386_user_ss = ss.source_set()
30
31subdir('kvm')
32subdir('whpx')
33subdir('nvmm')
34subdir('hvf')
35subdir('tcg')
36subdir('emulate')
37
38target_arch += {'i386': i386_ss}
39target_system_arch += {'i386': i386_system_ss}
40target_user_arch += {'i386': i386_user_ss}
41