8219888: aarch64: add CPU detection code for HiSilicon TSV110
Reviewed-by: aph, drwhite, pzhang
Contributed-by: dongbo4@huawei.com
--- 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',