On Tue, Jun 07, 2016 at 10:28:42PM +1000, Anton Blanchard wrote:
> From: Anton Blanchard
>
> We need the PPC_FEATURE2_HAS_HTM bit in a subsequent patch, so
> add the PowerPC AT_HWCAP2 definitions.
>
> Signed-off-by: Anton Blanchard
Applied to ppc-for-2.7.
Paolo or Peter: since this is a change to PPC specific bits, it seems
reasonable to go through my tree although it's technically a generic
header. If someone wants to drop an explicit Ack, that wouldn't hurt
of course.
> ---
>
> diff --git a/include/elf.h b/include/elf.h
> index 28d448b..8533b2a 100644
> --- a/include/elf.h
> +++ b/include/elf.h
> @@ -477,6 +477,19 @@ typedef struct {
> #define PPC_FEATURE_TRUE_LE 0x0002
> #define PPC_FEATURE_PPC_LE 0x0001
>
> +/* Bits present in AT_HWCAP2 for PowerPC. */
> +
> +#define PPC_FEATURE2_ARCH_2_07 0x8000
> +#define PPC_FEATURE2_HAS_HTM0x4000
> +#define PPC_FEATURE2_HAS_DSCR 0x2000
> +#define PPC_FEATURE2_HAS_EBB0x1000
> +#define PPC_FEATURE2_HAS_ISEL 0x0800
> +#define PPC_FEATURE2_HAS_TAR0x0400
> +#define PPC_FEATURE2_HAS_VEC_CRYPTO 0x0200
> +#define PPC_FEATURE2_HTM_NOSC 0x0100
> +#define PPC_FEATURE2_ARCH_3_00 0x0080
> +#define PPC_FEATURE2_HAS_IEEE1280x0040
> +
> /* Bits present in AT_HWCAP for Sparc. */
>
> #define HWCAP_SPARC_FLUSH 0x0001
>
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev