2020-08-07 12:10:23 +02:00
|
|
|
i386_ss = ss.source_set()
|
|
|
|
i386_ss.add(files(
|
|
|
|
'cpu.c',
|
|
|
|
'gdbstub.c',
|
|
|
|
'helper.c',
|
|
|
|
'xsave_helper.c',
|
2020-12-12 16:55:13 +01:00
|
|
|
'cpu-dump.c',
|
2020-08-07 12:10:23 +02:00
|
|
|
))
|
2021-10-07 18:17:09 +02:00
|
|
|
i386_ss.add(when: 'CONFIG_SEV', if_true: files('host-cpu.c'))
|
2021-03-22 14:27:40 +01:00
|
|
|
|
|
|
|
# x86 cpu type
|
|
|
|
i386_ss.add(when: 'CONFIG_KVM', if_true: files('host-cpu.c'))
|
|
|
|
i386_ss.add(when: 'CONFIG_HVF', if_true: files('host-cpu.c'))
|
2020-08-07 12:10:23 +02:00
|
|
|
|
2023-06-13 15:33:47 +02:00
|
|
|
i386_system_ss = ss.source_set()
|
|
|
|
i386_system_ss.add(files(
|
2020-08-07 12:10:23 +02:00
|
|
|
'arch_dump.c',
|
|
|
|
'arch_memory_mapping.c',
|
|
|
|
'machine.c',
|
|
|
|
'monitor.c',
|
2021-03-22 14:27:54 +01:00
|
|
|
'cpu-sysemu.c',
|
2020-08-07 12:10:23 +02:00
|
|
|
))
|
2023-06-13 15:33:47 +02:00
|
|
|
i386_system_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'), if_false: files('sev-sysemu-stub.c'))
|
2021-10-07 18:17:06 +02:00
|
|
|
|
2021-05-06 17:20:23 +02:00
|
|
|
i386_user_ss = ss.source_set()
|
2020-08-07 12:10:23 +02:00
|
|
|
|
2020-12-12 16:55:08 +01:00
|
|
|
subdir('kvm')
|
2020-12-12 16:55:09 +01:00
|
|
|
subdir('whpx')
|
2021-04-02 22:25:33 +02:00
|
|
|
subdir('nvmm')
|
2020-08-07 12:10:23 +02:00
|
|
|
subdir('hvf')
|
2020-12-12 16:55:12 +01:00
|
|
|
subdir('tcg')
|
2020-08-07 12:10:23 +02:00
|
|
|
|
|
|
|
target_arch += {'i386': i386_ss}
|
2023-10-04 11:06:27 +02:00
|
|
|
target_system_arch += {'i386': i386_system_ss}
|
2021-05-06 17:20:23 +02:00
|
|
|
target_user_arch += {'i386': i386_user_ss}
|