1
2
3
4
5
6
7#ifndef QEMU_CPUID_H
8#define QEMU_CPUID_H
9
10#ifndef CONFIG_CPUID_H
11# error "<cpuid.h> is unusable with this compiler"
12#endif
13
14#include <cpuid.h>
15
16
17
18
19
20#ifndef bit_CMOV
21#define bit_CMOV (1 << 15)
22#endif
23#ifndef bit_SSE2
24#define bit_SSE2 (1 << 26)
25#endif
26
27
28#ifndef bit_SSE4_1
29#define bit_SSE4_1 (1 << 19)
30#endif
31#ifndef bit_MOVBE
32#define bit_MOVBE (1 << 22)
33#endif
34#ifndef bit_OSXSAVE
35#define bit_OSXSAVE (1 << 27)
36#endif
37#ifndef bit_AVX
38#define bit_AVX (1 << 28)
39#endif
40
41
42#ifndef bit_BMI
43#define bit_BMI (1 << 3)
44#endif
45#ifndef bit_AVX2
46#define bit_AVX2 (1 << 5)
47#endif
48#ifndef bit_BMI2
49#define bit_BMI2 (1 << 8)
50#endif
51
52
53#ifndef bit_LZCNT
54#define bit_LZCNT (1 << 5)
55#endif
56
57#endif
58