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