|
|
6c0556 |
From 756c306502498f999fdd494477b9cea1b45e4faf Mon Sep 17 00:00:00 2001
|
|
|
6c0556 |
From: Stefan Liebler <stli@linux.ibm.com>
|
|
|
6c0556 |
Date: Fri, 21 Aug 2020 11:23:17 +0200
|
|
|
6c0556 |
Subject: [PATCH] S390: Sync HWCAP names with kernel by adding aliases [BZ
|
|
|
6c0556 |
#25971]
|
|
|
6c0556 |
|
|
|
6c0556 |
Unfortunately some HWCAP names like HWCAP_S390_VX differs between
|
|
|
6c0556 |
kernel (see <kernel>/arch/s390/include/asm/elf.h) and glibc.
|
|
|
6c0556 |
|
|
|
6c0556 |
Therefore, those HWCAP names from kernel are now introduced as alias
|
|
|
6c0556 |
---
|
|
|
6c0556 |
sysdeps/s390/dl-procinfo.h | 3 +++
|
|
|
6c0556 |
sysdeps/unix/sysv/linux/s390/bits/hwcap.h | 3 +++
|
|
|
6c0556 |
2 files changed, 6 insertions(+)
|
|
|
6c0556 |
|
|
|
6c0556 |
diff --git a/sysdeps/s390/dl-procinfo.h b/sysdeps/s390/dl-procinfo.h
|
|
|
6c0556 |
index 0db4bc39c7..08eee109f7 100644
|
|
|
6c0556 |
--- a/sysdeps/s390/dl-procinfo.h
|
|
|
6c0556 |
+++ b/sysdeps/s390/dl-procinfo.h
|
|
|
6c0556 |
@@ -51,8 +51,11 @@ enum
|
|
|
6c0556 |
HWCAP_S390_HIGH_GPRS = 1 << 9,
|
|
|
6c0556 |
HWCAP_S390_TE = 1 << 10,
|
|
|
6c0556 |
HWCAP_S390_VX = 1 << 11,
|
|
|
6c0556 |
+ HWCAP_S390_VXRS = HWCAP_S390_VX,
|
|
|
6c0556 |
HWCAP_S390_VXD = 1 << 12,
|
|
|
6c0556 |
+ HWCAP_S390_VXRS_BCD = HWCAP_S390_VXD,
|
|
|
6c0556 |
HWCAP_S390_VXE = 1 << 13,
|
|
|
6c0556 |
+ HWCAP_S390_VXRS_EXT = HWCAP_S390_VXE,
|
|
|
6c0556 |
HWCAP_S390_GS = 1 << 14,
|
|
|
6c0556 |
HWCAP_S390_VXRS_EXT2 = 1 << 15,
|
|
|
6c0556 |
HWCAP_S390_VXRS_PDE = 1 << 16,
|
|
|
6c0556 |
diff --git a/sysdeps/unix/sysv/linux/s390/bits/hwcap.h b/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
|
|
|
6c0556 |
index 6adbec018b..f2998ff131 100644
|
|
|
6c0556 |
--- a/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
|
|
|
6c0556 |
+++ b/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
|
|
|
6c0556 |
@@ -36,8 +36,11 @@
|
|
|
6c0556 |
#define HWCAP_S390_HIGH_GPRS 512
|
|
|
6c0556 |
#define HWCAP_S390_TE 1024
|
|
|
6c0556 |
#define HWCAP_S390_VX 2048
|
|
|
6c0556 |
+#define HWCAP_S390_VXRS HWCAP_S390_VX
|
|
|
6c0556 |
#define HWCAP_S390_VXD 4096
|
|
|
6c0556 |
+#define HWCAP_S390_VXRS_BCD HWCAP_S390_VXD
|
|
|
6c0556 |
#define HWCAP_S390_VXE 8192
|
|
|
6c0556 |
+#define HWCAP_S390_VXRS_EXT HWCAP_S390_VXE
|
|
|
6c0556 |
#define HWCAP_S390_GS 16384
|
|
|
6c0556 |
#define HWCAP_S390_VXRS_EXT2 32768
|
|
|
6c0556 |
#define HWCAP_S390_VXRS_PDE 65536
|
|
|
6c0556 |
--
|
|
|
6c0556 |
2.31.1
|
|
|
6c0556 |
|