[openssl] OpenSSL_1_1_1-stable update

Dr. Paul Dale pauli at openssl.org
Thu May 9 04:21:45 UTC 2019


The branch OpenSSL_1_1_1-stable has been updated
       via  4f4d37dacec205066b369b93aa5bacb0553f68d1 (commit)
      from  b48e3be947ddc5da6b5a86db8341081c72b9a4ee (commit)


- Log -----------------------------------------------------------------
commit 4f4d37dacec205066b369b93aa5bacb0553f68d1
Author: Rashmica Gupta <rashmica.g at gmail.com>
Date:   Tue May 7 12:42:59 2019 +1000

    crypto/ppccap.c: Fix which hwcap value used to check for HWCAP_ARCH_3_00
    
    CLA: trivial
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/8889)
    
    (cherry picked from commit 99592c73e7167990082626a46ea9286c152f85fd)

-----------------------------------------------------------------------

Summary of changes:
 crypto/ppccap.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/crypto/ppccap.c b/crypto/ppccap.c
index afb9e31..a594852 100644
--- a/crypto/ppccap.c
+++ b/crypto/ppccap.c
@@ -314,6 +314,7 @@ void OPENSSL_cpuid_setup(void)
 #ifdef OSSL_IMPLEMENT_GETAUXVAL
     {
         unsigned long hwcap = getauxval(HWCAP);
+        unsigned long hwcap2 = getauxval(HWCAP2);
 
         if (hwcap & HWCAP_FPU) {
             OPENSSL_ppccap_P |= PPC_FPU;
@@ -332,11 +333,11 @@ void OPENSSL_cpuid_setup(void)
         if (hwcap & HWCAP_ALTIVEC) {
             OPENSSL_ppccap_P |= PPC_ALTIVEC;
 
-            if ((hwcap & HWCAP_VSX) && (getauxval(HWCAP2) & HWCAP_VEC_CRYPTO))
+            if ((hwcap & HWCAP_VSX) && (hwcap2 & HWCAP_VEC_CRYPTO))
                 OPENSSL_ppccap_P |= PPC_CRYPTO207;
         }
 
-        if (hwcap & HWCAP_ARCH_3_00) {
+        if (hwcap2 & HWCAP_ARCH_3_00) {
             OPENSSL_ppccap_P |= PPC_MADD300;
         }
     }


More information about the openssl-commits mailing list