18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copied from arch/arm64/include/asm/hwcap.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2012 ARM Ltd. 68c2ecf20Sopenharmony_ci * Copyright (C) 2017 SiFive 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci#ifndef _UAPI_ASM_RISCV_HWCAP_H 98c2ecf20Sopenharmony_ci#define _UAPI_ASM_RISCV_HWCAP_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* 128c2ecf20Sopenharmony_ci * Linux saves the floating-point registers according to the ISA Linux is 138c2ecf20Sopenharmony_ci * executing on, as opposed to the ISA the user program is compiled for. This 148c2ecf20Sopenharmony_ci * is necessary for a handful of esoteric use cases: for example, userspace 158c2ecf20Sopenharmony_ci * threading libraries must be able to examine the actual machine state in 168c2ecf20Sopenharmony_ci * order to fully reconstruct the state of a thread. 178c2ecf20Sopenharmony_ci */ 188c2ecf20Sopenharmony_ci#define COMPAT_HWCAP_ISA_I (1 << ('I' - 'A')) 198c2ecf20Sopenharmony_ci#define COMPAT_HWCAP_ISA_M (1 << ('M' - 'A')) 208c2ecf20Sopenharmony_ci#define COMPAT_HWCAP_ISA_A (1 << ('A' - 'A')) 218c2ecf20Sopenharmony_ci#define COMPAT_HWCAP_ISA_F (1 << ('F' - 'A')) 228c2ecf20Sopenharmony_ci#define COMPAT_HWCAP_ISA_D (1 << ('D' - 'A')) 238c2ecf20Sopenharmony_ci#define COMPAT_HWCAP_ISA_C (1 << ('C' - 'A')) 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#endif /* _UAPI_ASM_RISCV_HWCAP_H */ 26