blob: 46dc3f5ee99f9681639fa4d0e38802ecd9eb208c [file] [log] [blame]
Masahiro Yamadad9c52522019-07-25 16:58:31 +09001/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
Palmer Dabbelte2c0cdf2017-07-10 18:07:09 -07002/*
3 * Copied from arch/arm64/include/asm/hwcap.h
4 *
5 * Copyright (C) 2012 ARM Ltd.
6 * Copyright (C) 2017 SiFive
Palmer Dabbelte2c0cdf2017-07-10 18:07:09 -07007 */
Zong Li6b57ba82019-10-28 00:42:47 -07008#ifndef _UAPI_ASM_RISCV_HWCAP_H
9#define _UAPI_ASM_RISCV_HWCAP_H
Palmer Dabbelte2c0cdf2017-07-10 18:07:09 -070010
11/*
12 * Linux saves the floating-point registers according to the ISA Linux is
13 * executing on, as opposed to the ISA the user program is compiled for. This
Tobias Klauser08b59852020-07-03 15:49:11 +020014 * is necessary for a handful of esoteric use cases: for example, userspace
Palmer Dabbelte2c0cdf2017-07-10 18:07:09 -070015 * threading libraries must be able to examine the actual machine state in
16 * order to fully reconstruct the state of a thread.
17 */
18#define COMPAT_HWCAP_ISA_I (1 << ('I' - 'A'))
19#define COMPAT_HWCAP_ISA_M (1 << ('M' - 'A'))
20#define COMPAT_HWCAP_ISA_A (1 << ('A' - 'A'))
21#define COMPAT_HWCAP_ISA_F (1 << ('F' - 'A'))
22#define COMPAT_HWCAP_ISA_D (1 << ('D' - 'A'))
23#define COMPAT_HWCAP_ISA_C (1 << ('C' - 'A'))
24
Zong Li6b57ba82019-10-28 00:42:47 -070025#endif /* _UAPI_ASM_RISCV_HWCAP_H */