1 /*
   2  * Copyright (c) 2008, 2019, 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_GLOBALDEFINITIONS_ARM_HPP
  26 #define CPU_ARM_GLOBALDEFINITIONS_ARM_HPP
  27 
  28 const int StackAlignmentInBytes = 8;
  29 
  30 // Indicates whether the C calling conventions require that
  31 // 32-bit integer argument values are extended to 64 bits.
  32 const bool CCallingConventionRequiresIntsAsLongs = false;
  33 
  34 #ifdef __SOFTFP__
  35 const bool HaveVFP = false;
  36 #else
  37 const bool HaveVFP = true;
  38 #endif
  39 
  40 #if defined(__ARM_PCS_VFP)
  41 #define __ABI_HARD__
  42 #endif
  43 
  44 #if defined(__ARM_ARCH_7A__)
  45 #define SUPPORTS_NATIVE_CX8
  46 #endif
  47 
  48 #define STUBROUTINES_MD_HPP    "stubRoutines_arm.hpp"
  49 #define INTERP_MASM_MD_HPP     "interp_masm_arm.hpp"
  50 #define TEMPLATETABLE_MD_HPP   "templateTable_arm.hpp"
  51 #define ADGLOBALS_MD_HPP       "adfiles/adGlobals_arm_32.hpp"
  52 #define AD_MD_HPP              "adfiles/ad_arm_32.hpp"
  53 #define C1_LIRGENERATOR_MD_HPP "c1_LIRGenerator_arm.hpp"
  54 
  55 #ifdef TARGET_COMPILER_gcc
  56 #ifdef ARM32
  57 #undef BREAKPOINT
  58 #define BREAKPOINT __asm__ volatile ("bkpt")
  59 #endif
  60 #endif
  61 
  62 #endif // CPU_ARM_GLOBALDEFINITIONS_ARM_HPP