Commit | Line | Data |
---|---|---|
73c4941b MM |
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 | ||
a3114052 MM |
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 | #endif | |
72 | ||
73c4941b MM |
73 | #if BITS_INLINE |
74 | #if BITS_INLINE == 2 | |
75 | #define INLINE_BITS static INLINE | |
76 | #else | |
77 | #define INLINE_BITS static | |
78 | #endif | |
79 | #endif | |
80 | ||
81 | #if EVENTS_INLINE | |
82 | #if EVENTS_INLINE == 2 | |
83 | #define INLINE_EVENTS static INLINE | |
84 | #else | |
85 | #define INLINE_EVENTS static | |
86 | #endif | |
87 | #endif | |
88 | ||
89 | #if MON_INLINE | |
90 | #if MON_INLINE == 2 | |
91 | #define INLINE_MON static INLINE | |
92 | #else | |
93 | #define INLINE_MON static | |
94 | #endif | |
95 | #endif | |
96 | ||
97 | #if REGISTERS_INLINE | |
98 | #if REGISTERS_INLINE == 2 | |
99 | #define INLINE_REGISTERS static INLINE | |
100 | #else | |
101 | #define INLINE_REGISTERS static | |
102 | #endif | |
103 | #endif | |
104 | ||
105 | #if INTERRUPTS_INLINE | |
106 | #if INTERRUPTS_INLINE == 2 | |
107 | #define INLINE_INTERRUPTS static INLINE | |
108 | #else | |
109 | #define INLINE_INTERRUPTS static | |
110 | #endif | |
111 | #endif | |
112 | ||
113 | #if DEVICE_TREE_INLINE | |
114 | #if DEVICE_TREE_INLINE == 2 | |
115 | #define INLINE_DEVICE_TREE static INLINE | |
116 | #else | |
117 | #define INLINE_DEVICE_TREE static | |
118 | #endif | |
119 | #endif | |
120 | ||
121 | #if DEVICES_INLINE | |
122 | #if DEVICES_INLINE == 2 | |
123 | #define INLINE_DEVICES static INLINE | |
124 | #else | |
125 | #define INLINE_DEVICES static | |
126 | #endif | |
127 | #define STATIC_DEVICES static | |
128 | #endif | |
129 | ||
130 | #if SPREG_INLINE | |
131 | #if SPREG_INLINE == 2 | |
132 | #define INLINE_SPREG static INLINE | |
133 | #else | |
134 | #define INLINE_SPREG static | |
135 | #endif | |
136 | #endif | |
137 | ||
138 | #if SEMANTICS_INLINE && !defined(_SEMANTICS_C_) | |
139 | #if SEMANTICS_INLINE == 2 | |
140 | #define INLINE_SEMANTICS static INLINE | |
141 | #else | |
142 | #define INLINE_SEMANTICS static | |
143 | #endif | |
144 | #endif | |
145 | ||
146 | #if IDECODE_INLINE | |
147 | #if IDECODE_INLINE == 2 | |
148 | #define INLINE_IDECODE static INLINE | |
149 | #else | |
150 | #define INLINE_IDECODE static | |
151 | #endif | |
152 | #endif | |
153 | ||
154 | #if FUNCTION_UNIT_INLINE | |
155 | #if FUNCTION_UNIT_INLINE == 2 | |
156 | #define INLINE_FUNCTION_UNIT static INLINE | |
157 | #else | |
158 | #define INLINE_FUNCTION_UNIT static | |
159 | #endif | |
160 | #endif | |
161 | ||
162 | ||
163 | #endif |