aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Eduardo Seo <cseo@linux.vnet.ibm.com>2016-01-05 15:13:18 -0200
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-01-08 11:19:40 -0200
commitd2de9ef7ad35341fd6f098f7e84a1128f2027d0c (patch)
tree8a74657a47f37030618c51b5e4c18401ff779796
parent48025aa9ed3b9a5f5f3b1310eec79b66fb645c17 (diff)
downloadtermbaud-d2de9ef7ad35341fd6f098f7e84a1128f2027d0c.tar.gz
termbaud-d2de9ef7ad35341fd6f098f7e84a1128f2027d0c.tar.xz
termbaud-d2de9ef7ad35341fd6f098f7e84a1128f2027d0c.zip
powerpc: Add hwcap2 bits for POWER9.
Added hwcap2 bit masks for Power ISA 3.0 and VSX IEEE binary float 128-bit features.
-rw-r--r--ChangeLog7
-rw-r--r--sysdeps/powerpc/bits/hwcap.h3
-rw-r--r--sysdeps/powerpc/dl-procinfo.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 56298db37c8..df4d15a2450 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-01-08 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.
+
2016-01-08 John David Anglin <danglin@gcc.gnu.org>
[BZ #19415]
diff --git a/sysdeps/powerpc/bits/hwcap.h b/sysdeps/powerpc/bits/hwcap.h
index e05c30871d0..40572d08fcd 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 66d01abcf9e..6e7850eebde 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",
}