8219888: aarch64: add CPU detection code for HiSilicon TSV110
Reviewed-by: aph, drwhite, pzhang
This commit is contained in:
parent
cf086be753
commit
8b6c1759ba
@ -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;
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user