< prev index next >
src/cpu/aarch64/vm/vm_version_aarch64.cpp
Print this page
rev 11452 : 8159063: aarch64: optimise unaligned array copy long
Reviewed-by: aph, adinn
@@ -173,11 +173,19 @@
}
fclose(f);
}
// Enable vendor specific features
- if (_cpu == CPU_CAVIUM && _variant == 0) _features |= CPU_DMB_ATOMICS;
+ if (_cpu == CPU_CAVIUM) {
+ if (_variant == 0) _features |= CPU_DMB_ATOMICS;
+ if (FLAG_IS_DEFAULT(AvoidUnalignedAccesses)) {
+ FLAG_SET_DEFAULT(AvoidUnalignedAccesses, true);
+ }
+ if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
+ FLAG_SET_DEFAULT(UseSIMDForMemoryOps, (_variant > 0));
+ }
+ }
if (_cpu == CPU_ARM && (_model == 0xd03 || _model2 == 0xd03)) _features |= CPU_A53MAC;
if (_cpu == CPU_ARM && (_model == 0xd07 || _model2 == 0xd07)) _features |= CPU_STXR_PREFETCH;
// If an olde style /proc/cpuinfo (cpu_lines == 1) then if _model is an A57 (0xd07)
// we assume the worst and assume we could be on a big little system and have
// undisclosed A53 cores which we could be swapped to at any stage
< prev index next >