Remove need to update <targ>/Makefile.in when adding optional options
[deliverable/binutils-gdb.git] / sim / m32r / ChangeLog
1 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * configure: Regenerated to track ../common/aclocal.m4 changes.
4
5 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
6
7 * Makefile.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_SCACHE,
8 SIM_DEFAULT_MODEL): Delete, moved to common.
9 (SIM_EXTRA_CFLAGS): Update.
10
11 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
12
13 * configure.in (sim_link_links): Configure non-strict memory
14 alignment.
15
16 * configure: Regenerated to track ../common/aclocal.m4 changes.
17
18 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
19
20 * configure: Regenerated to track ../common/aclocal.m4 changes.
21
22 Wed Sep 17 17:44:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
23
24 * sim-if.c (sim_open): Allocate memory under sim-memopt module
25 using sim_do_commandf.
26 (sim_open): Set magic-number at the start.
27 (sim_do_command): Implement.
28
29 * sim-main.h (sim_engine_halt): Map onto engine_halt.
30
31 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
32
33 * configure: Regenerated to track ../common/aclocal.m4 changes.
34
35 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
36
37 * configure: Regenerated to track ../common/aclocal.m4 changes.
38
39 Fri Sep 5 10:21:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
40
41 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
42
43 Thu Sep 4 10:30:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
44
45 * sim-if.c (sim_open): Pass zero modulo arg to sim_core_attach.
46
47 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
48
49 * configure: Regenerated to track ../common/aclocal.m4 changes.
50 * config.in: Ditto.
51
52 Tue Aug 26 10:39:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
53
54 * sim-if.c (sim_kill): Delete.
55 (sim_create_inferior): Add ABFD argument.
56 (sim_load): Move setting of PC from here.
57 (sim_create_inferior): To here.
58 (sim_load): Delete, use sim-hload.c instead.
59
60 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
61
62 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
63
64 * configure: Regenerated to track ../common/aclocal.m4 changes.
65 * config.in: Ditto.
66
67 Mon Aug 25 15:54:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
68
69 * sim-if.c (sim_open): Add ABFD argument.
70
71 Tue Jul 22 10:16:16 1997 Doug Evans <dje@canuck.cygnus.com>
72
73 * sim-main.h (M32R_DEFAULT_MEM_SIZE): New macro.
74 * sim-if.c (sim_open): Use it.
75
76 Wed Jun 4 12:48:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
77
78 * sim-main.h (WITH_ENGINE): Disable the common engine for now.
79
80 Tue May 27 14:15:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
81
82 * sim-if.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
83 (sim_write): Ditto for write.
84
85 * m32r.c (do_trap): Ditto for read/write.
86
87 Tue May 20 10:18:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
88
89 * sim-if.c (sim_open): Add callback argument.
90 (sim_set_callbacks, sim_callback): Delete.
91 (sim_load): Set STATE_LOADED_P.
92
93 Mon May 19 12:55:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
94
95 * Makefile.in (SIM_OBJS): Link in sim-abort.o as a stub for
96 sim_engine_abort.
97
98 Mon May 5 12:45:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
99
100 * sim-if.c (sim_open): Update to reflect changes to core in
101 ../common/.
102 * mem-ops.h (GETMEMQI, GETMEMHI, GETMEMSI, GETMEMDI, GETMEMUQI,
103 GETMEMUHI, GETMEMUSI, GETMEMUDI, SETMEMQI, SETMEMHI, SETMEMSI,
104 SETMEMDI, SETMEMUQI, SETMEMUHI, SETMEMUSI, SETMEMUDI): Ditto.
105
106 Sat May 3 08:38:55 1997 Doug Evans <dje@seba.cygnus.com>
107
108 * decode.c (decode): Add computed goto support.
109
110 Fri May 2 16:30:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
111
112 * mem-ops.h: Stub additional core read/write arguments.
113
114 * sim-main.h: Declare sim_cia - type SI.
115 (struct _sim_cpu): Move base type to end per common.
116 (struct _sim_state): Ditto.
117
118 Thu May 1 11:15:34 1997 Doug Evans <dje@canuck.cygnus.com>
119
120 Merge from branch into devo. CGEN generic files moved to common
121 directory. K&R C support is no longer provided.
122
123 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
124
125 * configure: Regenerated to track ../common/aclocal.m4 changes.
126
127 Sat Apr 12 12:57:33 1997 Felix Lee <flee@yin.cygnus.com>
128
129 * Makefile.in, seman-cache.c: new file, for wingdb build.
130 * sim-alloca.h: fixed for wingdb.
131
132 Mon Apr 7 13:33:29 1997 Doug Evans <dje@seba.cygnus.com>
133
134 * decode.c (*): m32r_cgen_insn_table renamed to ..._entries.
135 * mainloop.in: Use CGEN_INSN_INDEX instead of CGEN_INSN_TYPE.
136 * simdefs.h (INSN_NAME): m32r_cgen_insn_table renamed to ..._entries.
137
138 Fri Apr 4 19:23:12 1997 Doug Evans <dje@canuck.cygnus.com>
139
140 * cgen-utils.in (ex_illegal): Fill in abuf->length, abuf->addr.
141 (exc_illegal): Likewise.
142 * decode.c (decode_vars): Add decode_illegal.
143 * genmloop.sh: #include "cpu-opc.h".
144 * sem-switch.c (case_INSN_ILLEGAL): Declare.
145 (labels): Add case_INSN_ILLEGAL.
146 (SWITCH): Add INSN_ILLEGAL case.
147
148 Wed Mar 26 12:34:00 1997 Doug Evans <dje@canuck.cygnus.com>
149
150 * model.c (model_module): Use 0 not NULL.
151
152 * genmloop.sh (sim_main_loop): Handle k&r c.
153
154 * sem-switch.c: Regenerate to get k&r c support.
155 * semantics.c: Likewise.
156
157 * m32r.c (ADD_{OV,CA}_SI,SUB_{OV,CA}_SI): Renamed to {ADD,SUB}[OC]FSI.
158 (ADDCSI,SUBCSI): New functions.
159 * sem-switch.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
160 * semantics.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
161
162 * simcache.c (simcache_{install,init,uninstall}): Use
163 DECLARE_MODULE_INSTALL_HANDLER.
164 (simcache_option_handler): Use DECLARE_OPTION_HANDLER.
165
166 * utils.c: #include "semops.h".
167
168 Tue Mar 11 14:30:26 1997 Doug Evans <dje@seba.cygnus.com>
169
170 * profile.c (profile_print_simcache): Fix thinko in printf text.
171
172 * simdefs.h (struct argbuf): Add member to fmt_20 so it's not empty.
173
174 Mon Mar 10 11:06:29 1997 Doug Evans <dje@seba.cygnus.com>
175
176 * m32r.c (h_cr_get): Rewrite.
177 (h_cr_set): Rewrite.
178 * sem-switch.c (rte): bcarry renamed to bcond.
179 * semantics.c (rte): Likewise.
180 * simdefs.h (CPU_STATE): Likewise.
181
182 * config.in (HAVE_SYS_TIME_H): Add.
183 * configure.in: Check for sys/time.h.
184 * configure: Regenerated.
185 * utils.c: Include sys/time.h if present.
186
187 * common.c (sim_parse_args): Account for NULL terminating entry
188 in long_options table.
189
190 * genmloop.sh (RUN_FAST_P): Don't run fast if tracing.
191 Always use cache if configured in.
192 * mainloop.in (do_extract_insn{16,32}): New functions.
193 (normal,fast): Call them. Handle starting in left slot.
194 * simcache.c (simcache_option_handler): Disallow -c0.
195 * sem-switch.c (TRACE_RESULT): Redefine so no tracing.
196
197 * profile.c (profile_print_simcache): Fix percentage calc.
198
199 * Makefile.in (INCLUDE_DEPS): Delete simcommon.h.
200
201 Sun Mar 9 20:42:17 1997 Doug Evans <dje@seba.cygnus.com>
202
203 * Makefile.in (COMMON_{PRE,POST}_CONFIG_FRAG): Add delimiters for.
204 (M32R_INCLUDE_DEPS): Use cpu-sim.h instead of m32r-sim.h.
205 Add mod-list.h.
206 (mrun.o): Don't depend on M32R_INCLUDE_DEPS.
207 (sim-if.o,m32r.o,utils.o): Likewise.
208 (common.o): Don't explicitly depend on mod-list.h.
209 (mainloop.c): Pass CPU to genmloop.sh.
210 (stamp-modules): Depend on configure.
211 (decode.o): Depend on decode,h, memops.h, semops.h, cpu-opc.h.
212 (extract.o): Depend on decode.h, memops.h, semops.h.
213 (semantics.o,seman-cache.o): Likewise.
214 (model.o,ops.o): Depend on memops.h.
215 (extr-cache.o): Disable building for the moment.
216
217 * simcommon.h: Delete, move contents into cgen-sim.h.
218 * cgen-sim.h: Don't include ansidecl.h,bfd.h,simfns.h.
219 (UINT,CGEN_CAT3): Define.
220 ({extract,semantic}_fn_t): Renamed to {EXTRACT,SEMANTIC}_FN.
221 (decode_t): Renamed to DECODE.
222
223 * simfns.h: Delete, contents moved to memops.h,semops.h.
224 * memops.h: New file.
225 * semops.h: New file.
226 * decode.h: Renamed from semantics.h.
227
228 * sim-argv.h: New file.
229 * Makefile.in (memory.o,trace.o,profile.o,simcache.o,common): Add
230 dependency of sim-argv.h.
231
232 * sim-alloca.h: New file.
233 * common.c: Include it.
234 * Makefile.in (common.o): Add dependency.
235
236 * config.in (HAVE_TIME_H,HAVE_SYS_RESOURCE_H): Add.
237 (HAVE_GETRUSAGE,HAVE_TIME): Add.
238 * configure.in: sinclude ../common/aclocal.m4.
239 Check for headers time.h, sys/resource.h.
240 Check for functions time, getrusage.
241 (sim_link_{files,links}): Add link cpu-opc.h.
242 (sim_profile): Add simcache.
243 (SIM_AC_PROFILE): Add simcache, profile.o.
244 (simcache module): Delete extr-cache.o for now.
245 (--enable-sim-cache): Allow specification of default cache size.
246 * configure: Regenerated.
247
248 * decode.c: #include cgen-sim.h,memops.h,semops.h,decode.h,
249 cpu-sim.h,cpu-opc.h. Don't include m32r-sim.h.
250 Regenerate.
251
252 * extract.c: #include cgen-sim.h,decode.h,cpu-sim.h.
253 Don't include m32r-sim.h.
254 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
255 Simplify profiling test with PROFILE_MODEL_P.
256 (mvfc,mvtc): Fix access of control registers.
257 * semantic.c: #include cgen-sim.h,memops.h,semops.h,decode.h,cpu-sim.h.
258 Don't include m32r-sim.h.
259 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
260 Simplify profiling test with PROFILE_MODEL_P.
261 (mvfc,mvtc): Fix access of control registers.
262
263 * sem-switch.c: New file, for GCC computed goto support.
264
265 * genmloop.sh: Add #include's of bfd.h,callback.h,cgen-sim.h,
266 memops.h,semops.h,trace.h,cpu-sim.h.
267 (RUN_FAST_P): Change default to run fast if cache size > 0
268 and not profiling.
269 (sim_main_loop): Record execution time.
270 Record instruction count even in fast mode.
271 (init): Allow cpu to provide init code in mainloop.in.
272 (FAST): Define as 0 or 1 depending on fast mode.
273 * mainloop.in (normal): Combine with fast case.
274 Add support for GCC computed gotos. Count simcache hits/misses.
275 (init): Initialize "switch" labels if GNUC.
276
277 * cgen-utils.in: Don't include opcode/cgen.h.
278 Include cgen-sim.h, cpu-opc.h.
279 * common.c: Don't include simcommon.h,mod-list.h. Include cgen-sim.h.
280 * m32r-sim.h: Don't include mod-list.h
281 (RUN_FAST_P): Delete.
282 * m32r.c: Don't include profile.h. #include ansidecl.h,cgen-sim.h,
283 semops.h,memory.h,trace.h
284 (h_cr_get,h_cr_set): New functions.
285 * memory.c: #include cgen-sim.h,callback.h.
286 * ops.c: Don't include profile.h,m32r-sim.h.
287 Include cgen-sim.h,memops.h,cpu-sim.h.
288 (MEMOPS_DEFINE_INLINE): Renamed from SIMFNS_DEFINE_INLINE.
289 * trace.c: Include cgen-sim.h,cpu-opc.h.
290 * trace.h (trace_insn_{init,fini}): Declare.
291
292 * model.c: Don't include signal.h,stdlib.h,m32r-sim.h.
293 Include cgen-sim.h,cpu-sim.h,cpu-opc.h.
294 Regenerate to get new insn aliases.
295
296 * mrun.c: #include "ansidecl.h".
297 (STATE): Use struct sim_state instead.
298
299 * profile.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
300 Don't include simcommon.h. Include cgen-sim.h,cpu-opc.h.
301 (PROFILE_{READ,WRITE}_MASK): Replace with PROFILE_MEMORY_MASK.
302 (profile_print_simcache): New function.
303 (profile_print): Call it. Print simulator speed stats.
304 * profile.h (PROFILE_{READ,WRITE}_MASK): Replace with
305 PROFILE_MEMORY_MASK.
306 (MODULE_PROFILE_SIMCACHE_P): Define.
307 (PROFILE_SIMCACHE_MASK): Define.
308 (PROFILE_COUNT): New members total_insn_count,exec_time.
309 New members simcache_hits,simcache_misses.
310 (PROFILE_SIMCACHE_{HITS,MISSES}): Define.
311 (PROFILE_MODEL_P): New macro.
312 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): New macros.
313
314 * sim-if.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
315 Don't include simcommon.h,m32r-sim.h. Include cgen-sim.h,cpu-sim.h.
316 (sim_resume): Use USING_SIMCACHE_P instead of RUN_FAST_P.
317 (sim_info): Pass verbose to profile_print.
318
319 * simcache.c: Include cgen-sim.h,callback.h.
320 (USING_SIMCACHE_P): Replace with SIMCACHE_P.
321 (simcache_option_handler): Ensure cache size at least 2.
322 Allow config time specification of default cache size.
323 * simcache.h (struct simcache): Support GCC computed gotos.
324 (SIMCACHE_DEFAULT_CACHE_SIZE): USe CONFIG_SIM_CACHE_SIZE if defined.
325 (USING_SIMCACHE_P): New macro.
326
327 * simdefs.h: Don't include m32r-opc.h.
328 (CGEN_MAX_SIM_INSNS): Define.
329 (CPU_STATE): Regenerate.
330 (ARGBUF): Regenerate.
331 (extract,semantic handler decls): Delete, moved to decode.h.
332
333 * tconfig.in: Don't include cgen-sim.h,m32r-sim.h.
334 (USE_SEM_SWITCH): Define.
335
336 * utils.c: Include bfd.h,time.h,sys/resource.h.
337 (sim_time_get,sim_time_elapsed): New functions.
338 * cgen-sim.h (SIM_TIME,sim_time_get,sim_time_elapsed): Declare.
339
340 Fri Jan 31 20:25:06 1997 Doug Evans <dje@canuck.cygnus.com>
341
342 * configure.in (AC_CHECK_HEADERS): Handle i386-windows.
343 * configure: Regenerated.
344 * model.c: #include <stdlib.h>.
345 * simcache.c: #include "libiberty.h".
346 * simcommon.h (alloca): Handle i386-windows.
347
348 * common.c: #include libiberty.h.
349 (sim_signal_to_host): Return 5 if wingdb.
350
351 Mon Jan 27 15:22:49 1997 Doug Evans <dje@seba.cygnus.com>
352
353 * configure.in (sim_cache): Enabled by default now, pass default
354 cache size to --enable-sim-cache.
355 * simcache.c (simcache_option_handler): Allow -c 0.
356
357 * simdefs.h,simfns.h: Regenerate
358 * decode.c,extract.c,model.c,ops.c,semantics.c: Regenerate.
359
360 Tue Jan 21 16:21:01 1997 Doug Evans <dje@seba.cygnus.com>
361
362 Add model profiling support.
363 * configure.in: Handle --enable-sim-model.
364 (sim_profile): Add model.
365 * Makefile.in (model.o): Add rule.
366 * cgen-sim.h (UNIT,INSN_TIMING,MACH,MODEL): New types.
367 * extract.c (*): Add model profiling support.
368 * m32r.c (model_mark_{get,set}_h_gr): New functions.
369 (model_mark_{busy,unbusy}_reg): New functions.
370 * profile.c (profile_option_handler): Recognize --profile model.
371 (profile_print_model): New function.
372 (profile_print): Call it.
373 * profile.h (MODULE_profile_model,MODULE_PROFILE_MODEL_P): Define.
374 (PROFILE_MODEL_MASK,PROFILE_LABEL_WIDTH): Define.
375 (PROFILE_COUNT): New members cycle_count,cti_stall_count,
376 load_stall_count,taken_count,untaken_count.
377 * semantics.c (*): Add model profiling support.
378 * simcommon.h (struct sim_state): New members mach,model.
379 * simdefs.h (CPU_PROFILE,MODEL_TYPE,UNIT_TYPE): New type.
380 (MAX_MODELS,MAX_UNITS): Define.
381 * tconfig.in (STATE_EXTRA_MEMBERS): Add cpu_profile.
382
383 * Makefile.in (INCLUDE_DEPS): Add $(SIM_MODULES_HDRS).
384 (stamp-modules): Depend on genmodlist.sh.
385 * common.c (standard_options): Add --max-insns.
386 (copy_argv): New function.
387 * tconfig.in (SIM_HAVE_MAX_INSNS): Define.
388 * genmloop.sh: Allow mainloop.in to contain support code.
389 * mainloop.in: Move do_insn16,do_insn32 here.
390 * m32r.c (do_trap): Handle SYS_argvlen,SYS_argv,SYS_read.
391 * sim-if.c (sim_open): Don't set max insn count.
392 (sim_create_inferior): Save argv,envp.
393 * simcommon.h (struct sim_state): New members argv,envp.
394 * simdefs.h ([GS]ETTWI,[GS]ETTUWI,[GS]ETTAI): Define.
395 ([GS]ETMEMWI,[GS]ETMEMUWI,[GS]ETMEMAI): Define.
396 (ARGBUF): New members h_gr_get, h_gr_set.
397 * trace.c (trace_insn_init,trace_insn_fini): New functions.
398 (trace_printf): Print to buffer, output later by trace_insn_fini.
399 * trace.h (TRACE_INSN_{INIT,FINI}): Define.
400
401 Thu Dec 19 16:01:59 1996 Doug Evans <dje@canuck.cygnus.com>
402
403 * configure.in (AC_FUNC_ALLOCA): Call.
404 * configure: Regenerate.
405 * config.h (HAVE_ALLOCA_H): Add.
406 * simcommon.h: Add alloca support.
407 (DECLARE_MODULE_INSTALL_HANDLER): Define.
408 (DECLARE_OPTION_HANDLER): Define.
409 (MEM_FN): Declare using PARAMS.
410 (DECLARE_MEM_FN): Define.
411 * trace.c (trace_result): Tweak for !STDC.
412 * cgen-sim.h (UDI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
413 * cgen-utils.in (disasm_sprintf): Fix va_arg call in !STDC case.
414 * common.c (sim_print_help_fn): Use PARAMS.
415 (standard_option_handler): Fix decl for !STDC systems.
416 * memory.c: #include <stdio.h>
417 (mem_flat_{install,init,uninstall}): Fix decl for !STDC systems.
418 (mem_flat_{read,write},mem_flat_option_handler): Likewise.
419 * profile.c (profile_install): Likewise.
420 (profile_option_handler): Likewise.
421
422 Thu Dec 19 11:06:19 1996 Doug Evans <dje@seba.cygnus.com>
423
424 * semantics.c (*): Don't suffix big unsigned numbers with "U".
425 Prefix them with 0x instead.
426
427 * cgen-sim.h (DI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
428 (SLADI,SRADI,CONVSIDI,CONVDISI): Delete, moved to simfns.h.
429 * semantics.c (machi,maclo,macwhi,macwlo,mulhi,mullo): Implement.
430 (mulwhi,mulwlo,mvtachi,mvtaclo,rac,rach): Implement.
431 * simfns.h: Add decls for functional DI,UDI,SF,DF,XF,TF support.
432 Add support for boolean and/or.
433 * utils.c: Redo naming of DI functional support.
434 (ANDDI,ORDI,ADDDI,MULDI,GEDI,LEDI,CONVHIDI): New functions.
435
436 Tue Dec 17 12:57:48 1996 Doug Evans <dje@seba.cygnus.com>
437
438 * Directory created.
This page took 0.039391 seconds and 5 git commands to generate.