src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp

changeset 7027
b20a35eae442
parent 6325
031b06eac1a9
child 7135
d635fd1ac81c
     1.1 --- a/src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp	Tue Jun 10 12:28:06 2014 -0700
     1.2 +++ b/src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp	Wed Jun 11 11:05:10 2014 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -137,6 +137,21 @@
    1.11  #endif
    1.12      if (av & AV_SPARC_AES)       features |= aes_instructions_m;
    1.13  
    1.14 +#ifndef AV_SPARC_SHA1
    1.15 +#define AV_SPARC_SHA1   0x00400000  /* sha1 instruction supported */
    1.16 +#endif
    1.17 +    if (av & AV_SPARC_SHA1)         features |= sha1_instruction_m;
    1.18 +
    1.19 +#ifndef AV_SPARC_SHA256
    1.20 +#define AV_SPARC_SHA256 0x00800000  /* sha256 instruction supported */
    1.21 +#endif
    1.22 +    if (av & AV_SPARC_SHA256)       features |= sha256_instruction_m;
    1.23 +
    1.24 +#ifndef AV_SPARC_SHA512
    1.25 +#define AV_SPARC_SHA512 0x01000000  /* sha512 instruction supported */
    1.26 +#endif
    1.27 +    if (av & AV_SPARC_SHA512)       features |= sha512_instruction_m;
    1.28 +
    1.29    } else {
    1.30      // getisax(2) failed, use the old legacy code.
    1.31  #ifndef PRODUCT

mercurial