changeset 53989:247f1a85d736

8219888: aarch64: add CPU detection code for HiSilicon TSV110 Reviewed-by: aph, drwhite, pzhang Contributed-by: dongbo4@huawei.com
author fyang
date Fri, 01 Mar 2019 14:38:59 +0800
parents efa9bc147d50
children 8c82412da698
files src/hotspot/cpu/aarch64/vm_version_aarch64.cpp src/hotspot/cpu/aarch64/vm_version_aarch64.hpp
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp	Mon Mar 04 08:45:05 2019 -0500
+++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp	Fri Mar 01 14:38:59 2019 +0800
@@ -219,6 +219,16 @@
     }
   }
 
+  // HiSilicon TSV110
+  if (_cpu == CPU_HISILICON && _model == 0xd01) {
+    if (FLAG_IS_DEFAULT(AvoidUnalignedAccesses)) {
+      FLAG_SET_DEFAULT(AvoidUnalignedAccesses, true);
+    }
+    if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
+      FLAG_SET_DEFAULT(UseSIMDForMemoryOps, true);
+    }
+  }
+
   // Cortex A53
   if (_cpu == CPU_ARM && (_model == 0xd03 || _model2 == 0xd03)) {
     _features |= CPU_A53MAC;
--- a/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp	Mon Mar 04 08:45:05 2019 -0500
+++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp	Fri Mar 01 14:38:59 2019 +0800
@@ -72,6 +72,7 @@
     CPU_BROADCOM  = 'B',
     CPU_CAVIUM    = 'C',
     CPU_DEC       = 'D',
+    CPU_HISILICON = 'H',
     CPU_INFINEON  = 'I',
     CPU_MOTOROLA  = 'M',
     CPU_NVIDIA    = 'N',