diff options
author | Andy Polyakov <appro@openssl.org> | 2005-12-27 21:27:39 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-12-27 21:27:39 +0000 |
commit | 7a5dbeb7825159d47c3f39e86ade38465687704e (patch) | |
tree | 7159eb9837cf08f49c21dfd60ace59464c54ae9b /crypto/sparcv9cap.c | |
parent | 6c06918ede75af1967a113e44336d1bfef50fa19 (diff) | |
download | openssl-7a5dbeb7825159d47c3f39e86ade38465687704e.tar.gz |
Minor sparcv9 clean-ups.
Diffstat (limited to 'crypto/sparcv9cap.c')
-rw-r--r-- | crypto/sparcv9cap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/sparcv9cap.c b/crypto/sparcv9cap.c index 3330b21746..3ec2340241 100644 --- a/crypto/sparcv9cap.c +++ b/crypto/sparcv9cap.c @@ -55,21 +55,22 @@ static int walk_nodename(di_node_t node, di_node_name_t di_node_name) /* This is expected to catch all UltraSPARC flavors prior T1 */ if (!strcmp (name,"SUNW,UltraSPARC") || - !strncmp(name,"SUNW,UltraSPARC-I",17)) + !strncmp(name,"SUNW,UltraSPARC-I",17)) /* covers II,III,IV */ { OPENSSL_sparcv9cap_P |= SPARCV9_PREFER_FPU|SPARCV9_VIS1; - /* %tick is privileged only on UltraSPARC-I/II */ + /* %tick is privileged only on UltraSPARC-I/II, but not IIe */ if (name[14]!='\0' && name[17]!='\0' && name[18]!='\0') OPENSSL_sparcv9cap_P &= ~SPARCV9_TICK_PRIVILEGED; return DI_WALK_TERMINATE; } - /* This is expected to catch remaining UltraSPARC T1 */ + /* This is expected to catch remaining UltraSPARCs, such as T1 */ else if (!strncmp(name,"SUNW,UltraSPARC",15)) { - OPENSSL_sparcv9cap_P |= SPARCV9_VIS1; OPENSSL_sparcv9cap_P &= ~SPARCV9_TICK_PRIVILEGED; + + return DI_WALK_TERMINATE; } return DI_WALK_CONTINUE; |