1 /*
   2  * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef CPU_ARM_VM_GLOBALDEFINITIONS_ARM_HPP
  26 #define CPU_ARM_VM_GLOBALDEFINITIONS_ARM_HPP
  27 
  28 #ifdef AARCH64
  29 #define AARCH64_ONLY(code) code
  30 #define AARCH64_ONLY_ARG(arg) , arg
  31 #define NOT_AARCH64(code)
  32 #define NOT_AARCH64_ARG(arg)
  33 #else
  34 #define AARCH64_ONLY(code)
  35 #define AARCH64_ONLY_ARG(arg)
  36 #define NOT_AARCH64(code) code
  37 #define NOT_AARCH64_ARG(arg) , arg
  38 #endif
  39 
  40 const int StackAlignmentInBytes = AARCH64_ONLY(16) NOT_AARCH64(8);
  41 
  42 // Indicates whether the C calling conventions require that
  43 // 32-bit integer argument values are extended to 64 bits.
  44 const bool CCallingConventionRequiresIntsAsLongs = false;
  45 
  46 #ifdef __SOFTFP__
  47 const bool HaveVFP = false;
  48 #else
  49 const bool HaveVFP = true;
  50 #endif
  51 
  52 #if defined(__ARM_PCS_VFP) || defined(AARCH64)
  53 #define __ABI_HARD__
  54 #endif
  55 
  56 #if defined(__ARM_ARCH_7A__) || defined(AARCH64)
  57 #define SUPPORTS_NATIVE_CX8
  58 #endif
  59 
  60 #define STUBROUTINES_MD_HPP    "stubRoutines_arm.hpp"
  61 #define INTERP_MASM_MD_HPP     "interp_masm_arm.hpp"
  62 #define TEMPLATETABLE_MD_HPP   "templateTable_arm.hpp"
  63 #ifdef AARCH64
  64 #define ADGLOBALS_MD_HPP       "adfiles/adGlobals_arm_64.hpp"
  65 #define AD_MD_HPP              "adfiles/ad_arm_64.hpp"
  66 #else
  67 #define ADGLOBALS_MD_HPP       "adfiles/adGlobals_arm_32.hpp"
  68 #define AD_MD_HPP              "adfiles/ad_arm_32.hpp"
  69 #endif
  70 #define C1_LIRGENERATOR_MD_HPP "c1_LIRGenerator_arm.hpp"
  71 
  72 #endif // CPU_ARM_VM_GLOBALDEFINITIONS_ARM_HPP