mirror of
https://github.com/mborgerson/xemu.git
synced 2025-10-29 19:21:14 +00:00
Reviewed-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
23 lines
567 B
C
23 lines
567 B
C
/*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Host specific cpu identification for LoongArch
|
|
*/
|
|
|
|
#ifndef HOST_CPUINFO_H
|
|
#define HOST_CPUINFO_H
|
|
|
|
#define CPUINFO_ALWAYS (1u << 0) /* so cpuinfo is nonzero */
|
|
#define CPUINFO_LSX (1u << 1)
|
|
#define CPUINFO_LASX (1u << 2)
|
|
|
|
/* Initialized with a constructor. */
|
|
extern unsigned cpuinfo;
|
|
|
|
/*
|
|
* We cannot rely on constructor ordering, so other constructors must
|
|
* use the function interface rather than the variable above.
|
|
*/
|
|
unsigned cpuinfo_init(void);
|
|
|
|
#endif /* HOST_CPUINFO_H */
|