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', |
Claudio Fontana | 0c36af8 | 2020-12-12 16:55:13 +0100 | [diff] [blame] | 7 | 'cpu-dump.c', |
Paolo Bonzini | abff1ab | 2020-08-07 12:10:23 +0200 | [diff] [blame] | 8 | )) |
Philippe Mathieu-Daudé | 02eacf3 | 2021-10-07 18:17:09 +0200 | [diff] [blame] | 9 | i386_ss.add(when: 'CONFIG_SEV', if_true: files('host-cpu.c')) |
Claudio Fontana | f5cc5a5 | 2021-03-22 14:27:40 +0100 | [diff] [blame] | 10 | |
| 11 | # x86 cpu type |
| 12 | i386_ss.add(when: 'CONFIG_KVM', if_true: files('host-cpu.c')) |
| 13 | i386_ss.add(when: 'CONFIG_HVF', if_true: files('host-cpu.c')) |
Paolo Bonzini | abff1ab | 2020-08-07 12:10:23 +0200 | [diff] [blame] | 14 | |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 15 | i386_system_ss = ss.source_set() |
| 16 | i386_system_ss.add(files( |
Paolo Bonzini | abff1ab | 2020-08-07 12:10:23 +0200 | [diff] [blame] | 17 | 'arch_dump.c', |
| 18 | 'arch_memory_mapping.c', |
| 19 | 'machine.c', |
| 20 | 'monitor.c', |
Claudio Fontana | 79f1a68 | 2021-03-22 14:27:54 +0100 | [diff] [blame] | 21 | 'cpu-sysemu.c', |
Paolo Bonzini | abff1ab | 2020-08-07 12:10:23 +0200 | [diff] [blame] | 22 | )) |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 23 | i386_system_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'), if_false: files('sev-sysemu-stub.c')) |
Philippe Mathieu-Daudé | e24b333 | 2021-10-07 18:17:06 +0200 | [diff] [blame] | 24 | |
Paolo Bonzini | 222f3e6 | 2021-05-06 11:20:23 -0400 | [diff] [blame] | 25 | i386_user_ss = ss.source_set() |
Paolo Bonzini | abff1ab | 2020-08-07 12:10:23 +0200 | [diff] [blame] | 26 | |
Claudio Fontana | a9dc68d | 2020-12-12 16:55:08 +0100 | [diff] [blame] | 27 | subdir('kvm') |
Claudio Fontana | 1fc33bb | 2020-12-12 16:55:09 +0100 | [diff] [blame] | 28 | subdir('whpx') |
Reinoud Zandijk | fdc8635 | 2021-04-02 22:25:33 +0200 | [diff] [blame] | 29 | subdir('nvmm') |
Paolo Bonzini | abff1ab | 2020-08-07 12:10:23 +0200 | [diff] [blame] | 30 | subdir('hvf') |
Claudio Fontana | 1b248f1 | 2020-12-12 16:55:12 +0100 | [diff] [blame] | 31 | subdir('tcg') |
Paolo Bonzini | abff1ab | 2020-08-07 12:10:23 +0200 | [diff] [blame] | 32 | |
| 33 | target_arch += {'i386': i386_ss} |
Philippe Mathieu-Daudé | 01c85e6 | 2023-10-04 11:06:27 +0200 | [diff] [blame] | 34 | target_system_arch += {'i386': i386_system_ss} |
Paolo Bonzini | 222f3e6 | 2021-05-06 11:20:23 -0400 | [diff] [blame] | 35 | target_user_arch += {'i386': i386_user_ss} |