diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-01-17 15:15:57 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-01-21 15:42:04 +0100 |
commit | c8f370485c43729db44b680e41e875ddd7f3108c (patch) | |
tree | 9ebee84bc6e1cb074273a68000f41f6ee100f887 /crypto/ppc_arch.h | |
parent | 11642f35531e6afc5d6c4135c5e2ea6057e0e39a (diff) |
PPC: Try out if mftb works before using it
If this fails try out if mfspr268 works.
Use OPENSSL_ppccap=0x20 for enabling mftb,
OPENSSL_ppccap=0x40 for enabling mfspr268,
and OPENSSL_ppccap=0 for enabling neither.
Fixes #8012
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8043)
Diffstat (limited to 'crypto/ppc_arch.h')
-rw-r--r-- | crypto/ppc_arch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ppc_arch.h b/crypto/ppc_arch.h index f2353583d5..ce98f5b757 100644 --- a/crypto/ppc_arch.h +++ b/crypto/ppc_arch.h @@ -22,5 +22,7 @@ extern unsigned int OPENSSL_ppccap_P; # define PPC_CRYPTO207 (1<<2) # define PPC_FPU (1<<3) # define PPC_MADD300 (1<<4) +# define PPC_MFTB (1<<5) +# define PPC_MFSPR268 (1<<6) #endif |