xref: /qemu/host/include/aarch64/host/cpuinfo.h (revision 940bb5fa)
1 /*
2  * SPDX-License-Identifier: GPL-2.0-or-later
3  * Host specific cpu identification for AArch64.
4  */
5 
6 #ifndef HOST_CPUINFO_H
7 #define HOST_CPUINFO_H
8 
9 #define CPUINFO_ALWAYS          (1u << 0)  /* so cpuinfo is nonzero */
10 #define CPUINFO_LSE             (1u << 1)
11 #define CPUINFO_LSE2            (1u << 2)
12 #define CPUINFO_AES             (1u << 3)
13 #define CPUINFO_PMULL           (1u << 4)
14 #define CPUINFO_BTI             (1u << 5)
15 
16 /* Initialized with a constructor. */
17 extern unsigned cpuinfo;
18 
19 /*
20  * We cannot rely on constructor ordering, so other constructors must
21  * use the function interface rather than the variable above.
22  */
23 unsigned cpuinfo_init(void);
24 
25 #endif /* HOST_CPUINFO_H */
26