[PATCH] Add HWCAP_SVE define

Jeff Johnston jjohnstn@redhat.com
Wed Nov 22 20:07:00 GMT 2017


Hi Alan,

The newlib part of this change has been checked in.  You need to submit the
include/elf/common.h portion to the
binutils list.

-- Jeff J.

On Wed, Nov 22, 2017 at 1:36 PM, Alan Hayward <Alan.Hayward@arm.com> wrote:

> This patch adds the Aarch64 SVE specific HWCAP_SVE define.
>
> The Linux kernel changes for Aaarch64 SVE have recently been pulled
> into the head:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/
> linux.git/commit/?id=c9b012e5f4a1d01dfa8abc6318211a67ba7d5db2
> Although not due to be in a kernel release until early 2018, we'd
> like to make sure any newlib changes are ready for a similar time.
>
> I haven't run any testsuites as the changes are should not effect them.
>
> Is this ok?
>
> Thanks,
> Alan.
>
>
>  include/elf/common.h      | 1 +
>  newlib/libc/include/elf.h | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/include/elf/common.h b/include/elf/common.h
> index cd3bcdd2b2cc28e4e7bca1f5d0dd17497b8c5956..
> 686dca81d96a41d1fb2511e1daf34eb1013e35c6 100644
> --- a/include/elf/common.h
> +++ b/include/elf/common.h
> @@ -565,6 +565,7 @@
>                                         /*   note name must be "LINUX".  */
>  #define NT_ARM_HW_WATCH        0x403           /* AArch hardware
> watchpoint registers */
>                                         /*   note name must be "LINUX".  */
> +#define NT_ARM_SVE     0x405           /* ARM Scalable Vector Extension
> registers */
>  #define NT_SIGINFO     0x53494749      /* Fields of siginfo_t.  */
>  #define NT_FILE                0x46494c45      /* Description of mapped
> files.  */
>
> diff --git a/newlib/libc/include/elf.h b/newlib/libc/include/elf.h
> index 1b62db530f39b796aea4b2cfea99950430181c9f..
> 79d3b974bd517a49f39fdb52c7928e4dd5f9c181 100644
> --- a/newlib/libc/include/elf.h
> +++ b/newlib/libc/include/elf.h
> @@ -686,6 +686,7 @@ typedef struct {
>  #define NT_ARM_HW_BREAK        0x402
>  #define NT_ARM_HW_WATCH        0x403
>  #define NT_ARM_SYSTEM_CALL     0x404
> +#define NT_ARM_SVE     0x405
>  #define NT_METAG_CBUF  0x500
>  #define NT_METAG_RPIPE 0x501
>  #define NT_METAG_TLS   0x502
>
>



More information about the Newlib mailing list