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