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
76 #define INLINE_BITS static INLINE
78 #define INLINE_BITS static
83 #if EVENTS_INLINE == 2
84 #define INLINE_EVENTS static INLINE
86 #define INLINE_EVENTS static
92 #define INLINE_MON static INLINE
94 #define INLINE_MON static
99 #if REGISTERS_INLINE == 2
100 #define INLINE_REGISTERS static INLINE
102 #define INLINE_REGISTERS static
106 #if INTERRUPTS_INLINE
107 #if INTERRUPTS_INLINE == 2
108 #define INLINE_INTERRUPTS static INLINE
110 #define INLINE_INTERRUPTS static
114 #if DEVICE_TREE_INLINE
115 #if DEVICE_TREE_INLINE == 2
116 #define INLINE_DEVICE_TREE static INLINE
118 #define INLINE_DEVICE_TREE static
123 #if DEVICES_INLINE == 2
124 #define INLINE_DEVICES static INLINE
126 #define INLINE_DEVICES static
128 #define STATIC_DEVICES static
132 #if SPREG_INLINE == 2
133 #define INLINE_SPREG static INLINE
135 #define INLINE_SPREG static
139 #if SEMANTICS_INLINE && !defined(_SEMANTICS_C_)
140 #if SEMANTICS_INLINE == 2
141 #define INLINE_SEMANTICS static INLINE
143 #define INLINE_SEMANTICS static
145 #define STATIC_SEMANTICS static
149 #if IDECODE_INLINE == 2
150 #define INLINE_IDECODE static INLINE
152 #define INLINE_IDECODE static
154 #define STATIC_IDECODE static
157 #if FUNCTION_UNIT_INLINE
158 #if FUNCTION_UNIT_INLINE == 2
159 #define INLINE_FUNCTION_UNIT static INLINE
161 #define INLINE_FUNCTION_UNIT static