1 |
1181 |
sfurman |
# OBSOLETE # Mitsubishi Electric Corp. D30V Simulator.
|
2 |
|
|
# OBSOLETE # Copyright (C) 1997, Free Software Foundation, Inc.
|
3 |
|
|
# OBSOLETE # Contributed by Cygnus Support.
|
4 |
|
|
# OBSOLETE #
|
5 |
|
|
# OBSOLETE # This file is part of GDB, the GNU debugger.
|
6 |
|
|
# OBSOLETE #
|
7 |
|
|
# OBSOLETE # This program is free software; you can redistribute it and/or modify
|
8 |
|
|
# OBSOLETE # it under the terms of the GNU General Public License as published by
|
9 |
|
|
# OBSOLETE # the Free Software Foundation; either version 2, or (at your option)
|
10 |
|
|
# OBSOLETE # any later version.
|
11 |
|
|
# OBSOLETE #
|
12 |
|
|
# OBSOLETE # This program is distributed in the hope that it will be useful,
|
13 |
|
|
# OBSOLETE # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
|
|
# OBSOLETE # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
|
|
# OBSOLETE # GNU General Public License for more details.
|
16 |
|
|
# OBSOLETE #
|
17 |
|
|
# OBSOLETE # You should have received a copy of the GNU General Public License along
|
18 |
|
|
# OBSOLETE # with this program; if not, write to the Free Software Foundation, Inc.,
|
19 |
|
|
# OBSOLETE # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
20 |
|
|
# OBSOLETE
|
21 |
|
|
# OBSOLETE M4= @M4@
|
22 |
|
|
# OBSOLETE
|
23 |
|
|
# OBSOLETE
|
24 |
|
|
# OBSOLETE ## COMMON_PRE_CONFIG_FRAG
|
25 |
|
|
# OBSOLETE
|
26 |
|
|
# OBSOLETE # These variables are given default values in COMMON_PRE_CONFIG_FRAG.
|
27 |
|
|
# OBSOLETE # We override the ones we need to here.
|
28 |
|
|
# OBSOLETE # Not all of these need to be mentioned, only the necessary ones.
|
29 |
|
|
# OBSOLETE
|
30 |
|
|
# OBSOLETE # List of object files, less common parts.
|
31 |
|
|
# OBSOLETE SIM_OBJS = \
|
32 |
|
|
# OBSOLETE $(SIM_NEW_COMMON_OBJS) \
|
33 |
|
|
# OBSOLETE engine.o cpu.o \
|
34 |
|
|
# OBSOLETE s_support.o l_support.o \
|
35 |
|
|
# OBSOLETE s_idecode.o l_idecode.o \
|
36 |
|
|
# OBSOLETE s_semantics.o l_semantics.o \
|
37 |
|
|
# OBSOLETE sim-calls.o itable.o \
|
38 |
|
|
# OBSOLETE sim-hload.o \
|
39 |
|
|
# OBSOLETE sim-hrw.o \
|
40 |
|
|
# OBSOLETE sim-engine.o \
|
41 |
|
|
# OBSOLETE sim-stop.o \
|
42 |
|
|
# OBSOLETE sim-reason.o \
|
43 |
|
|
# OBSOLETE sim-resume.o
|
44 |
|
|
# OBSOLETE
|
45 |
|
|
# OBSOLETE # List of extra dependencies.
|
46 |
|
|
# OBSOLETE # Generally this consists of simulator specific files included by sim-main.h.
|
47 |
|
|
# OBSOLETE SIM_EXTRA_DEPS = itable.h s_idecode.h l_idecode.h cpu.h alu.h
|
48 |
|
|
# OBSOLETE
|
49 |
|
|
# OBSOLETE # List of generators
|
50 |
|
|
# OBSOLETE SIM_GEN=tmp-igen
|
51 |
|
|
# OBSOLETE
|
52 |
|
|
# OBSOLETE # List of extra flags to always pass to $(CC).
|
53 |
|
|
# OBSOLETE SIM_EXTRA_CFLAGS = @sim_trapdump@
|
54 |
|
|
# OBSOLETE
|
55 |
|
|
# OBSOLETE # List of main object files for `run'.
|
56 |
|
|
# OBSOLETE SIM_RUN_OBJS = nrun.o
|
57 |
|
|
# OBSOLETE
|
58 |
|
|
# OBSOLETE # Dependency of `clean' to clean any extra files.
|
59 |
|
|
# OBSOLETE SIM_EXTRA_CLEAN = clean-igen
|
60 |
|
|
# OBSOLETE
|
61 |
|
|
# OBSOLETE # This selects the d30v newlib/libgloss syscall definitions.
|
62 |
|
|
# OBSOLETE NL_TARGET=-DNL_TARGET_d30v
|
63 |
|
|
# OBSOLETE
|
64 |
|
|
# OBSOLETE ## COMMON_POST_CONFIG_FRAG
|
65 |
|
|
# OBSOLETE
|
66 |
|
|
# OBSOLETE MAIN_INCLUDE_DEPS = tconfig.h
|
67 |
|
|
# OBSOLETE INCLUDE_DEPS = $(MAIN_INCLUDE_DEPS) $(SIM_EXTRA_DEPS)
|
68 |
|
|
# OBSOLETE
|
69 |
|
|
# OBSOLETE # Rules need to build $(SIM_OBJS), plus whatever else the target wants.
|
70 |
|
|
# OBSOLETE
|
71 |
|
|
# OBSOLETE # ... target specific rules ...
|
72 |
|
|
# OBSOLETE
|
73 |
|
|
# OBSOLETE # Filter to eliminate known warnings
|
74 |
|
|
# OBSOLETE FILTER = 2>&1 | egrep -v "Discarding instruction|instruction field of type \`compute\' changed to \`cache\'|Instruction format is not 64 bits wide"
|
75 |
|
|
# OBSOLETE
|
76 |
|
|
# OBSOLETE BUILT_SRC_FROM_IGEN = \
|
77 |
|
|
# OBSOLETE s_icache.h \
|
78 |
|
|
# OBSOLETE s_icache.c \
|
79 |
|
|
# OBSOLETE s_idecode.h \
|
80 |
|
|
# OBSOLETE s_idecode.c \
|
81 |
|
|
# OBSOLETE s_semantics.h \
|
82 |
|
|
# OBSOLETE s_semantics.c \
|
83 |
|
|
# OBSOLETE s_model.h \
|
84 |
|
|
# OBSOLETE s_model.c \
|
85 |
|
|
# OBSOLETE s_support.h \
|
86 |
|
|
# OBSOLETE s_support.c \
|
87 |
|
|
# OBSOLETE l_icache.h \
|
88 |
|
|
# OBSOLETE l_icache.c \
|
89 |
|
|
# OBSOLETE l_idecode.h \
|
90 |
|
|
# OBSOLETE l_idecode.c \
|
91 |
|
|
# OBSOLETE l_semantics.h \
|
92 |
|
|
# OBSOLETE l_semantics.c \
|
93 |
|
|
# OBSOLETE l_model.h \
|
94 |
|
|
# OBSOLETE l_model.c \
|
95 |
|
|
# OBSOLETE l_support.h \
|
96 |
|
|
# OBSOLETE l_support.c \
|
97 |
|
|
# OBSOLETE itable.h itable.c
|
98 |
|
|
# OBSOLETE $(BUILT_SRC_FROM_IGEN): tmp-igen
|
99 |
|
|
# OBSOLETE #
|
100 |
|
|
# OBSOLETE
|
101 |
|
|
# OBSOLETE .PHONY: clean-igen
|
102 |
|
|
# OBSOLETE clean-igen:
|
103 |
|
|
# OBSOLETE rm -f $(BUILT_SRC_FROM_IGEN)
|
104 |
|
|
# OBSOLETE rm -f tmp-igen tmp-insns
|
105 |
|
|
# OBSOLETE
|
106 |
|
|
# OBSOLETE ../igen/igen:
|
107 |
|
|
# OBSOLETE cd ../igen && $(MAKE)
|
108 |
|
|
# OBSOLETE
|
109 |
|
|
# OBSOLETE tmp-igen: $(srcdir)/dc-short $(srcdir)/d30v-insns $(srcdir)/ic-d30v ../igen/igen
|
110 |
|
|
# OBSOLETE cd ../igen && $(MAKE)
|
111 |
|
|
# OBSOLETE echo "# 1 \"$(srcdir)/d30v-insns\"" > tmp-insns
|
112 |
|
|
# OBSOLETE $(M4) < $(srcdir)/d30v-insns >> tmp-insns
|
113 |
|
|
# OBSOLETE @echo "Generating short version ..."
|
114 |
|
|
# OBSOLETE ../igen/igen \
|
115 |
|
|
# OBSOLETE -G gen-zero-r0 \
|
116 |
|
|
# OBSOLETE -G direct-access \
|
117 |
|
|
# OBSOLETE -G default-nia-minus-one \
|
118 |
|
|
# OBSOLETE -G conditional-issue \
|
119 |
|
|
# OBSOLETE -G verify-slot \
|
120 |
|
|
# OBSOLETE -G field-widths \
|
121 |
|
|
# OBSOLETE -F short,emul \
|
122 |
|
|
# OBSOLETE -B 32 \
|
123 |
|
|
# OBSOLETE -P "s_" \
|
124 |
|
|
# OBSOLETE -o $(srcdir)/dc-short \
|
125 |
|
|
# OBSOLETE -k $(srcdir)/ic-d30v \
|
126 |
|
|
# OBSOLETE -n $(srcdir)/d30v-insns -i tmp-insns \
|
127 |
|
|
# OBSOLETE -n s_icache.h -hc tmp-icache.h \
|
128 |
|
|
# OBSOLETE -n s_icache.c -c tmp-icache.c \
|
129 |
|
|
# OBSOLETE -n s_semantics.h -hs tmp-semantics.h \
|
130 |
|
|
# OBSOLETE -n s_semantics.c -s tmp-semantics.c \
|
131 |
|
|
# OBSOLETE -n s_idecode.h -hd tmp-idecode.h \
|
132 |
|
|
# OBSOLETE -n s_idecode.c -d tmp-idecode.c \
|
133 |
|
|
# OBSOLETE -n s_model.h -hm tmp-model.h \
|
134 |
|
|
# OBSOLETE -n s_model.c -m tmp-model.c \
|
135 |
|
|
# OBSOLETE -n s_support.h -hf tmp-support.h \
|
136 |
|
|
# OBSOLETE -n s_support.c -f tmp-support.c $(FILTER)
|
137 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-icache.h s_icache.h
|
138 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-icache.c s_icache.c
|
139 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-idecode.h s_idecode.h
|
140 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-idecode.c s_idecode.c
|
141 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-semantics.h s_semantics.h
|
142 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-semantics.c s_semantics.c
|
143 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-model.h s_model.h
|
144 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-model.c s_model.c
|
145 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-support.h s_support.h
|
146 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-support.c s_support.c
|
147 |
|
|
# OBSOLETE @echo "Generating long version ..."
|
148 |
|
|
# OBSOLETE ../igen/igen \
|
149 |
|
|
# OBSOLETE -G gen-zero-r0 \
|
150 |
|
|
# OBSOLETE -G direct-access \
|
151 |
|
|
# OBSOLETE -G default-nia-minus-one \
|
152 |
|
|
# OBSOLETE -G conditional-issue \
|
153 |
|
|
# OBSOLETE -G field-widths \
|
154 |
|
|
# OBSOLETE -F long,emul \
|
155 |
|
|
# OBSOLETE -B 64 \
|
156 |
|
|
# OBSOLETE -P "l_" \
|
157 |
|
|
# OBSOLETE -o $(srcdir)/dc-short \
|
158 |
|
|
# OBSOLETE -k $(srcdir)/ic-d30v \
|
159 |
|
|
# OBSOLETE -i tmp-insns \
|
160 |
|
|
# OBSOLETE -n l_icache.h -hc tmp-icache.h \
|
161 |
|
|
# OBSOLETE -n l_icache.c -c tmp-icache.c \
|
162 |
|
|
# OBSOLETE -n l_semantics.h -hs tmp-semantics.h \
|
163 |
|
|
# OBSOLETE -n l_semantics.c -s tmp-semantics.c \
|
164 |
|
|
# OBSOLETE -n l_idecode.h -hd tmp-idecode.h \
|
165 |
|
|
# OBSOLETE -n l_idecode.c -d tmp-idecode.c \
|
166 |
|
|
# OBSOLETE -n l_model.h -hm tmp-model.h \
|
167 |
|
|
# OBSOLETE -n l_model.c -m tmp-model.c \
|
168 |
|
|
# OBSOLETE -n l_support.h -hf tmp-support.h \
|
169 |
|
|
# OBSOLETE -n l_support.c -f tmp-support.c $(FILTER)
|
170 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-icache.h l_icache.h
|
171 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-icache.c l_icache.c
|
172 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-idecode.h l_idecode.h
|
173 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-idecode.c l_idecode.c
|
174 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-semantics.h l_semantics.h
|
175 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-semantics.c l_semantics.c
|
176 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-model.h l_model.h
|
177 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-model.c l_model.c
|
178 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-support.h l_support.h
|
179 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-support.c l_support.c
|
180 |
|
|
# OBSOLETE @echo "Generating instruction database ..."
|
181 |
|
|
# OBSOLETE ../igen/igen \
|
182 |
|
|
# OBSOLETE -G field-widths \
|
183 |
|
|
# OBSOLETE -F short,long,emul \
|
184 |
|
|
# OBSOLETE -B 64 \
|
185 |
|
|
# OBSOLETE -o $(srcdir)/dc-short \
|
186 |
|
|
# OBSOLETE -k $(srcdir)/ic-d30v \
|
187 |
|
|
# OBSOLETE -i tmp-insns \
|
188 |
|
|
# OBSOLETE -n itable.h -ht tmp-itable.h \
|
189 |
|
|
# OBSOLETE -n itable.c -t tmp-itable.c $(FILTER)
|
190 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-itable.h itable.h
|
191 |
|
|
# OBSOLETE $(srcdir)/../../move-if-change tmp-itable.c itable.c
|
192 |
|
|
# OBSOLETE touch tmp-igen
|
193 |
|
|
# OBSOLETE
|
194 |
|
|
# OBSOLETE ENGINE_H = \
|
195 |
|
|
# OBSOLETE sim-main.h \
|
196 |
|
|
# OBSOLETE $(srcdir)/../common/sim-basics.h \
|
197 |
|
|
# OBSOLETE config.h \
|
198 |
|
|
# OBSOLETE $(srcdir)/../common/sim-config.h \
|
199 |
|
|
# OBSOLETE $(srcdir)/../common/sim-inline.h \
|
200 |
|
|
# OBSOLETE $(srcdir)/../common/sim-types.h \
|
201 |
|
|
# OBSOLETE $(srcdir)/../common/sim-bits.h \
|
202 |
|
|
# OBSOLETE $(srcdir)/../common/sim-endian.h \
|
203 |
|
|
# OBSOLETE itable.h \
|
204 |
|
|
# OBSOLETE l_idecode.h s_idecode.h \
|
205 |
|
|
# OBSOLETE cpu.h \
|
206 |
|
|
# OBSOLETE alu.h \
|
207 |
|
|
# OBSOLETE $(srcdir)/../common/sim-alu.h \
|
208 |
|
|
# OBSOLETE $(srcdir)/../common/sim-core.h \
|
209 |
|
|
# OBSOLETE $(srcdir)/../common/sim-events.h \
|
210 |
|
|
# OBSOLETE
|
211 |
|
|
# OBSOLETE engine.o: engine.c $(ENGINE_H)
|
212 |
|
|
# OBSOLETE sim-calls.o: sim-calls.c $(ENGINE_H) $(srcdir)/../common/sim-utils.h $(srcdir)/../common/sim-options.h
|
213 |
|
|
# OBSOLETE cpu.o: cpu.c $(ENGINE_H)
|
214 |
|
|
# OBSOLETE s_support.o: s_support.c $(ENGINE_H)
|
215 |
|
|
# OBSOLETE l_support.o: l_support.c $(ENGINE_H)
|
216 |
|
|
# OBSOLETE s_semantics.o: s_semantics.c $(ENGINE_H)
|
217 |
|
|
# OBSOLETE l_semantics.o: l_semantics.c $(ENGINE_H)
|