meson: Replace softmmu_ss -> system_ss
[qemu/ar7.git] / target / s390x / kvm / meson.build
blob37253f75bf579045b4b454b245f3f407472232c7
2 s390x_ss.add(when: 'CONFIG_KVM', if_true: files(
3   'kvm.c'
4 ), if_false: files(
5   'stubs.c'
6 ))
8 # Newer kernels on s390 check for an S390_PGSTE program header and
9 # enable the pgste page table extensions in that case. This makes
10 # the vm.allocate_pgste sysctl unnecessary. We enable this program
11 # header if
12 #  - we build on s390x
13 #  - we build the system emulation for s390x (qemu-system-s390x)
14 #  - KVM is enabled
15 #  - the linker supports --s390-pgste
16 if host_machine.cpu_family() == 's390x' and cc.has_link_argument('-Wl,--s390-pgste')
17   s390x_system_ss.add(when: 'CONFIG_KVM',
18                        if_true: declare_dependency(link_args: ['-Wl,--s390-pgste']))
19 endif