2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2017-04-12 17:52:04 -04:00
|
|
|
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
2007-12-01 00:00:00 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
|
|
|
* This code is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 only, as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
* accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License version
|
|
|
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
2010-05-27 19:08:38 -07:00
|
|
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
* or visit www.oracle.com if you need additional information or have any
|
|
|
|
* questions.
|
2007-12-01 00:00:00 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-11-23 13:22:55 -08:00
|
|
|
#ifndef CPU_SPARC_VM_GLOBALDEFINITIONS_SPARC_HPP
|
|
|
|
#define CPU_SPARC_VM_GLOBALDEFINITIONS_SPARC_HPP
|
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
// Size of Sparc Instructions
|
|
|
|
const int BytesPerInstWord = 4;
|
|
|
|
|
|
|
|
const int StackAlignmentInBytes = (2*wordSize);
|
2010-11-23 13:22:55 -08:00
|
|
|
|
2015-12-07 15:42:47 +01:00
|
|
|
// Indicates whether the C calling conventions require that
|
|
|
|
// 32-bit integer argument values are extended to 64 bits.
|
2016-07-04 16:28:27 +02:00
|
|
|
const bool CCallingConventionRequiresIntsAsLongs = true;
|
2015-12-07 15:42:47 +01:00
|
|
|
|
2013-05-07 10:19:33 -04:00
|
|
|
#define SUPPORTS_NATIVE_CX8
|
|
|
|
|
2014-10-14 10:32:12 -07:00
|
|
|
// The expected size in bytes of a cache line, used to pad data structures.
|
|
|
|
#if defined(TIERED)
|
2017-04-12 17:52:04 -04:00
|
|
|
// tiered, 64-bit, large machine
|
|
|
|
#define DEFAULT_CACHE_LINE_SIZE 128
|
2014-10-14 10:32:12 -07:00
|
|
|
#elif defined(COMPILER1)
|
|
|
|
// pure C1, 32-bit, small machine
|
|
|
|
#define DEFAULT_CACHE_LINE_SIZE 16
|
2017-10-15 22:54:03 +02:00
|
|
|
#elif defined(COMPILER2)
|
2017-04-12 17:52:04 -04:00
|
|
|
// pure C2, 64-bit, large machine
|
|
|
|
#define DEFAULT_CACHE_LINE_SIZE 128
|
2014-10-14 10:32:12 -07:00
|
|
|
#endif
|
|
|
|
|
2015-12-11 09:07:07 -08:00
|
|
|
#if defined(SOLARIS)
|
|
|
|
#define SUPPORT_RESERVED_STACK_AREA
|
|
|
|
#endif
|
|
|
|
|
2017-08-31 10:00:28 +02:00
|
|
|
// SPARC have implemented the local polling
|
|
|
|
#define THREAD_LOCAL_POLL
|
|
|
|
|
2010-11-23 13:22:55 -08:00
|
|
|
#endif // CPU_SPARC_VM_GLOBALDEFINITIONS_SPARC_HPP
|