[PATCH] Add hwcap2 bits for POWER9

Carlos Eduardo Seo cseo@linux.vnet.ibm.com
Tue Jan 5 20:27:00 GMT 2016


Hi

This patch adds the HWCAP2 masks for Power ISA 3.0 and VSX IEEE binary 
float 12-bit.

Michael Ellerman (in CC) will add the corresponding bit masks to the kernel.

Regards,

-- 
Carlos Eduardo Seo
Software Engineer - Linux on Power Toolchain
cseo@linux.vnet.ibm.com
-------------- next part --------------
From fd8c710c590083a17e6c95f9cee780d48472f16c Mon Sep 17 00:00:00 2001
From: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Date: Tue, 5 Jan 2016 15:13:18 -0200
Subject: [PATCH] powerpc: Add hwcap2 bits for POWER9.

Added hwcap2 bit masks for Power ISA 3.0 and VSX IEEE binary float 128-bit
features.

2016-01-05  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>

	* sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
	PPC_FEATURE2_HAS_IEEE128.
	* sysdeps/powerpc/dl-procinfo.c:
	(_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
---
 sysdeps/powerpc/bits/hwcap.h  | 3 +++
 sysdeps/powerpc/dl-procinfo.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/sysdeps/powerpc/bits/hwcap.h b/sysdeps/powerpc/bits/hwcap.h
index 12554ca..55b37a4 100644
--- a/sysdeps/powerpc/bits/hwcap.h
+++ b/sysdeps/powerpc/bits/hwcap.h
@@ -66,3 +66,6 @@
 						    instruction.  */
 #define PPC_FEATURE2_HTM_NOSC	   0x01000000 /* Kernel aborts transaction
 						 when a syscall is made.  */
+#define PPC_FEATURE2_ARCH_3_00	   0x00800000 /* ISA 3.0 */
+#define PPC_FEATURE2_HAS_IEEE128   0x00400000 /* VSX IEEE Binary Float
+						 128-bit */
diff --git a/sysdeps/powerpc/dl-procinfo.c b/sysdeps/powerpc/dl-procinfo.c
index a8df5b8..1bbeb89 100644
--- a/sysdeps/powerpc/dl-procinfo.c
+++ b/sysdeps/powerpc/dl-procinfo.c
@@ -61,7 +61,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[60][10]
     "", "", "", "",
     "", "", "", "",
     "", "", "", "",
-    "", "", "", "",
+    "", "", "ieee128", "arch_3_00",
     "htm-nosc", "vcrypto", "tar", "isel",
     "ebb", "dscr", "htm", "arch_2_07",
   }
-- 
2.5.4 (Apple Git-61)



More information about the Libc-alpha mailing list