summaryrefslogtreecommitdiff
path: root/libebl
diff options
context:
space:
mode:
authorGustavo Romero <gromero@linux.vnet.ibm.com>2017-07-20 17:49:02 -0400
committerMark Wielaard <mark@klomp.org>2017-07-25 12:20:42 +0200
commit55a471f5fe44945414af243613d4590c4e7cd8d1 (patch)
tree54e51962b2d00e9bb61a7fc3123f15a7fefb58fa /libebl
parent55cb7dfa7e9afb3660b21e51434641c7287baf11 (diff)
downloadelfutils-55a471f5fe44945414af243613d4590c4e7cd8d1.tar.gz
ppc64: Add HTM SPRs support to readelf
Since POWER8, PowerPC 64 supports Hardware Transactional Memory, which has three special purpose registers associated to it: tfhar, tfiar, and texasr. This commit add HTM SPRs set as known note type so it's possible to use 'readelf --notes' to inspect the HTM SPRs in a coredump file generated in such a machines. Signed-off-by: Gustavo Romero <gromero@linux.vnet.ibm.com>
Diffstat (limited to 'libebl')
-rw-r--r--libebl/ChangeLog4
-rw-r--r--libebl/eblcorenotetypename.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index f4474496..334bf224 100644
--- a/libebl/ChangeLog
+++ b/libebl/ChangeLog
@@ -1,3 +1,7 @@
+2017-07-19 Gustavo Romero <gromero@linux.vnet.ibm.com>
+
+ * eblcorenotetypename.c: Add ppc64 HTM SPRs note as known type.
+
2017-07-20 Mark Wielaard <mark@klomp.org>
* Makefile.am (gen_SOURCES): Add ebl_data_marker_symbol.c.
diff --git a/libebl/eblcorenotetypename.c b/libebl/eblcorenotetypename.c
index fa81dbec..d3a56fa9 100644
--- a/libebl/eblcorenotetypename.c
+++ b/libebl/eblcorenotetypename.c
@@ -75,6 +75,7 @@ ebl_core_note_type_name (Ebl *ebl, uint32_t type, char *buf, size_t len)
KNOWNSTYPE (PPC_VMX);
KNOWNSTYPE (PPC_SPE);
KNOWNSTYPE (PPC_VSX);
+ KNOWNSTYPE (PPC_TM_SPR);
KNOWNSTYPE (386_TLS);
KNOWNSTYPE (386_IOPERM);
KNOWNSTYPE (X86_XSTATE);