mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
02eacf3137
Only declare sev_enabled() and sev_es_enabled() when CONFIG_SEV is set, to allow the compiler to elide unused code. Remove unnecessary stubs. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20211007161716.453984-17-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
37 lines
831 B
Meson
37 lines
831 B
Meson
i386_ss = ss.source_set()
|
|
i386_ss.add(files(
|
|
'cpu.c',
|
|
'gdbstub.c',
|
|
'helper.c',
|
|
'xsave_helper.c',
|
|
'cpu-dump.c',
|
|
))
|
|
i386_ss.add(when: 'CONFIG_SEV', if_true: files('host-cpu.c'))
|
|
|
|
# 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'))
|
|
|
|
i386_softmmu_ss = ss.source_set()
|
|
i386_softmmu_ss.add(files(
|
|
'arch_dump.c',
|
|
'arch_memory_mapping.c',
|
|
'machine.c',
|
|
'monitor.c',
|
|
'cpu-sysemu.c',
|
|
))
|
|
i386_softmmu_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'), if_false: files('sev-sysemu-stub.c'))
|
|
|
|
i386_user_ss = ss.source_set()
|
|
|
|
subdir('kvm')
|
|
subdir('hax')
|
|
subdir('whpx')
|
|
subdir('nvmm')
|
|
subdir('hvf')
|
|
subdir('tcg')
|
|
|
|
target_arch += {'i386': i386_ss}
|
|
target_softmmu_arch += {'i386': i386_softmmu_ss}
|
|
target_user_arch += {'i386': i386_user_ss}
|