blob: 7c74bfa8591b279e506f64451de406f9d718691d [file] [log] [blame]
Paolo Bonziniabff1ab2020-08-07 12:10:23 +02001i386_ss = ss.source_set()
2i386_ss.add(files(
3 'cpu.c',
4 'gdbstub.c',
5 'helper.c',
6 'xsave_helper.c',
Claudio Fontana0c36af82020-12-12 16:55:13 +01007 'cpu-dump.c',
Paolo Bonziniabff1ab2020-08-07 12:10:23 +02008))
Philippe Mathieu-Daudé02eacf32021-10-07 18:17:09 +02009i386_ss.add(when: 'CONFIG_SEV', if_true: files('host-cpu.c'))
Claudio Fontanaf5cc5a52021-03-22 14:27:40 +010010
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'))
Paolo Bonziniabff1ab2020-08-07 12:10:23 +020014
Philippe Mathieu-Daudéde6cd752023-06-13 15:33:47 +020015i386_system_ss = ss.source_set()
16i386_system_ss.add(files(
Paolo Bonziniabff1ab2020-08-07 12:10:23 +020017 'arch_dump.c',
18 'arch_memory_mapping.c',
19 'machine.c',
20 'monitor.c',
Claudio Fontana79f1a682021-03-22 14:27:54 +010021 'cpu-sysemu.c',
Paolo Bonziniabff1ab2020-08-07 12:10:23 +020022))
Philippe Mathieu-Daudéde6cd752023-06-13 15:33:47 +020023i386_system_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'), if_false: files('sev-sysemu-stub.c'))
Philippe Mathieu-Daudée24b3332021-10-07 18:17:06 +020024
Paolo Bonzini222f3e62021-05-06 11:20:23 -040025i386_user_ss = ss.source_set()
Paolo Bonziniabff1ab2020-08-07 12:10:23 +020026
Claudio Fontanaa9dc68d2020-12-12 16:55:08 +010027subdir('kvm')
Claudio Fontana1fc33bb2020-12-12 16:55:09 +010028subdir('whpx')
Reinoud Zandijkfdc86352021-04-02 22:25:33 +020029subdir('nvmm')
Paolo Bonziniabff1ab2020-08-07 12:10:23 +020030subdir('hvf')
Claudio Fontana1b248f12020-12-12 16:55:12 +010031subdir('tcg')
Paolo Bonziniabff1ab2020-08-07 12:10:23 +020032
33target_arch += {'i386': i386_ss}
Philippe Mathieu-Daudé01c85e62023-10-04 11:06:27 +020034target_system_arch += {'i386': i386_system_ss}
Paolo Bonzini222f3e62021-05-06 11:20:23 -040035target_user_arch += {'i386': i386_user_ss}