8002074: Support for AES on SPARC

Add intrinsics/stub routines support for single-block and multi-block (as used by Cipher Block Chaining mode) AES encryption and decryption operations on the SPARC platform.

Reviewed-by: kvn, roland
This commit is contained in:
Shrinivas Joshi 2014-01-14 17:46:48 -08:00 committed by Vladimir Kozlov
parent b1c92a140b
commit d4c9d3889b
14 changed files with 1022 additions and 54 deletions

View file

@ -119,6 +119,11 @@ int VM_Version::platform_features(int features) {
#endif
if (av & AV_SPARC_CBCOND) features |= cbcond_instructions_m;
#ifndef AV_SPARC_AES
#define AV_SPARC_AES 0x00020000 /* aes instrs supported */
#endif
if (av & AV_SPARC_AES) features |= aes_instructions_m;
} else {
// getisax(2) failed, use the old legacy code.
#ifndef PRODUCT