< prev index next >

src/hotspot/cpu/aarch64/vm_version_aarch64.cpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2015, Red Hat Inc. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.


 200     if (FLAG_IS_DEFAULT(AvoidUnalignedAccesses)) {
 201       FLAG_SET_DEFAULT(AvoidUnalignedAccesses, true);
 202     }
 203     if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
 204       FLAG_SET_DEFAULT(UseSIMDForMemoryOps, (_variant > 0));
 205     }
 206     if (FLAG_IS_DEFAULT(UseSIMDForArrayEquals)) {
 207       FLAG_SET_DEFAULT(UseSIMDForArrayEquals, false);
 208     }
 209   }
 210 
 211   // ThunderX2
 212   if ((_cpu == CPU_CAVIUM && (_model == 0xAF)) ||
 213       (_cpu == CPU_BROADCOM && (_model == 0x516))) {
 214     if (FLAG_IS_DEFAULT(AvoidUnalignedAccesses)) {
 215       FLAG_SET_DEFAULT(AvoidUnalignedAccesses, true);
 216     }
 217     if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
 218       FLAG_SET_DEFAULT(UseSIMDForMemoryOps, true);
 219     }
 220 #ifdef COMPILER2
 221     if (FLAG_IS_DEFAULT(UseFPUForSpilling)) {
 222       FLAG_SET_DEFAULT(UseFPUForSpilling, true);
 223     }
 224 #endif
 225   }
 226 
 227   // Cortex A53
 228   if (_cpu == CPU_ARM && (_model == 0xd03 || _model2 == 0xd03)) {
 229     _features |= CPU_A53MAC;
 230     if (FLAG_IS_DEFAULT(UseSIMDForArrayEquals)) {
 231       FLAG_SET_DEFAULT(UseSIMDForArrayEquals, false);
 232     }
 233   }
 234 
 235   // Cortex A73
 236   if (_cpu == CPU_ARM && (_model == 0xd09 || _model2 == 0xd09)) {
 237     if (FLAG_IS_DEFAULT(SoftwarePrefetchHintDistance)) {
 238       FLAG_SET_DEFAULT(SoftwarePrefetchHintDistance, -1);
 239     }
 240     // A73 is faster with short-and-easy-for-speculative-execution-loop
 241     if (FLAG_IS_DEFAULT(UseSimpleArrayEquals)) {
 242       FLAG_SET_DEFAULT(UseSimpleArrayEquals, true);
 243     }
 244   }


   1 /*
   2  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2015, Red Hat Inc. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.


 200     if (FLAG_IS_DEFAULT(AvoidUnalignedAccesses)) {
 201       FLAG_SET_DEFAULT(AvoidUnalignedAccesses, true);
 202     }
 203     if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
 204       FLAG_SET_DEFAULT(UseSIMDForMemoryOps, (_variant > 0));
 205     }
 206     if (FLAG_IS_DEFAULT(UseSIMDForArrayEquals)) {
 207       FLAG_SET_DEFAULT(UseSIMDForArrayEquals, false);
 208     }
 209   }
 210 
 211   // ThunderX2
 212   if ((_cpu == CPU_CAVIUM && (_model == 0xAF)) ||
 213       (_cpu == CPU_BROADCOM && (_model == 0x516))) {
 214     if (FLAG_IS_DEFAULT(AvoidUnalignedAccesses)) {
 215       FLAG_SET_DEFAULT(AvoidUnalignedAccesses, true);
 216     }
 217     if (FLAG_IS_DEFAULT(UseSIMDForMemoryOps)) {
 218       FLAG_SET_DEFAULT(UseSIMDForMemoryOps, true);
 219     }





 220   }
 221 
 222   // Cortex A53
 223   if (_cpu == CPU_ARM && (_model == 0xd03 || _model2 == 0xd03)) {
 224     _features |= CPU_A53MAC;
 225     if (FLAG_IS_DEFAULT(UseSIMDForArrayEquals)) {
 226       FLAG_SET_DEFAULT(UseSIMDForArrayEquals, false);
 227     }
 228   }
 229 
 230   // Cortex A73
 231   if (_cpu == CPU_ARM && (_model == 0xd09 || _model2 == 0xd09)) {
 232     if (FLAG_IS_DEFAULT(SoftwarePrefetchHintDistance)) {
 233       FLAG_SET_DEFAULT(SoftwarePrefetchHintDistance, -1);
 234     }
 235     // A73 is faster with short-and-easy-for-speculative-execution-loop
 236     if (FLAG_IS_DEFAULT(UseSimpleArrayEquals)) {
 237       FLAG_SET_DEFAULT(UseSimpleArrayEquals, true);
 238     }
 239   }


< prev index next >