Skip to content

Commit

Permalink
8255351: Add detection for Graviton 2 CPUs
Browse files Browse the repository at this point in the history
Reviewed-by: simonis, kvn
  • Loading branch information
eastig authored and Vladimir Kozlov committed Nov 26, 2020
1 parent 62d72de commit 2215e5a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/hotspot/cpu/aarch64/vm_version_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ void VM_Version::initialize() {
}
}

// Neoverse N1
if (_cpu == CPU_ARM && (_model == 0xd0c || _model2 == 0xd0c)) {
if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
FLAG_SET_DEFAULT(UseSIMDForMemoryOps, true);
}
}

if (_cpu == CPU_ARM) {
if (FLAG_IS_DEFAULT(UseSignumIntrinsic)) {
FLAG_SET_DEFAULT(UseSignumIntrinsic, true);
Expand Down

1 comment on commit 2215e5a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.