< prev index next >

src/hotspot/cpu/aarch64/vm_version_aarch64.cpp

Print this page
*** 142,15 ***
      if (FLAG_IS_DEFAULT(UseSIMDForArrayEquals)) {
        FLAG_SET_DEFAULT(UseSIMDForArrayEquals, !(_revision == 1 || _revision == 2));
      }
    }
  
!   // Ampere CPUs: Ampere-1 and Ampere-1A
!   if (_cpu == CPU_AMPERE && ((_model == CPU_MODEL_AMPERE_1) || (_model == CPU_MODEL_AMPERE_1A))) {
      if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
        FLAG_SET_DEFAULT(UseSIMDForMemoryOps, true);
      }
    }
  
    // ThunderX
    if (_cpu == CPU_CAVIUM && (_model == 0xA1)) {
      guarantee(_variant != 0, "Pre-release hardware no longer supported.");
--- 142,23 ---
      if (FLAG_IS_DEFAULT(UseSIMDForArrayEquals)) {
        FLAG_SET_DEFAULT(UseSIMDForArrayEquals, !(_revision == 1 || _revision == 2));
      }
    }
  
!   // Ampere CPUs
!   if (_cpu == CPU_AMPERE && ((_model == CPU_MODEL_AMPERE_1)  ||
+                              (_model == CPU_MODEL_AMPERE_1A) ||
+                              (_model == CPU_MODEL_AMPERE_1B))) {
      if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
        FLAG_SET_DEFAULT(UseSIMDForMemoryOps, true);
      }
+     if (FLAG_IS_DEFAULT(OnSpinWaitInst)) {
+       FLAG_SET_DEFAULT(OnSpinWaitInst, "isb");
+     }
+     if (FLAG_IS_DEFAULT(OnSpinWaitInstCount)) {
+       FLAG_SET_DEFAULT(OnSpinWaitInstCount, 2);
+     }
    }
  
    // ThunderX
    if (_cpu == CPU_CAVIUM && (_model == 0xA1)) {
      guarantee(_variant != 0, "Pre-release hardware no longer supported.");
< prev index next >