1 /* This file is part of the program psim.
3 Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
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.
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.
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.
26 #if SIM_ENDIAN_INLINE == 2
27 #define INLINE_SIM_ENDIAN static INLINE
29 #define INLINE_SIM_ENDIAN static
34 #if ICACHE_INLINE == 2
35 #define INLINE_ICACHE static INLINE
37 #define INLINE_ICACHE static
43 #define INLINE_CORE static INLINE
45 #define INLINE_CORE static
51 #define INLINE_VM static INLINE
53 #define INLINE_VM static
59 #define INLINE_CPU static INLINE
61 #define INLINE_CPU static
67 #define INLINE_MODEL static INLINE
69 #define INLINE_MODEL static
71 #define STATIC_MODEL static
72 #define EXTERN_MODEL static
77 #define INLINE_BITS static INLINE
79 #define INLINE_BITS static
84 #if EVENTS_INLINE == 2
85 #define INLINE_EVENTS static INLINE
87 #define INLINE_EVENTS static
93 #define INLINE_MON static INLINE
95 #define INLINE_MON static
100 #if REGISTERS_INLINE == 2
101 #define INLINE_REGISTERS static INLINE
103 #define INLINE_REGISTERS static
107 #if INTERRUPTS_INLINE
108 #if INTERRUPTS_INLINE == 2
109 #define INLINE_INTERRUPTS static INLINE
111 #define INLINE_INTERRUPTS static
115 #if DEVICE_TREE_INLINE
116 #if DEVICE_TREE_INLINE == 2
117 #define INLINE_DEVICE_TREE static INLINE
119 #define INLINE_DEVICE_TREE static
124 #if DEVICES_INLINE == 2
125 #define INLINE_DEVICES static INLINE
127 #define INLINE_DEVICES static
129 #define STATIC_DEVICES static
133 #if SPREG_INLINE == 2
134 #define INLINE_SPREG static INLINE
136 #define INLINE_SPREG static
140 #if SEMANTICS_INLINE && !defined(_SEMANTICS_C_)
141 #if SEMANTICS_INLINE == 2
142 #define INLINE_SEMANTICS static INLINE
144 #define INLINE_SEMANTICS static
146 #define STATIC_SEMANTICS static
150 #if IDECODE_INLINE == 2
151 #define INLINE_IDECODE static INLINE
153 #define INLINE_IDECODE static
155 #define STATIC_IDECODE static
158 #if FUNCTION_UNIT_INLINE
159 #if FUNCTION_UNIT_INLINE == 2
160 #define INLINE_FUNCTION_UNIT static INLINE
162 #define INLINE_FUNCTION_UNIT static
167 #if OPTIONS_INLINE == 2
168 #define INLINE_OPTIONS static INLINE
170 #define INLINE_OPTIONS static