globalDefinitions_ppc.hpp revision 9729:1fd6f49c4b51
154359Sroberto/*
254359Sroberto * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
354359Sroberto * Copyright 2012, 2015 SAP AG. All rights reserved.
454359Sroberto * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
554359Sroberto *
654359Sroberto * This code is free software; you can redistribute it and/or modify it
754359Sroberto * under the terms of the GNU General Public License version 2 only, as
854359Sroberto * published by the Free Software Foundation.
954359Sroberto *
1054359Sroberto * This code is distributed in the hope that it will be useful, but WITHOUT
1154359Sroberto * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1254359Sroberto * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1354359Sroberto * version 2 for more details (a copy is included in the LICENSE file that
1454359Sroberto * accompanied this code).
15290000Sglebius *
16290000Sglebius * You should have received a copy of the GNU General Public License version
17290000Sglebius * 2 along with this work; if not, write to the Free Software Foundation,
1854359Sroberto * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19290000Sglebius *
2054359Sroberto * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2154359Sroberto * or visit www.oracle.com if you need additional information or have any
2254359Sroberto * questions.
2354359Sroberto *
2454359Sroberto */
25290000Sglebius
2654359Sroberto#ifndef CPU_PPC_VM_GLOBALDEFINITIONS_PPC_HPP
2754359Sroberto#define CPU_PPC_VM_GLOBALDEFINITIONS_PPC_HPP
2854359Sroberto
29290000Sglebius// Size of PPC Instructions
3054359Srobertoconst int BytesPerInstWord = 4;
31290000Sglebius
3254359Srobertoconst int StackAlignmentInBytes = 16;
3354359Sroberto
3454359Sroberto#define SUPPORTS_NATIVE_CX8
35290000Sglebius
36290000Sglebius// The PPC CPUs are NOT multiple-copy-atomic.
3754359Sroberto#define CPU_NOT_MULTIPLE_COPY_ATOMIC
3854359Sroberto
3954359Sroberto#if defined(COMPILER2) && defined(AIX)
40290000Sglebius// Include Transactional Memory lock eliding optimization
4154359Sroberto#define INCLUDE_RTM_OPT 1
42290000Sglebius#endif
4354359Sroberto
44290000Sglebius#endif // CPU_PPC_VM_GLOBALDEFINITIONS_PPC_HPP
45290000Sglebius