PowerPC: sync hwcap.h capabilities

Message ID 53A823E5.4070205@linux.vnet.ibm.com
State Committed
Headers

Commit Message

Adhemerval Zanella Netto June 23, 2014, 12:56 p.m. UTC
  Linux commit dd58a092c4202f2bd490adab7285b3ff77f8e467 added the
PPC_FEATURE2_VEC_CRYPTO auvx capability to indicate whether to
hardware supports vector crypto hardware instructions.  This patch
adds its definition to powerpc hwcap bits.

If no one opposes I will commit it in a couple of hours.

--

2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>

	* sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
	macro: hardware supports Vector Crypto instructions.

---
  

Comments

Andreas Schwab June 23, 2014, 1:03 p.m. UTC | #1
Adhemerval Zanella <azanella@linux.vnet.ibm.com> writes:

> +#define PPC_FEATURE2_HAS_VEC_CRYPTO  0x02000000  /* Target support vector
> +						    instruction.  */

s/support/&s/

Andreas.
  
Adhemerval Zanella Netto June 23, 2014, 2:41 p.m. UTC | #2
On 23-06-2014 10:03, Andreas Schwab wrote:
> Adhemerval Zanella <azanella@linux.vnet.ibm.com> writes:
>
>> +#define PPC_FEATURE2_HAS_VEC_CRYPTO  0x02000000  /* Target support vector
>> +						    instruction.  */
> s/support/&s/
>
> Andreas.
>
Thanks, fixed and push upstream as db22400947e1c82153e5270d23fed53fc1e3a659.
  

Patch

diff --git a/sysdeps/powerpc/bits/hwcap.h b/sysdeps/powerpc/bits/hwcap.h
index 7daec91..508885a 100644
--- a/sysdeps/powerpc/bits/hwcap.h
+++ b/sysdeps/powerpc/bits/hwcap.h
@@ -62,3 +62,5 @@ 
 #define PPC_FEATURE2_HAS_EBB       0x10000000 /* Event Base Branching */
 #define PPC_FEATURE2_HAS_ISEL      0x08000000 /* Integer Select */
 #define PPC_FEATURE2_HAS_TAR       0x04000000 /* Target Address Register */
+#define PPC_FEATURE2_HAS_VEC_CRYPTO  0x02000000  /* Target support vector
+						    instruction.  */