Skip to content

Commit 5b02188

Browse files
author
Evgeny Astigeevich
committedDec 5, 2023
8321105: Enable UseCryptoPmullForCRC32 for Neoverse V2
Reviewed-by: shade, ngasson
1 parent 4fbf22b commit 5b02188

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
 

‎src/hotspot/cpu/aarch64/vm_version_aarch64.cpp

+9-3
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ void VM_Version::initialize() {
204204
}
205205
}
206206

207-
// Neoverse N1, N2, V1, V2
207+
// Neoverse
208+
// N1: 0xd0c
209+
// N2: 0xd49
210+
// V1: 0xd40
211+
// V2: 0xd4f
208212
if (_cpu == CPU_ARM && (model_is(0xd0c) || model_is(0xd49) ||
209213
model_is(0xd40) || model_is(0xd4f))) {
210214
if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
@@ -235,8 +239,10 @@ void VM_Version::initialize() {
235239
FLAG_SET_DEFAULT(UseCRC32, false);
236240
}
237241

238-
// Neoverse V1
239-
if (_cpu == CPU_ARM && model_is(0xd40)) {
242+
// Neoverse
243+
// V1: 0xd40
244+
// V2: 0xd4f
245+
if (_cpu == CPU_ARM && (model_is(0xd40) || model_is(0xd4f))) {
240246
if (FLAG_IS_DEFAULT(UseCryptoPmullForCRC32)) {
241247
FLAG_SET_DEFAULT(UseCryptoPmullForCRC32, true);
242248
}

0 commit comments

Comments
 (0)