Paolo Bonzini | abff1ab | 2020-08-07 12:10:23 +0200 | [diff] [blame] | 1 | i386_ss = ss.source_set() |
| 2 | i386_ss.add(files( |
| 3 | 'cpu.c', |
| 4 | 'gdbstub.c', |
| 5 | 'helper.c', |
| 6 | 'xsave_helper.c', |
| 7 | )) |
| 8 | i386_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')) |
| 21 | i386_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c')) |
| 22 | i386_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'), if_false: files('sev-stub.c')) |
| 23 | |
| 24 | i386_softmmu_ss = ss.source_set() |
| 25 | i386_softmmu_ss.add(files( |
| 26 | 'arch_dump.c', |
| 27 | 'arch_memory_mapping.c', |
| 28 | 'machine.c', |
| 29 | 'monitor.c', |
| 30 | )) |
| 31 | i386_softmmu_ss.add(when: 'CONFIG_HYPERV', if_true: files('hyperv.c'), if_false: files('hyperv-stub.c')) |
| 32 | i386_softmmu_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c')) |
Claudio Fontana | 8ef39ec | 2020-07-07 11:39:12 +0200 | [diff] [blame] | 33 | i386_softmmu_ss.add(when: 'CONFIG_WHPX', if_true: files( |
| 34 | 'whpx-all.c', |
| 35 | 'whpx-cpus.c', |
| 36 | )) |
Claudio Fontana | e92558e | 2020-07-07 11:18:49 +0200 | [diff] [blame] | 37 | i386_softmmu_ss.add(when: 'CONFIG_HAX', if_true: files( |
| 38 | 'hax-all.c', |
| 39 | 'hax-mem.c', |
| 40 | 'hax-cpus.c', |
| 41 | )) |
| 42 | i386_softmmu_ss.add(when: ['CONFIG_HAX', 'CONFIG_POSIX'], if_true: files('hax-posix.c')) |
| 43 | i386_softmmu_ss.add(when: ['CONFIG_HAX', 'CONFIG_WIN32'], if_true: files('hax-windows.c')) |
Paolo Bonzini | abff1ab | 2020-08-07 12:10:23 +0200 | [diff] [blame] | 44 | |
| 45 | subdir('hvf') |
| 46 | |
| 47 | target_arch += {'i386': i386_ss} |
| 48 | target_softmmu_arch += {'i386': i386_softmmu_ss} |