diff options
author | Gustavo Romero <gromero@linux.vnet.ibm.com> | 2017-07-20 17:49:02 -0400 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2017-07-25 12:20:42 +0200 |
commit | 55a471f5fe44945414af243613d4590c4e7cd8d1 (patch) | |
tree | 54e51962b2d00e9bb61a7fc3123f15a7fefb58fa /libelf | |
parent | 55cb7dfa7e9afb3660b21e51434641c7287baf11 (diff) | |
download | elfutils-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 'libelf')
-rw-r--r-- | libelf/ChangeLog | 4 | ||||
-rw-r--r-- | libelf/elf.h | 1 |
2 files changed, 5 insertions, 0 deletions
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 <gromero@linux.vnet.ibm.com> + + * elf.h: Add known type in notes segment descriptor for HTM SPRs. + 2017-02-17 Ulf hermann <ulf.hermann@qt.io> * 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 */ |