]> git.proxmox.com Git - mirror_qemu.git/commit
configure: Provide option to explicitly disable AVX2
authorLiam Merwick <Liam.Merwick@oracle.com>
Fri, 19 Oct 2018 20:38:59 +0000 (21:38 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 24 Oct 2018 06:39:10 +0000 (07:39 +0100)
commit86583a07c4a7d55b04db5942a70d176f5299144a
tree5693a0c5354822b29c82f7573eba34c6834e5faf
parentba27877618abcc4906db9a9168dbbb3104c1a3d0
configure: Provide option to explicitly disable AVX2

The configure script detects if the compiler has AVX2 support and
automatically sets avx2_opt="yes" which in turn defines CONFIG_AVX2_OPT.
There is no way of explicitly overriding this setting so this commit adds
two command-line options: --enable-avx2 and --disable-avx2.

The default behaviour, when no option is specified, is to maintain the
current behaviour and enable AVX2 if the compiler supports it.

Signed-off-by: Liam Merwick <Liam.Merwick@oracle.com>
Reviewed-by: Darren Kenny <Darren.Kenny@oracle.com>
Reviewed-by: Mark Kanda <Mark.Kanda@oracle.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
configure