summaryrefslogtreecommitdiff
path: root/arch/mips/bits
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2019-12-22 12:19:16 +0000
committerRich Felker <dalias@aerifal.cx>2019-12-30 18:14:08 -0500
commita7df9c75f771b51eacf307e0e7431ea6dafab7ab (patch)
treecdb11016e1af4137e828d1521b9dc86f94ee3d62 /arch/mips/bits
parentf296be74d5ab94f6ccac26e129d96e08f1c20538 (diff)
downloadmusl-a7df9c75f771b51eacf307e0e7431ea6dafab7ab.tar.gz
mips: add hwcap bits from linux v5.4
mips application specific isa extensions were previously not exported in hwcaps so userspace could not apply optimized code at runtime. linux commit 38dffe1e4dde1d3174fdce09d67370412843ebb5 MIPS: elf_hwcap: Export userspace ASEs
Diffstat (limited to 'arch/mips/bits')
-rw-r--r--arch/mips/bits/hwcap.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/mips/bits/hwcap.h b/arch/mips/bits/hwcap.h
index 13e86fe7..7986deb7 100644
--- a/arch/mips/bits/hwcap.h
+++ b/arch/mips/bits/hwcap.h
@@ -1,3 +1,14 @@
#define HWCAP_MIPS_R6 (1 << 0)
#define HWCAP_MIPS_MSA (1 << 1)
#define HWCAP_MIPS_CRC32 (1 << 2)
+#define HWCAP_MIPS_MIPS16 (1 << 3)
+#define HWCAP_MIPS_MDMX (1 << 4)
+#define HWCAP_MIPS_MIPS3D (1 << 5)
+#define HWCAP_MIPS_SMARTMIPS (1 << 6)
+#define HWCAP_MIPS_DSP (1 << 7)
+#define HWCAP_MIPS_DSP2 (1 << 8)
+#define HWCAP_MIPS_DSP3 (1 << 9)
+#define HWCAP_MIPS_MIPS16E2 (1 << 10)
+#define HWCAP_LOONGSON_MMI (1 << 11)
+#define HWCAP_LOONGSON_EXT (1 << 12)
+#define HWCAP_LOONGSON_EXT2 (1 << 13)