/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */1/*2* Copied from arch/arm64/include/asm/hwcap.h3*4* Copyright (C) 2012 ARM Ltd.5* Copyright (C) 2017 SiFive6*/7#ifndef _UAPI_ASM_RISCV_HWCAP_H8#define _UAPI_ASM_RISCV_HWCAP_H910/*11* Linux saves the floating-point registers according to the ISA Linux is12* executing on, as opposed to the ISA the user program is compiled for. This13* is necessary for a handful of esoteric use cases: for example, userspace14* threading libraries must be able to examine the actual machine state in15* order to fully reconstruct the state of a thread.16*/17#define COMPAT_HWCAP_ISA_I (1 << ('I' - 'A'))18#define COMPAT_HWCAP_ISA_M (1 << ('M' - 'A'))19#define COMPAT_HWCAP_ISA_A (1 << ('A' - 'A'))20#define COMPAT_HWCAP_ISA_F (1 << ('F' - 'A'))21#define COMPAT_HWCAP_ISA_D (1 << ('D' - 'A'))22#define COMPAT_HWCAP_ISA_C (1 << ('C' - 'A'))23#define COMPAT_HWCAP_ISA_V (1 << ('V' - 'A'))2425#endif /* _UAPI_ASM_RISCV_HWCAP_H */262728