mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
host/include/aarch64: Implement aes-round.h
Detect AES in cpuinfo; implement the accel hooks. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
d6a2443696
commit
8d97f28e36
4 changed files with 217 additions and 0 deletions
|
@ -2665,6 +2665,15 @@ config_host_data.set('CONFIG_AVX512BW_OPT', get_option('avx512bw') \
|
|||
int main(int argc, char *argv[]) { return bar(argv[0]); }
|
||||
'''), error_message: 'AVX512BW not available').allowed())
|
||||
|
||||
# For both AArch64 and AArch32, detect if builtins are available.
|
||||
config_host_data.set('CONFIG_ARM_AES_BUILTIN', cc.compiles('''
|
||||
#include <arm_neon.h>
|
||||
#ifndef __ARM_FEATURE_AES
|
||||
__attribute__((target("+crypto")))
|
||||
#endif
|
||||
void foo(uint8x16_t *p) { *p = vaesmcq_u8(*p); }
|
||||
'''))
|
||||
|
||||
have_pvrdma = get_option('pvrdma') \
|
||||
.require(rdma.found(), error_message: 'PVRDMA requires OpenFabrics libraries') \
|
||||
.require(cc.compiles(gnu_source_prefix + '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue