Skip to content

Commit 2215e5a

Browse files
eastigVladimir Kozlov
authored andcommitted
8255351: Add detection for Graviton 2 CPUs
Reviewed-by: simonis, kvn
1 parent 62d72de commit 2215e5a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/hotspot/cpu/aarch64/vm_version_aarch64.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ void VM_Version::initialize() {
174174
}
175175
}
176176

177+
// Neoverse N1
178+
if (_cpu == CPU_ARM && (_model == 0xd0c || _model2 == 0xd0c)) {
179+
if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
180+
FLAG_SET_DEFAULT(UseSIMDForMemoryOps, true);
181+
}
182+
}
183+
177184
if (_cpu == CPU_ARM) {
178185
if (FLAG_IS_DEFAULT(UseSignumIntrinsic)) {
179186
FLAG_SET_DEFAULT(UseSignumIntrinsic, true);

0 commit comments

Comments
 (0)