From 55a471f5fe44945414af243613d4590c4e7cd8d1 Mon Sep 17 00:00:00 2001 From: Gustavo Romero Date: Thu, 20 Jul 2017 17:49:02 -0400 Subject: 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 --- libelf/ChangeLog | 4 ++++ libelf/elf.h | 1 + 2 files changed, 5 insertions(+) (limited to 'libelf') diff --git a/libelf/ChangeLog b/libelf/ChangeLog index 214a4f7e..b17e1c5e 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,3 +1,7 @@ +2017-07-19 Gustavo Romero + + * elf.h: Add known type in notes segment descriptor for HTM SPRs. + 2017-02-17 Ulf hermann * Makefile.am: Add libelf_so_DEPS, which include libeu.a, diff --git a/libelf/elf.h b/libelf/elf.h index b6112d9d..fa35203d 100644 --- a/libelf/elf.h +++ b/libelf/elf.h @@ -763,6 +763,7 @@ typedef struct #define NT_PPC_SPE 0x101 /* PowerPC SPE/EVR registers */ #define NT_PPC_VSX 0x102 /* PowerPC VSX registers */ #define NT_386_TLS 0x200 /* i386 TLS slots (struct user_desc) */ +#define NT_PPC_TM_SPR 0x10c /* PowerPC HW Transactional Memory SPRs */ #define NT_386_IOPERM 0x201 /* x86 io permission bitmap (1=deny) */ #define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */ #define NT_S390_HIGH_GPRS 0x300 /* s390 upper register halves */ -- cgit v1.2.1