diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2015-02-20 10:39:53 +0100 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2015-02-20 10:39:53 +0100 |
commit | 4ef9f41a9538c9c7e4e540277e437b137cb64c4c (patch) | |
tree | b339e21e87f344be927981f9f144c90bd6593ad9 /binutils | |
parent | dc049bf460bb1243aaaa48745bb8df64bbb3e1cd (diff) | |
download | gdb-4ef9f41a9538c9c7e4e540277e437b137cb64c4c.zip gdb-4ef9f41a9538c9c7e4e540277e437b137cb64c4c.tar.gz gdb-4ef9f41a9538c9c7e4e540277e437b137cb64c4c.tar.bz2 |
S390: Support new vector register sections
The IBM z13 has new 128-bit wide vector registers v0-v31, where v0-v15
include the existing 64-bit wide floating point registers. The Linux
kernel presents the vector registers as two additional register sets,
one for the right halves of v0-v15 and another one for the full
registers v16-v31. Thus a new core file may contain two new register
note sections, and this patch adds support to binutils for them.
bfd/
* elf-bfd.h (elfcore_write_s390_vxrs_low): Add prototype.
(elfcore_write_s390_vxrs_high): Likewise.
* elf.c (elfcore_grok_s390_vxrs_low): New function.
(elfcore_grok_s390_vxrs_high): New function.
(elfcore_grok_note): Call them.
(elfcore_write_s390_vxrs_low): New function.
(elfcore_write_s390_vxrs_high): New function.
(elfcore_write_register_note): Call them.
binutils/
* readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
NT_S390_VXRS_HIGH.
include/elf/
* common.h (NT_S390_VXRS_LOW): New macro.
(NT_S390_VXRS_HIGH): Likewise.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4f45265..21e1f84 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and + NT_S390_VXRS_HIGH. + 2015-02-13 Nick Clifton <nickc@redhat.com> PR binutils/17512 diff --git a/binutils/readelf.c b/binutils/readelf.c index bc7bd88..bfea37a 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -14513,6 +14513,10 @@ get_note_type (unsigned e_type) return _("NT_S390_SYSTEM_CALL (s390 system call restart data)"); case NT_S390_TDB: return _("NT_S390_TDB (s390 transaction diagnostic block)"); + case NT_S390_VXRS_LOW: + return _("NT_S390_VXRS_LOW (s390 vector registers 0-15 upper half)"); + case NT_S390_VXRS_HIGH: + return _("NT_S390_VXRS_HIGH (s390 vector registers 16-31)"); case NT_ARM_VFP: return _("NT_ARM_VFP (arm VFP registers)"); case NT_ARM_TLS: |