Path: blob/master/src/hotspot/cpu/ppc/globalDefinitions_ppc.hpp
40930 views
/*1* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2012, 2016 SAP SE. 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 it6* under the terms of the GNU General Public License version 2 only, as7* published by the Free Software Foundation.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 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 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*23*/2425#ifndef CPU_PPC_GLOBALDEFINITIONS_PPC_HPP26#define CPU_PPC_GLOBALDEFINITIONS_PPC_HPP2728#ifndef FILE_AND_LINE29#define FILE_AND_LINE __FILE__ ":" XSTR(__LINE__)30#endif3132// Size of PPC Instructions33const int BytesPerInstWord = 4;3435const int StackAlignmentInBytes = 16;3637// Indicates whether the C calling conventions require that38// 32-bit integer argument values are extended to 64 bits.39const bool CCallingConventionRequiresIntsAsLongs = true;4041#define SUPPORTS_NATIVE_CX84243// PPC64 is not specified as multi-copy-atomic44// So we must not #define CPU_MULTI_COPY_ATOMIC4546// The expected size in bytes of a cache line, used to pad data structures.47#define DEFAULT_CACHE_LINE_SIZE 1284849#if defined(COMPILER2) && (defined(AIX) || defined(LINUX))50// Include Transactional Memory lock eliding optimization51#define INCLUDE_RTM_OPT 152#else53#define INCLUDE_RTM_OPT 054#endif5556#define SUPPORT_RESERVED_STACK_AREA5758// If UseSIGTRAP is active, we only use the poll bit and no polling page.59// Otherwise, we fall back to usage of the polling page in nmethods.60// Define the condition to use this -XX flag.61#define USE_POLL_BIT_ONLY UseSIGTRAP6263#define COMPRESSED_CLASS_POINTERS_DEPENDS_ON_COMPRESSED_OOPS false6465#endif // CPU_PPC_GLOBALDEFINITIONS_PPC_HPP666768