8219888: aarch64: add CPU detection code for HiSilicon TSV110

Reviewed-by: aph, drwhite, pzhang
This commit is contained in:
Dong Bo 2019-03-01 14:38:59 +08:00 committed by Fei Yang
parent cf086be753
commit 8b6c1759ba
2 changed files with 11 additions and 0 deletions

View File

@ -219,6 +219,16 @@ void VM_Version::get_processor_features() {
}
}
// 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;

View File

@ -72,6 +72,7 @@ public:
CPU_BROADCOM = 'B',
CPU_CAVIUM = 'C',
CPU_DEC = 'D',
CPU_HISILICON = 'H',
CPU_INFINEON = 'I',
CPU_MOTOROLA = 'M',
CPU_NVIDIA = 'N',