public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [COMMITTED] S390: Add new hwcap values.
@ 2021-02-16 15:40 Stefan Liebler
  2021-02-16 15:59 ` Florian Weimer
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Liebler @ 2021-02-16 15:40 UTC (permalink / raw)
  To: libc-alpha; +Cc: Stefan Liebler

The new hwcap values indicate support for arch14 architecture.
---
 sysdeps/s390/dl-procinfo.c                | 5 +++--
 sysdeps/s390/dl-procinfo.h                | 4 +++-
 sysdeps/unix/sysv/linux/s390/bits/hwcap.h | 2 ++
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/sysdeps/s390/dl-procinfo.c b/sysdeps/s390/dl-procinfo.c
index 0c334a2551..c174e27b35 100644
--- a/sysdeps/s390/dl-procinfo.c
+++ b/sysdeps/s390/dl-procinfo.c
@@ -46,12 +46,13 @@
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_s390_cap_flags
 #else
-PROCINFO_CLASS const char _dl_s390_cap_flags[19][9]
+PROCINFO_CLASS const char _dl_s390_cap_flags[21][9]
 #endif
 #ifndef PROCINFO_DECL
 = {
      "esan3", "zarch", "stfle", "msa", "ldisp", "eimm", "dfp", "edat", "etf3eh",
-     "highgprs", "te", "vx", "vxd", "vxe", "gs", "vxe2", "vxp", "sort", "dflt"
+     "highgprs", "te", "vx", "vxd", "vxe", "gs", "vxe2", "vxp", "sort", "dflt",
+     "vxp2", "nnpa"
   }
 #endif
 #if !defined SHARED || defined PROCINFO_DECL
diff --git a/sysdeps/s390/dl-procinfo.h b/sysdeps/s390/dl-procinfo.h
index 9e1a8c7ba9..2d9c305808 100644
--- a/sysdeps/s390/dl-procinfo.h
+++ b/sysdeps/s390/dl-procinfo.h
@@ -21,7 +21,7 @@
 #define _DL_PROCINFO_H	1
 #include <ldsodefs.h>
 
-#define _DL_HWCAP_COUNT 19
+#define _DL_HWCAP_COUNT 21
 
 #define _DL_PLATFORMS_COUNT	10
 
@@ -61,6 +61,8 @@ enum
   HWCAP_S390_VXRS_PDE = 1 << 16,
   HWCAP_S390_SORT = 1 << 17,
   HWCAP_S390_DFLT = 1 << 18,
+  HWCAP_S390_VXRS_PDE2 = 1 << 19,
+  HWCAP_S390_NNPA = 1 << 20,
 };
 
 #define HWCAP_IMPORTANT (HWCAP_S390_ZARCH | HWCAP_S390_LDISP \
diff --git a/sysdeps/unix/sysv/linux/s390/bits/hwcap.h b/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
index 696616e779..e9bd3684db 100644
--- a/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
+++ b/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
@@ -46,3 +46,5 @@
 #define HWCAP_S390_VXRS_PDE     65536
 #define HWCAP_S390_SORT         131072
 #define HWCAP_S390_DFLT         262144
+#define HWCAP_S390_VXRS_PDE2    524288
+#define HWCAP_S390_NNPA         1048576
-- 
2.25.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [COMMITTED] S390: Add new hwcap values.
  2021-02-16 15:40 [COMMITTED] S390: Add new hwcap values Stefan Liebler
@ 2021-02-16 15:59 ` Florian Weimer
  2021-02-16 16:21   ` Stefan Liebler
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2021-02-16 15:59 UTC (permalink / raw)
  To: Stefan Liebler via Libc-alpha; +Cc: Stefan Liebler

* Stefan Liebler via Libc-alpha:

> The new hwcap values indicate support for arch14 architecture.

I hope it's deliberate not to update HWCAP_IMPORTANT.

Should we add an arch14 glibc-hwcaps subdirectory, or can that wait?

Thanks,
Florian
-- 
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [COMMITTED] S390: Add new hwcap values.
  2021-02-16 15:59 ` Florian Weimer
@ 2021-02-16 16:21   ` Stefan Liebler
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Liebler @ 2021-02-16 16:21 UTC (permalink / raw)
  To: Florian Weimer, Stefan Liebler via Libc-alpha

On 2/16/21 4:59 PM, Florian Weimer wrote:
> * Stefan Liebler via Libc-alpha:
> 
>> The new hwcap values indicate support for arch14 architecture.
> 
> I hope it's deliberate not to update HWCAP_IMPORTANT.
> 
> Should we add an arch14 glibc-hwcaps subdirectory, or can that wait?
> 
> Thanks,
> Florian
> 

Hi Florian,

I won't update HWCAP_IMPORTANT.

Even if in future the libraries are not loaded anymore in a subdirectory
with AT_PLATFORM string, I want to keep it in sync with the glibc-hwcaps
subdirectory mechanism. As soon as I know the name, I will post a
further patch. This will also introduce a further libmarkermod5.so in
order to extend tst-glibc-hwcaps.

Thanks,
Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-16 16:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 15:40 [COMMITTED] S390: Add new hwcap values Stefan Liebler
2021-02-16 15:59 ` Florian Weimer
2021-02-16 16:21   ` Stefan Liebler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).