xref: /qemu/host/include/loongarch64/host/cpuinfo.h (revision ec6f3fc3)
1 /*
2  * SPDX-License-Identifier: GPL-2.0-or-later
3  * Host specific cpu identification for LoongArch
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_LSX             (1u << 1)
11 
12 /* Initialized with a constructor. */
13 extern unsigned cpuinfo;
14 
15 /*
16  * We cannot rely on constructor ordering, so other constructors must
17  * use the function interface rather than the variable above.
18  */
19 unsigned cpuinfo_init(void);
20 
21 #endif /* HOST_CPUINFO_H */
22