This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] S390: Support new vector register sections
- From: Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- To: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>, Binutils <binutils at sourceware dot org>
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Fri, 20 Feb 2015 10:51:10 +0100
- Subject: Re: [PATCH] S390: Support new vector register sections
- Authentication-results: sourceware.org; auth=none
- References: <87egpv4hsg dot fsf at br87z6lw dot de dot ibm dot com>
On 02/12/2015 10:10 AM, Andreas Arnez wrote:
> 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.
Applied. Thanks!
-Andreas-