Skip to content

Commit

Permalink
8321105: Enable UseCryptoPmullForCRC32 for Neoverse V2
Browse files Browse the repository at this point in the history
  • Loading branch information
eastig authored Dec 14, 2023
1 parent 6325710 commit 4b4aa82
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/hotspot/cpu/aarch64/vm_version_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,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)) {
Expand Down Expand Up @@ -245,8 +249,10 @@ void VM_Version::initialize() {
FLAG_SET_DEFAULT(UseCRC32, false);
}

// Neoverse V1
if (_cpu == CPU_ARM && (_model == 0xd40 || _model2 == 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);
}
Expand Down

0 comments on commit 4b4aa82

Please sign in to comment.