# HG changeset patch # User fyang # Date 1551422339 -28800 # Node ID 247f1a85d736bb3588534de19dd4adbd80572853 # Parent efa9bc147d508a99eec9ab8199ebbe9d80b686b5 8219888: aarch64: add CPU detection code for HiSilicon TSV110 Reviewed-by: aph, drwhite, pzhang Contributed-by: dongbo4@huawei.com diff -r efa9bc147d50 -r 247f1a85d736 src/hotspot/cpu/aarch64/vm_version_aarch64.cpp --- 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; diff -r efa9bc147d50 -r 247f1a85d736 src/hotspot/cpu/aarch64/vm_version_aarch64.hpp --- 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',