2020-08-07 13:10:23 +03:00
|
|
|
i386_ss = ss.source_set()
|
|
|
|
i386_ss.add(files(
|
|
|
|
'cpu.c',
|
|
|
|
'gdbstub.c',
|
|
|
|
'helper.c',
|
|
|
|
'xsave_helper.c',
|
2020-12-12 18:55:13 +03:00
|
|
|
'cpu-dump.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
))
|
2021-10-07 19:17:09 +03:00
|
|
|
i386_ss.add(when: 'CONFIG_SEV', if_true: files('host-cpu.c'))
|
2021-03-22 16:27:40 +03: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 13:10:23 +03:00
|
|
|
|
|
|
|
i386_softmmu_ss = ss.source_set()
|
|
|
|
i386_softmmu_ss.add(files(
|
|
|
|
'arch_dump.c',
|
|
|
|
'arch_memory_mapping.c',
|
|
|
|
'machine.c',
|
|
|
|
'monitor.c',
|
2021-03-22 16:27:54 +03:00
|
|
|
'cpu-sysemu.c',
|
2020-08-07 13:10:23 +03:00
|
|
|
))
|
2021-10-07 19:17:06 +03:00
|
|
|
i386_softmmu_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'), if_false: files('sev-sysemu-stub.c'))
|
|
|
|
|
2021-05-06 18:20:23 +03:00
|
|
|
i386_user_ss = ss.source_set()
|
2020-08-07 13:10:23 +03:00
|
|
|
|
2020-12-12 18:55:08 +03:00
|
|
|
subdir('kvm')
|
2020-12-12 18:55:10 +03:00
|
|
|
subdir('hax')
|
2020-12-12 18:55:09 +03:00
|
|
|
subdir('whpx')
|
2021-04-02 23:25:33 +03:00
|
|
|
subdir('nvmm')
|
2020-08-07 13:10:23 +03:00
|
|
|
subdir('hvf')
|
2020-12-12 18:55:12 +03:00
|
|
|
subdir('tcg')
|
2020-08-07 13:10:23 +03:00
|
|
|
|
|
|
|
target_arch += {'i386': i386_ss}
|
|
|
|
target_softmmu_arch += {'i386': i386_softmmu_ss}
|
2021-05-06 18:20:23 +03:00
|
|
|
target_user_arch += {'i386': i386_user_ss}
|