CACAO
arch.hpp
Go to the documentation of this file.
1 /* src/vm/jit/sparc64/arch.hpp - architecture defines for Sparc64
2 
3  Copyright (C) 1996-2013
4  CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 
6  This file is part of CACAO.
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2, or (at
11  your option) any later version.
12 
13  This program is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  02110-1301, USA.
22 
23 */
24 
25 
26 #ifndef ARCH_HPP_
27 #define ARCH_HPP_ 1
28 
29 #include "config.h"
30 
31 
32 /* define architecture features ***********************************************/
33 
34 #define SUPPORT_DIVISION 1
35 
36 #define SUPPORT_I2F 1
37 #define SUPPORT_I2D 1
38 #define SUPPORT_L2F 1
39 #define SUPPORT_L2D 1
40 
41 #define SUPPORT_F2I 1
42 #define SUPPORT_F2L 1
43 #define SUPPORT_D2I 1
44 #define SUPPORT_D2L 1
45 
46 #define SUPPORT_LONG_ADD 1
47 #define SUPPORT_LONG_CMP 1
48 #define SUPPORT_LONG_SHIFT 1
49 #define SUPPORT_LONG_MUL 1
50 #define SUPPORT_LONG_DIV 1
51 
52 #define SUPPORT_CONST_LOGICAL 1 /* AND, OR, XOR with immediates */
53 #define SUPPORT_CONST_MUL 1 /* mutiply with immediate */
54 
55 #define SUPPORT_CONST_STORE 1 /* do we support const stores */
56 #define SUPPORT_CONST_STORE_ZERO_ONLY 1 /* on some risc machines we can */
57  /* only store REG_ZERO */
58 
59 
60 /* float **********************************************************************/
61 
62 #define SUPPORT_FLOAT 1
63 
64 #if defined(ENABLE_SOFT_FLOAT_CMP)
65 # define SUPPORT_FLOAT_CMP 0
66 #else
67 # define SUPPORT_FLOAT_CMP 1
68 #endif
69 
70 
71 /* double *********************************************************************/
72 
73 #define SUPPORT_DOUBLE 1
74 
75 #if defined(ENABLE_SOFT_FLOAT_CMP)
76 # define SUPPORT_DOUBLE_CMP 0
77 #else
78 # define SUPPORT_DOUBLE_CMP 1
79 #endif
80 
81 
82 /* branches *******************************************************************/
83 
84 #define SUPPORT_BRANCH_CONDITIONAL_CONDITION_REGISTER 1
85 #define SUPPORT_BRANCH_CONDITIONAL_ONE_INTEGER_REGISTER 1
86 #define SUPPORT_BRANCH_CONDITIONAL_TWO_INTEGER_REGISTERS 0
87 #define SUPPORT_BRANCH_CONDITIONAL_UNSIGNED_CONDITIONS 1
88 
89 
90 /* exceptions *****************************************************************/
91 
92 #define SUPPORT_HARDWARE_DIVIDE_BY_ZERO 0
93 
94 
95 /* stackframe *****************************************************************/
96 
97 #error Set the values below correctly!!!
98 #define STACKFRAME_RA_BETWEEN_FRAMES 0
99 #define STACKFRAME_RA_TOP_OF_FRAME 0
100 #define STACKFRAME_RA_LINKAGE_AREA 0
101 #define STACKFRAME_LEAFMETHODS_RA_REGISTER 0
102 #define STACKFRAME_SYNC_NEEDS_TWO_SLOTS 0
103 #define STACKFRAME_PACKED_SAVED_REGISTERS 0
104 
105 
106 /* replacement ****************************************************************/
107 
108 #define REPLACEMENT_PATCH_SIZE 4 /* bytes */
109 
110 #endif // ARCH_HPP_
111 
112 
113 /*
114  * These are local overrides for various environment variables in Emacs.
115  * Please do not remove this and leave it at the end of the file, where
116  * Emacs will automagically detect them.
117  * ---------------------------------------------------------------------
118  * Local variables:
119  * mode: c++
120  * indent-tabs-mode: t
121  * c-basic-offset: 4
122  * tab-width: 4
123  * End:
124  * vim:noexpandtab:sw=4:ts=4:
125  */