Current VM version implementation does not fully take into account HiSilicon AArch64 CPU models.
PATCH adding support for HiSilicon TSV110:
diff -r 8e069f7b4fab src/hotspot/cpu/aarch64/vm_version_aarch64.cpp
--- a/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp Wed Feb 27 12:19:29 2019 -0800
+++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp Fri Mar 01 09:29:24 2019 +0800
@@ -210,7 +210,9 @@
// ThunderX2
if ((_cpu == CPU_CAVIUM && (_model == 0xAF)) ||
- (_cpu == CPU_BROADCOM && (_model == 0x516))) {
+ (_cpu == CPU_BROADCOM && (_model == 0x516)) ||
+ // HiSilicon TSV110
+ (_cpu == CPU_HISILICON && (_model == 0xd01))) {
if (FLAG_IS_DEFAULT(AvoidUnalignedAccesses)) {
FLAG_SET_DEFAULT(AvoidUnalignedAccesses, true);
}
diff -r 8e069f7b4fab src/hotspot/cpu/aarch64/vm_version_aarch64.hpp
--- a/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp Wed Feb 27 12:19:29 2019 -0800
+++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp Fri Mar 01 09:29:24 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',
PATCH adding support for HiSilicon TSV110:
diff -r 8e069f7b4fab src/hotspot/cpu/aarch64/vm_version_aarch64.cpp
--- a/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp Wed Feb 27 12:19:29 2019 -0800
+++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp Fri Mar 01 09:29:24 2019 +0800
@@ -210,7 +210,9 @@
// ThunderX2
if ((_cpu == CPU_CAVIUM && (_model == 0xAF)) ||
- (_cpu == CPU_BROADCOM && (_model == 0x516))) {
+ (_cpu == CPU_BROADCOM && (_model == 0x516)) ||
+ // HiSilicon TSV110
+ (_cpu == CPU_HISILICON && (_model == 0xd01))) {
if (FLAG_IS_DEFAULT(AvoidUnalignedAccesses)) {
FLAG_SET_DEFAULT(AvoidUnalignedAccesses, true);
}
diff -r 8e069f7b4fab src/hotspot/cpu/aarch64/vm_version_aarch64.hpp
--- a/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp Wed Feb 27 12:19:29 2019 -0800
+++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp Fri Mar 01 09:29:24 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',