mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-23 22:29:55 +00:00
8220566: AArch64: Set default vm features for Ampere eMAG CPUs
Set defaults for vendor specific features Reviewed-by: adinn
This commit is contained in:
parent
b34264403a
commit
2f7b5f59e2
@ -194,6 +194,19 @@ void VM_Version::get_processor_features() {
|
||||
|
||||
// Enable vendor specific features
|
||||
|
||||
// Ampere eMAG
|
||||
if (_cpu == CPU_AMCC && (_model == 0) && (_variant == 0x3)) {
|
||||
if (FLAG_IS_DEFAULT(AvoidUnalignedAccesses)) {
|
||||
FLAG_SET_DEFAULT(AvoidUnalignedAccesses, true);
|
||||
}
|
||||
if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
|
||||
FLAG_SET_DEFAULT(UseSIMDForMemoryOps, true);
|
||||
}
|
||||
if (FLAG_IS_DEFAULT(UseSIMDForArrayEquals)) {
|
||||
FLAG_SET_DEFAULT(UseSIMDForArrayEquals, !(_revision == 1 || _revision == 2));
|
||||
}
|
||||
}
|
||||
|
||||
// ThunderX
|
||||
if (_cpu == CPU_CAVIUM && (_model == 0xA1)) {
|
||||
if (_variant == 0) _features |= CPU_DMB_ATOMICS;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user