Add option to make options inline
[binutils-gdb.git] / sim / ppc / inline.h
1 /* This file is part of the program psim.
2
3 Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 */
20
21
22 #ifndef _INLINE_H_
23 #define _INLINE_H_
24
25 #if SIM_ENDIAN_INLINE
26 #if SIM_ENDIAN_INLINE == 2
27 #define INLINE_SIM_ENDIAN static INLINE
28 #else
29 #define INLINE_SIM_ENDIAN static
30 #endif
31 #endif
32
33 #if ICACHE_INLINE
34 #if ICACHE_INLINE == 2
35 #define INLINE_ICACHE static INLINE
36 #else
37 #define INLINE_ICACHE static
38 #endif
39 #endif
40
41 #if CORE_INLINE
42 #if CORE_INLINE == 2
43 #define INLINE_CORE static INLINE
44 #else
45 #define INLINE_CORE static
46 #endif
47 #endif
48
49 #if VM_INLINE
50 #if VM_INLINE == 2
51 #define INLINE_VM static INLINE
52 #else
53 #define INLINE_VM static
54 #endif
55 #endif
56
57 #if CPU_INLINE
58 #if CPU_INLINE == 2
59 #define INLINE_CPU static INLINE
60 #else
61 #define INLINE_CPU static
62 #endif
63 #endif
64
65 #if MODEL_INLINE
66 #if MODEL_INLINE == 2
67 #define INLINE_MODEL static INLINE
68 #else
69 #define INLINE_MODEL static
70 #endif
71 #define STATIC_MODEL static
72 #define EXTERN_MODEL static
73 #endif
74
75 #if BITS_INLINE
76 #if BITS_INLINE == 2
77 #define INLINE_BITS static INLINE
78 #else
79 #define INLINE_BITS static
80 #endif
81 #endif
82
83 #if EVENTS_INLINE
84 #if EVENTS_INLINE == 2
85 #define INLINE_EVENTS static INLINE
86 #else
87 #define INLINE_EVENTS static
88 #endif
89 #endif
90
91 #if MON_INLINE
92 #if MON_INLINE == 2
93 #define INLINE_MON static INLINE
94 #else
95 #define INLINE_MON static
96 #endif
97 #endif
98
99 #if REGISTERS_INLINE
100 #if REGISTERS_INLINE == 2
101 #define INLINE_REGISTERS static INLINE
102 #else
103 #define INLINE_REGISTERS static
104 #endif
105 #endif
106
107 #if INTERRUPTS_INLINE
108 #if INTERRUPTS_INLINE == 2
109 #define INLINE_INTERRUPTS static INLINE
110 #else
111 #define INLINE_INTERRUPTS static
112 #endif
113 #endif
114
115 #if DEVICE_TREE_INLINE
116 #if DEVICE_TREE_INLINE == 2
117 #define INLINE_DEVICE_TREE static INLINE
118 #else
119 #define INLINE_DEVICE_TREE static
120 #endif
121 #endif
122
123 #if DEVICES_INLINE
124 #if DEVICES_INLINE == 2
125 #define INLINE_DEVICES static INLINE
126 #else
127 #define INLINE_DEVICES static
128 #endif
129 #define STATIC_DEVICES static
130 #endif
131
132 #if SPREG_INLINE
133 #if SPREG_INLINE == 2
134 #define INLINE_SPREG static INLINE
135 #else
136 #define INLINE_SPREG static
137 #endif
138 #endif
139
140 #if SEMANTICS_INLINE && !defined(_SEMANTICS_C_)
141 #if SEMANTICS_INLINE == 2
142 #define INLINE_SEMANTICS static INLINE
143 #else
144 #define INLINE_SEMANTICS static
145 #endif
146 #define STATIC_SEMANTICS static
147 #endif
148
149 #if IDECODE_INLINE
150 #if IDECODE_INLINE == 2
151 #define INLINE_IDECODE static INLINE
152 #else
153 #define INLINE_IDECODE static
154 #endif
155 #define STATIC_IDECODE static
156 #endif
157
158 #if FUNCTION_UNIT_INLINE
159 #if FUNCTION_UNIT_INLINE == 2
160 #define INLINE_FUNCTION_UNIT static INLINE
161 #else
162 #define INLINE_FUNCTION_UNIT static
163 #endif
164 #endif
165
166 #if OPTIONS_INLINE
167 #if OPTIONS_INLINE == 2
168 #define INLINE_OPTIONS static INLINE
169 #else
170 #define INLINE_OPTIONS static
171 #endif
172 #endif
173
174
175 #endif