diff options
author | Richard Henderson <rth@twiddle.net> | 2017-07-18 18:40:18 -1000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-07-24 12:42:55 +0100 |
commit | 5dd8990841a9e331d9d4838a116291698208cbb6 (patch) | |
tree | e2d46bda2138d892ebb1ecc210696d88f739008a /hw/pci | |
parent | df95f1a298a3e16c80293343143dcedbe7978f6c (diff) | |
download | qemu-5dd8990841a9e331d9d4838a116291698208cbb6.zip qemu-5dd8990841a9e331d9d4838a116291698208cbb6.tar.gz qemu-5dd8990841a9e331d9d4838a116291698208cbb6.tar.bz2 |
util: Introduce include/qemu/cpuid.h
Clang 3.9 passes the CONFIG_AVX2_OPT configure test. However, the
supplied <cpuid.h> does not contain the bit_AVX2 define that we use
when detecting whether the routine can be enabled.
Introduce a qemu-specific header that uses the compiler's definition
of __cpuid et al, but supplies any missing bit_* definitions needed.
This avoids introducing any extra ifdefs to util/bufferiszero.c, and
allows quite a few to be removed from tcg/i386/tcg-target.inc.c.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20170719044018.18063-1-rth@twiddle.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/pci')
0 files changed, 0 insertions, 0 deletions