|
|
548bcb |
From 25251c0707fe34f30a27381a5fabc35435a96621 Mon Sep 17 00:00:00 2001
|
|
|
548bcb |
From: Stefan Liebler <stli@linux.ibm.com>
|
|
|
548bcb |
Date: Tue, 16 Feb 2021 16:18:56 +0100
|
|
|
548bcb |
Subject: [PATCH] S390: Add new hwcap values.
|
|
|
548bcb |
|
|
|
548bcb |
The new hwcap values indicate support for arch14 architecture.
|
|
|
548bcb |
---
|
|
|
548bcb |
sysdeps/s390/dl-procinfo.c | 5 +++--
|
|
|
548bcb |
sysdeps/s390/dl-procinfo.h | 4 +++-
|
|
|
548bcb |
sysdeps/unix/sysv/linux/s390/bits/hwcap.h | 2 ++
|
|
|
548bcb |
3 files changed, 8 insertions(+), 3 deletions(-)
|
|
|
548bcb |
|
|
|
548bcb |
diff --git a/sysdeps/s390/dl-procinfo.c b/sysdeps/s390/dl-procinfo.c
|
|
|
548bcb |
index 0c334a2551..c174e27b35 100644
|
|
|
548bcb |
--- a/sysdeps/s390/dl-procinfo.c
|
|
|
548bcb |
+++ b/sysdeps/s390/dl-procinfo.c
|
|
|
548bcb |
@@ -46,12 +46,13 @@
|
|
|
548bcb |
#if !defined PROCINFO_DECL && defined SHARED
|
|
|
548bcb |
._dl_s390_cap_flags
|
|
|
548bcb |
#else
|
|
|
548bcb |
-PROCINFO_CLASS const char _dl_s390_cap_flags[19][9]
|
|
|
548bcb |
+PROCINFO_CLASS const char _dl_s390_cap_flags[21][9]
|
|
|
548bcb |
#endif
|
|
|
548bcb |
#ifndef PROCINFO_DECL
|
|
|
548bcb |
= {
|
|
|
548bcb |
"esan3", "zarch", "stfle", "msa", "ldisp", "eimm", "dfp", "edat", "etf3eh",
|
|
|
548bcb |
- "highgprs", "te", "vx", "vxd", "vxe", "gs", "vxe2", "vxp", "sort", "dflt"
|
|
|
548bcb |
+ "highgprs", "te", "vx", "vxd", "vxe", "gs", "vxe2", "vxp", "sort", "dflt",
|
|
|
548bcb |
+ "vxp2", "nnpa"
|
|
|
548bcb |
}
|
|
|
548bcb |
#endif
|
|
|
548bcb |
#if !defined SHARED || defined PROCINFO_DECL
|
|
|
548bcb |
diff --git a/sysdeps/s390/dl-procinfo.h b/sysdeps/s390/dl-procinfo.h
|
|
|
548bcb |
index 9e1a8c7ba9..2d9c305808 100644
|
|
|
548bcb |
--- a/sysdeps/s390/dl-procinfo.h
|
|
|
548bcb |
+++ b/sysdeps/s390/dl-procinfo.h
|
|
|
548bcb |
@@ -21,7 +21,7 @@
|
|
|
548bcb |
#define _DL_PROCINFO_H 1
|
|
|
548bcb |
#include <ldsodefs.h>
|
|
|
548bcb |
|
|
|
548bcb |
-#define _DL_HWCAP_COUNT 19
|
|
|
548bcb |
+#define _DL_HWCAP_COUNT 21
|
|
|
548bcb |
|
|
|
548bcb |
#define _DL_PLATFORMS_COUNT 10
|
|
|
548bcb |
|
|
|
548bcb |
@@ -61,6 +61,8 @@ enum
|
|
|
548bcb |
HWCAP_S390_VXRS_PDE = 1 << 16,
|
|
|
548bcb |
HWCAP_S390_SORT = 1 << 17,
|
|
|
548bcb |
HWCAP_S390_DFLT = 1 << 18,
|
|
|
548bcb |
+ HWCAP_S390_VXRS_PDE2 = 1 << 19,
|
|
|
548bcb |
+ HWCAP_S390_NNPA = 1 << 20,
|
|
|
548bcb |
};
|
|
|
548bcb |
|
|
|
548bcb |
#define HWCAP_IMPORTANT (HWCAP_S390_ZARCH | HWCAP_S390_LDISP \
|
|
|
548bcb |
diff --git a/sysdeps/unix/sysv/linux/s390/bits/hwcap.h b/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
|
|
|
548bcb |
index 696616e779..e9bd3684db 100644
|
|
|
548bcb |
--- a/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
|
|
|
548bcb |
+++ b/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
|
|
|
548bcb |
@@ -46,3 +46,5 @@
|
|
|
548bcb |
#define HWCAP_S390_VXRS_PDE 65536
|
|
|
548bcb |
#define HWCAP_S390_SORT 131072
|
|
|
548bcb |
#define HWCAP_S390_DFLT 262144
|
|
|
548bcb |
+#define HWCAP_S390_VXRS_PDE2 524288
|
|
|
548bcb |
+#define HWCAP_S390_NNPA 1048576
|
|
|
548bcb |
--
|
|
|
548bcb |
2.31.1
|
|
|
548bcb |
|