From 5b02188f723e0de3faf2d8150b676a4383e1f618 Mon Sep 17 00:00:00 2001 From: Evgeny Astigeevich Date: Tue, 5 Dec 2023 13:05:23 +0000 Subject: [PATCH] 8321105: Enable UseCryptoPmullForCRC32 for Neoverse V2 Reviewed-by: shade, ngasson --- src/hotspot/cpu/aarch64/vm_version_aarch64.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp b/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp index 37b0c44a593be..f7fe2f7dec81a 100644 --- a/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp +++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp @@ -204,7 +204,11 @@ void VM_Version::initialize() { } } - // Neoverse N1, N2, V1, V2 + // Neoverse + // N1: 0xd0c + // N2: 0xd49 + // V1: 0xd40 + // V2: 0xd4f if (_cpu == CPU_ARM && (model_is(0xd0c) || model_is(0xd49) || model_is(0xd40) || model_is(0xd4f))) { if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) { @@ -235,8 +239,10 @@ void VM_Version::initialize() { FLAG_SET_DEFAULT(UseCRC32, false); } - // Neoverse V1 - if (_cpu == CPU_ARM && model_is(0xd40)) { + // Neoverse + // V1: 0xd40 + // V2: 0xd4f + if (_cpu == CPU_ARM && (model_is(0xd40) || model_is(0xd4f))) { if (FLAG_IS_DEFAULT(UseCryptoPmullForCRC32)) { FLAG_SET_DEFAULT(UseCryptoPmullForCRC32, true); }