summary refs log tree commit diff
path: root/sysdeps/powerpc/dl-procinfo.c
diff options
context:
space:
mode:
authorCarlos Eduardo Seo <cseo@linux.vnet.ibm.com>2015-12-28 16:36:46 -0200
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-03-08 15:30:06 -0300
commit911569d02dec023d949d96aa7b0e828c91c06f55 (patch)
treee9f75c7614b9901eaa1352f9e4b48b92209c85c9 /sysdeps/powerpc/dl-procinfo.c
parent87da630b22f70355531a759099f7f4b9311fb39d (diff)
downloadglibc-911569d02dec023d949d96aa7b0e828c91c06f55.tar.gz
glibc-911569d02dec023d949d96aa7b0e828c91c06f55.tar.xz
glibc-911569d02dec023d949d96aa7b0e828c91c06f55.zip
powerpc: Fix dl-procinfo HWCAP
HWCAP-related code should had been updated when the 32 bits of HWCAP were
used.  This patch updates the code in dl-procinfo.h to loop through all
the 32 bits in HWCAP and updates _dl_powerpc_cap_flags accordingly.
Diffstat (limited to 'sysdeps/powerpc/dl-procinfo.c')
-rw-r--r--sysdeps/powerpc/dl-procinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/powerpc/dl-procinfo.c b/sysdeps/powerpc/dl-procinfo.c
index 6e7850eebd..0b55906a65 100644
--- a/sysdeps/powerpc/dl-procinfo.c
+++ b/sysdeps/powerpc/dl-procinfo.c
@@ -45,11 +45,12 @@
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_powerpc_cap_flags
 #else
-PROCINFO_CLASS const char _dl_powerpc_cap_flags[60][10]
+PROCINFO_CLASS const char _dl_powerpc_cap_flags[64][10]
 #endif
 #ifndef PROCINFO_DECL
 = {
-    "ppcle", "true_le", "archpmu", "vsx",
+    "ppcle", "true_le", "", "",
+    "", "", "archpmu", "vsx",
     "arch_2_06", "power6x", "dfp", "pa6t",
     "arch_2_05", "ic_snoop", "smt", "booke",
     "cellbe", "power5+", "power5", "power4",