1 2021-07-01 Mike Frysinger <vapier@gentoo.org>
3 * configure.ac: Removed.
7 2021-07-01 Mike Frysinger <vapier@gentoo.org>
9 * traps.c (m32r_trap): Reformat indentation to GNU style.
11 2021-07-01 Mike Frysinger <vapier@gentoo.org>
13 * Makefile.in (TRAPS_OBJ, SIM_EXTRA_CFLAGS): Delete.
14 * configure.ac (traps_obj, sim_extra_cflags): Delete.
15 * sim-if.c (M32R_DEFAULT_MEM_SIZE): New define.
16 (sim_create_inferior): Replace M32R_LINUX with STATE_ENVIRONMENT
18 * sim-main.h (M32R_DEFAULT_MEM_SIZE): Delete.
19 * traps-linux.c: Merge with ...
20 * traps.c: ... this file.
21 * configure: Regenerate.
23 2021-07-01 Mike Frysinger <vapier@gentoo.org>
25 * traps-linux.c (conv_endian, conv_endian16,
26 translate_endian): Delete.
27 (translate_endian_h2t): New host-to-target function.
28 (translate_endian_t2h): New target-to-host function.
29 (m32r_trap): Replace conv_endian with H2T_4 & T2H_4, conv_endian16
30 with H2T_2 & T2H_2, and translate_endian with translate_endian_h2t
31 & translate_endian_t2h.
33 2021-07-01 Mike Frysinger <vapier@gentoo.org>
35 * traps-linux.c (m32r_trap): Change OPERATING_ENVIRONMENT check to
36 !USER_ENVIRONMENT. Jump to default switch case.
38 2021-07-01 Mike Frysinger <vapier@gentoo.org>
40 * syscall.h: Change __NR_ prefix on all symbols to TARGET_LINUX_SYS_.
41 * traps-linux.c: Likewise. Include sim/callback.h & stdlib.h.
43 2021-06-30 Mike Frysinger <vapier@gentoo.org>
45 * configure.ac: Delete SIM_AC_OPTION_SCACHE call.
46 * aclocal.m4: Regenerate.
47 * configure: Regenerate.
49 2021-06-30 Mike Frysinger <vapier@gentoo.org>
51 * configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
52 * sim-if.c (sim_open): Set STATE_MODEL_NAME.
53 * aclocal.m4: Regenerate.
54 * configure: Regenerate.
56 2021-06-30 Mike Frysinger <vapier@gentoo.org>
58 * arch.c (sim_machs): Rename to ...
59 (m32r_sim_machs): ... this.
60 * sim-if.c (m32r_sim_machs): New decl.
61 (sim_open): Set STATE_MACH.
63 2021-06-29 Mike Frysinger <vapier@gentoo.org>
65 * arch.c (sim_machs): Mark const.
67 2021-06-28 Mike Frysinger <vapier@gentoo.org>
69 * cpu.c (m32rbf_record_trace_results): Delete function.
70 * cpu2.c (m32r2f_record_trace_results): Likewise.
71 * cpux.c (m32rxf_record_trace_results): Likewise.
73 2021-06-24 Mike Frysinger <vapier@gentoo.org>
75 * traps-linux.c (m32r_trap): Set s.arg4, s.arg5, s.arg6, and s.arg7.
77 2021-06-22 Mike Frysinger <vapier@gentoo.org>
79 * configure: Regenerate.
81 2021-06-21 Mike Frysinger <vapier@gentoo.org>
83 * aclocal.m4: Regenerate.
84 * configure: Regenerate.
86 2021-06-21 Mike Frysinger <vapier@gentoo.org>
88 * Makefile.in (SIM_EXTRA_HW_DEVICES): Define.
89 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete call.
90 * configure: Regenerate.
92 2021-06-20 Mike Frysinger <vapier@gentoo.org>
94 * configure.ac (SIM_AC_COMMON): Delete.
95 * aclocal.m4, configure: Regenerate.
97 2021-06-20 Mike Frysinger <vapier@gentoo.org>
99 * aclocal.m4: Regenerate.
100 * configure: Regenerate.
102 2021-06-20 Mike Frysinger <vapier@gentoo.org>
104 * Makefile.in (CGEN_MAINT): Delete.
105 * configure.ac: Delete SIM_AC_OPTION_CGEN_MAINT call.
106 * aclocal.m4, configure: Regenerate.
108 2021-06-20 Mike Frysinger <vapier@gentoo.org>
110 * aclocal.m4: Regenerate.
111 * configure: Regenerate.
113 2021-06-19 Mike Frysinger <vapier@gentoo.org>
115 * aclocal.m4: Regenerate.
116 * configure: Regenerate.
118 2021-06-19 Mike Frysinger <vapier@gentoo.org>
120 * configure: Regenerate.
122 2021-06-18 Mike Frysinger <vapier@gentoo.org>
124 * aclocal.m4, configure: Regenerate.
126 2021-06-18 Mike Frysinger <vapier@gentoo.org>
128 * Makefile.in (SIM_WERROR_CFLAGS): New variable.
129 * configure.ac: Delete call to SIM_AC_OPTION_WARNINGS.
130 * configure: Regenerate.
132 2021-06-18 Mike Frysinger <vapier@gentoo.org>
134 * traps-linux.c: Include sim-signal.h.
137 2021-06-17 Mike Frysinger <vapier@gentoo.org>
139 * configure.ac: Delete SIM_AC_OPTION_ENDIAN call.
140 * sim-if.c (sim_open): Set current_target_byte_order.
141 * aclocal.m4, configure: Regenerate.
143 2021-06-16 Mike Frysinger <vapier@gentoo.org>
145 * configure: Regenerate.
147 2021-06-16 Mike Frysinger <vapier@gentoo.org>
149 * configure: Regenerate.
150 * config.in: Removed.
152 2021-06-15 Mike Frysinger <vapier@gentoo.org>
154 * config.in, configure: Regenerate.
156 2021-06-12 Mike Frysinger <vapier@gentoo.org>
158 * traps-linux.c: Include portability.h.
160 2021-06-12 Mike Frysinger <vapier@gentoo.org>
162 * configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
163 * sim-if.c (sim_open): Set current_alignment.
165 2021-06-12 Mike Frysinger <vapier@gentoo.org>
167 * aclocal.m4, config.in, configure: Regenerate.
169 2021-06-12 Mike Frysinger <vapier@gentoo.org>
171 * config.in, configure: Regenerate.
173 2021-06-09 Mike Frysinger <vapier@gentoo.org>
175 * sim-if.c (sim_open): Delete cgen_init call.
177 2021-05-17 Mike Frysinger <vapier@gentoo.org>
179 * sim-main.h (struct sim_state): Delete.
181 2021-05-16 Mike Frysinger <vapier@gentoo.org>
183 * dv-m32r_cache.c, dv-m32r_uart.c: Replace config.h include with
185 * m32r.c, m32r2.c, m32rx.c, sim-if.c, traps-linux.c,
186 traps.c: Include defs.h.
188 2021-05-16 Mike Frysinger <vapier@gentoo.org>
190 * config.in, configure: Regenerate.
192 2021-05-04 Tom Tromey <tromey@adacore.com>
194 * mloop.in: Include <stdlib.h>.
196 2021-05-04 Mike Frysinger <vapier@gentoo.org>
198 * configure: Regenerate.
200 2021-05-01 Mike Frysinger <vapier@gentoo.org>
202 * config.in, configure: Regenerate.
204 2021-04-26 Mike Frysinger <vapier@gentoo.org>
206 * Makefile.in (NL_TARGET): Delete.
208 2021-04-23 Mike Frysinger <vapier@gentoo.org>
210 * configure.ac (SIM_AC_OPTION_HARDWARE): Delete first two args.
211 * configure: Regenerate.
213 2021-04-22 Tom Tromey <tom@tromey.com>
215 * configure, config.in: Rebuild.
217 2021-04-22 Tom Tromey <tom@tromey.com>
219 * Makefile.in (sim-if.o, arch.o, traps.o, traps-linux.o)
220 (devices.o, m32r.o, mloop.o, cpu.o, decode.o, sem.o, model.o)
221 (m32rx.o, mloopx.o, cpux.o, decodex.o, semx.o, modelx.o)
222 (m32r2.o, mloop2.o, cpu2.o, decode2.o, sem2.o, model2.o): Remove.
223 (SIM_EXTRA_DEPS): Add eng.h, engx.h, eng2.h.
225 2021-04-22 Tom Tromey <tom@tromey.com>
227 * configure: Rebuild.
229 2021-04-21 Mike Frysinger <vapier@gentoo.org>
231 * aclocal.m4: Regenerate.
233 2021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
235 * configure: Regenerate.
237 2021-04-18 Mike Frysinger <vapier@gentoo.org>
239 * configure: Regenerate.
241 2021-04-12 Mike Frysinger <vapier@gentoo.org>
243 * sim-if.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
245 2021-04-08 Tom Tromey <tom@tromey.com>
247 * traps.c: Include stdlib.h.
248 * m32r.c: Include stdlib.h.
250 2021-04-08 Tom Tromey <tom@tromey.com>
252 * sim-if.c (sim_open, sim_create_inferior): Use new-style
255 2021-04-02 Mike Frysinger <vapier@gentoo.org>
257 * aclocal.m4, configure: Regenerate.
259 2021-02-28 Mike Frysinger <vapier@gentoo.org>
261 * configure: Regenerate.
263 2021-02-21 Mike Frysinger <vapier@gentoo.org>
265 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
266 * aclocal.m4, configure: Regenerate.
268 2021-02-13 Mike Frysinger <vapier@gentoo.org>
270 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
271 * aclocal.m4, configure: Regenerate.
273 2021-02-06 Mike Frysinger <vapier@gentoo.org>
275 * sim-if.c (sim_open): Delete call to STATE_WATCHPOINTS.
277 2021-02-06 Mike Frysinger <vapier@gentoo.org>
279 * configure: Regenerate.
281 2021-01-30 Mike Frysinger <vapier@gentoo.org>
283 * sim-if.c (sim_open): Delete STATE_WATCHPOINTS (sd)->sizeof_pc.
285 2021-01-11 Mike Frysinger <vapier@gentoo.org>
287 * configure.ac: Call SIM_AC_OPTION_WARNINGS.
288 * configure: Regenerate.
290 2021-01-11 Mike Frysinger <vapier@gentoo.org>
292 * config.in, configure: Regenerate.
293 * sim-if.c: Delete HAVE_STRING_H, HAVE_STRINGS_H, HAVE_STDLIB_H,
294 and strings.h include.
296 2021-01-09 Mike Frysinger <vapier@gentoo.org>
298 * configure: Regenerate.
300 2021-01-08 Mike Frysinger <vapier@gentoo.org>
302 * configure: Regenerate.
304 2021-01-04 Mike Frysinger <vapier@gentoo.org>
306 * configure: Regenerate.
308 2020-11-12 Nick Clifton <nickc@redhat.com>
310 * m32r-sim.h (m32rbf_h_accum_get_handler): Always provide a
311 prototype for this function.
312 (m32rbf_h_accum_set_handler): Likewise.
313 (m32r2f_h_accums_get_handler): Prototype.
314 (m32r2f_h_accums_set_handler): Prototype.
316 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
318 * m32r.c (m32rbf_register_size): New function.
319 (m32rbf_fetch_register): Use new function.
320 (m32rbf_store_register): Likewise.
322 2017-09-06 John Baldwin <jhb@FreeBSD.org>
324 * configure: Regenerate.
326 2017-02-13 Mike Frysinger <vapier@gentoo.org>
328 * decode.c (m32rbf_init_idesc_table): Use ARRAY_SIZE.
329 * decode2.c (m32r2f_init_idesc_table): Likewise.
330 * decodex.c (m32rxf_init_idesc_table): Likewise.
332 2016-01-10 Mike Frysinger <vapier@gentoo.org>
334 * config.in, configure: Regenerate.
336 2016-01-10 Mike Frysinger <vapier@gentoo.org>
338 * configure: Regenerate.
340 2016-01-10 Mike Frysinger <vapier@gentoo.org>
342 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
343 * configure: Regenerate.
345 2016-01-10 Mike Frysinger <vapier@gentoo.org>
347 * configure: Regenerate.
349 2016-01-10 Mike Frysinger <vapier@gentoo.org>
351 * configure: Regenerate.
353 2016-01-10 Mike Frysinger <vapier@gentoo.org>
355 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
356 * configure: Regenerate.
358 2016-01-10 Mike Frysinger <vapier@gentoo.org>
360 * configure: Regenerate.
362 2016-01-10 Mike Frysinger <vapier@gentoo.org>
364 * configure: Regenerate.
366 2016-01-09 Mike Frysinger <vapier@gentoo.org>
368 * config.in, configure: Regenerate.
370 2016-01-06 Mike Frysinger <vapier@gentoo.org>
372 * sim-if.c (sim_open): Mark argv const.
373 (sim_create_inferior): Mark argv and env const.
375 2016-01-04 Mike Frysinger <vapier@gentoo.org>
377 * configure: Regenerate.
379 2016-01-03 Mike Frysinger <vapier@gentoo.org>
381 * sim-if.c (sim_open): Update sim_parse_args comment.
383 2016-01-03 Mike Frysinger <vapier@gentoo.org>
387 2016-01-03 Mike Frysinger <vapier@gentoo.org>
389 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
390 * configure: Regenerate.
391 * traps-linux.c (conv_endian): Change CURRENT_HOST_BYTE_ORDER
393 (conv_endian16): Likewise.
395 2016-01-02 Mike Frysinger <vapier@gentoo.org>
397 * arch.h (TARGET_BIG_ENDIAN): Delete.
398 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
399 * configure: Regenerate.
400 * traps-linux.c (conv_endian): Change LITTLE_ENDIAN to
402 (conv_endian16): Likewise.
404 2016-01-02 Mike Frysinger <vapier@gentoo.org>
406 * sim-if.c (sim_open): Delete #if 0 sim_add_option_table call.
408 2016-01-02 Mike Frysinger <vapier@gentoo.org>
410 * sim-if.c (current_state): Delete.
411 (sim_open): Delete current_state assignment.
413 2015-12-27 Mike Frysinger <vapier@gentoo.org>
415 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
417 2015-12-26 Mike Frysinger <vapier@gentoo.org>
419 * config.in, configure: Regenerate.
421 2015-12-26 Mike Frysinger <vapier@gentoo.org>
423 * sim-if.c (sim_create_inferior): Replace old #if 0 code with dupargv.
425 2015-12-25 Mike Frysinger <vapier@gentoo.org>
427 * configure.ac (SIM_AC_OPTION_HARDWARE): Add m32r_cache & m32r_uart.
428 * configure: Regenerate.
429 * devices.c: Delete file.
430 * dv-m32r_cache.c, dv-m32r_cache.h: New cache model with logic from
432 * dv-m32r_uart.c, dv-m32r_uart.h: New uart model with logic from
434 * m32r-sim.h: Move cache defines to dv-m32r_cache.h and uart defines
436 * Makefile.in (SIM_OBJS): Delete devices.o.
437 * sim-if.c: Include dv-m32r_uart.h.
438 (sim_open): Replace sim_core_attach call with sim_hw_parse calls.
439 * tconfig.h: Delete file.
441 2015-12-25 Mike Frysinger <vapier@gentoo.org>
443 * Makefile.in (SIM_OBJS): Delete sim-model.o.
445 2015-12-25 Mike Frysinger <vapier@gentoo.org>
447 * arch.c: Rename MACH to SIM_MACH.
448 * cpuall.h: Likewise.
449 * model.c: Rename MACH to SIM_MACH, MACH_IMP_PROPERTIES to
450 SIM_MACH_IMP_PROPERTIES, and MODEL to SIM_MODEL.
451 * model2.c, modelx.c: Likewise.
453 2015-12-25 Mike Frysinger <vapier@gentoo.org>
455 * sim-main.h (WITH_SCACHE_PBB): Move from ...
456 * tconfig.h (WITH_SCACHE_PBB): ... here.
458 2015-12-25 Mike Frysinger <vapier@gentoo.org>
460 * devices.c (device_error): Delete.
462 2015-12-24 Mike Frysinger <vapier@gentoo.org>
464 * tconfig.h (SIM_HANDLES_LMA): Delete.
466 2015-12-24 Mike Frysinger <vapier@gentoo.org>
468 * tconfig.h (SIM_HAVE_BREAKPOINTS, SIM_BREAKPOINT,
469 SIM_BREAKPOINT_SIZE): Delete.
470 * traps-linux.c [SIM_HAVE_BREAKPOINTS] (m32r_trap): Delete sim
472 * traps.c [SIM_HAVE_BREAKPOINTS] (m32r_trap): Likewise.
474 2015-12-24 Mike Frysinger <vapier@gentoo.org>
476 * tconfig.h (WITH_WATCHPOINTS): Delete.
478 2015-12-24 Mike Frysinger <vapier@gentoo.org>
480 * tconfig.h (SIM_HAVE_MEM_SIZE): Delete.
482 2015-11-15 Mike Frysinger <vapier@gentoo.org>
484 * Makefile.in (SIM_OBJS): Delete sim-reason.o, sim-reg.o, and
487 2015-11-14 Mike Frysinger <vapier@gentoo.org>
489 * sim-if.c (sim_close): Delete.
491 2015-06-23 Mike Frysinger <vapier@gentoo.org>
493 * configure: Regenerate.
495 2015-06-17 Mike Frysinger <vapier@gentoo.org>
497 * traps.c (m32r_trap): Replace call to cb_syscall with
499 * traps-linux.c (m32r_trap): Likewise.
501 2015-06-17 Mike Frysinger <vapier@gentoo.org>
503 * traps-linux.c: Include sim-syscall.h.
504 (syscall_read_mem, syscall_write_mem): Delete.
505 (m32r_trap): Change syscall_read_mem/syscall_write_mem
506 to sim_syscall_read_mem/sim_syscall_write_mem.
507 * traps.c: Include sim-syscall.h.
508 (syscall_read_mem, syscall_write_mem): Delete.
509 (m32r_trap): Change syscall_read_mem/syscall_write_mem
510 to sim_syscall_read_mem/sim_syscall_write_mem.
512 2015-06-12 Mike Frysinger <vapier@gentoo.org>
514 * configure: Regenerate.
516 2015-06-12 Mike Frysinger <vapier@gentoo.org>
518 * configure: Regenerate.
520 2015-06-12 Mike Frysinger <vapier@gentoo.org>
522 * decode.c (m32rbf_decode): Change TRACE_EXTRACT to CGEN_TRACE_EXTRACT.
523 * decode2.c (m32r2f_decode): Likewise.
524 * decodex.c (m32rxf_decode): Likewise.
525 * mloop.in (execute): Change TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT,
526 TRACE_INSN to CGEN_TRACE_INSN, and TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
527 * sem.c: Rename TRACE_RESULT to CGEN_TRACE_RESULT.
528 * sem-switch.c: Likewise.
529 * sem-switch2.c: Likewise.
530 * sem-switchx.c: Likewise.
532 2015-04-18 Mike Frysinger <vapier@gentoo.org>
534 * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESTART_HOOK): Delete.
536 2015-04-18 Mike Frysinger <vapier@gentoo.org>
538 * sim-main.h (USING_SIM_BASE_H): Delete.
540 2015-04-18 Mike Frysinger <vapier@gentoo.org>
542 * sim-main.h (_sim_cpu, SIM_CPU): Delete.
544 2015-04-18 Mike Frysinger <vapier@gentoo.org>
546 * sim-main.h (sim_cia): Delete.
548 2015-04-17 Mike Frysinger <vapier@gentoo.org>
550 * sim-main.h (CIA_GET, CIA_SET): Delete.
552 2015-04-15 Mike Frysinger <vapier@gentoo.org>
554 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
555 * sim-main.h (STATE_CPU): Delete.
557 2015-04-15 Mike Frysinger <vapier@gentoo.org>
559 * sim-main.h (struct sim_state): Change cpu to an array of pointers.
560 (STATE_CPU): Handle WITH_SMP.
562 2015-04-13 Mike Frysinger <vapier@gentoo.org>
564 * configure: Regenerate.
566 2015-04-06 Mike Frysinger <vapier@gentoo.org>
568 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
570 2015-03-31 Mike Frysinger <vapier@gentoo.org>
572 * config.in, configure: Regenerate.
574 2015-03-24 Mike Frysinger <vapier@gentoo.org>
576 * sim-if.c (sim_open): Delete dv_sockser_install call.
578 2015-03-24 Mike Frysinger <vapier@gentoo.org>
580 * configure: Regenerate.
582 2015-03-24 Mike Frysinger <vapier@gentoo.org>
584 * configure: Regenerate.
586 2015-03-23 Mike Frysinger <vapier@gentoo.org>
588 * configure: Regenerate.
590 2015-03-23 Mike Frysinger <vapier@gentoo.org>
592 * configure: Regenerate.
594 2015-03-16 Mike Frysinger <vapier@gentoo.org>
596 * aclocal.m4, config.in, configure: Regenerate.
597 * tconfig.in: Rename file ...
598 * tconfig.h: ... here.
600 2015-03-15 Mike Frysinger <vapier@gentoo.org>
602 * tconfig.in [HAVE_DV_SOCKSER]: Delete.
604 2015-03-14 Mike Frysinger <vapier@gentoo.org>
606 * Makefile.in (SIM_RUN_OBJS): Delete.
608 2014-08-23 Hans-Peter Nilsson <hp@axis.com>
610 * configure.ac: Default simulator hardware to off again. Remove
611 dead m32r_extra_objs substitution.
612 * configure: Regenerate.
613 * Makefile.in: Remove unused m32r_extra_objs.
615 2014-08-19 Alan Modra <amodra@gmail.com>
617 * configure: Regenerate.
619 2014-08-15 Roland McGrath <mcgrathr@google.com>
621 * configure: Regenerate.
622 * config.in: Regenerate.
624 2013-09-23 Alan Modra <amodra@gmail.com>
626 * configure: Regenerate.
628 2013-06-03 Mike Frysinger <vapier@gentoo.org>
630 * aclocal.m4, configure: Regenerate.
632 2013-03-30 Joel Sherrill <joel.sherrill@oarcorp.com>
633 Mike Frysinger <vapier@gentoo.org>
635 * configure.ac: Add m32r_extra_objs. Change simulator hardware
636 from always on to defaulting to yes it is enabled.
637 * Makefile.in: Conditionalize reference to dv-sockser.o.
638 * tconfig.in: Delete HAVE_DV_SOCKSER logic that was under "#if 0".
639 * configure: Regenerated.
641 2013-03-26 Mike Frysinger <vapier@gentoo.org>
643 * configure: Regenerate.
645 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
647 * configure.ac: Fail if dv-sockser.o not available.
648 Error when --disable-sim-hardware is specified.
649 * configure: Regenerated.
651 2012-06-15 Joel Brobecker <brobecker@adacore.com>
653 * config.in, configure: Regenerate.
655 2012-03-25 Mike Frysinger <vapier@gentoo.org>
657 * traps-linux.c (sim_core_trans_addr): Delete prototype.
659 2012-03-24 Mike Frysinger <vapier@gentoo.org>
661 * aclocal.m4, config.in, configure: Regenerate.
663 2011-12-03 Mike Frysinger <vapier@gentoo.org>
665 * aclocal.m4: New file.
666 * configure: Regenerate.
668 2011-10-17 Mike Frysinger <vapier@gentoo.org>
670 * configure.ac: Change include to common/acinclude.m4.
672 2011-10-17 Mike Frysinger <vapier@gentoo.org>
674 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
675 call. Replace common.m4 include with SIM_AC_COMMON.
676 * configure: Regenerate.
678 2011-07-05 Mike Frysinger <vapier@gentoo.org>
680 * sim-if.c (sim_do_command): Delete.
682 2010-03-30 Mike Frysinger <vapier@gentoo.org>
684 * devices.c (device_error): Add const to message.
686 2010-02-11 Doug Evans <dje@sebabeach.org>
688 * cpu.h, * cpu2.h, * cpux.h, * decode.c, * decode2.c, * decodex.c,
689 * model.c, * model2.c, * modelx.c,
690 * sem-switch.c, * sem.c, * sem2-switch.c, * semx-switch.c: Regenerate.
692 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
694 * configure: Regenerate.
696 2010-01-02 Doug Evans <dje@sebabeach.org>
698 * arch.c, * arch.h, * cpu.c, * cpu.h, * cpu2.c, * cpu2.h, * cpuall.h,
699 * cpux.c, * cpux.h, * decode.c, * decode.h, * decode2.c, * decode2.h,
700 * decodex.c, * decodex.h, * model.c, * model2.c, * modelx.c,
701 * sem-switch.c, * sem.c, * sem2-switch.c, * semx-switch.c: Regenerate,
702 update copyright year.
704 2009-11-22 Doug Evans <dje@sebabeach.org>
707 * cpu2.h: Regenerate.
708 * cpux.h: Regenerate.
709 * cpuall.h: Regenerate.
710 * decode.c: Regenerate.
711 * decode.h: Regenerate.
712 * decode2.c: Regenerate.
713 * decode2.h: Regenerate.
714 * decodex.c: Regenerate.
715 * decodex.h: Regenerate.
717 2009-11-03 Doug Evans <dje@sebabeach.org>
719 * arch.c: Regenerate.
720 * arch.h: Regenerate.
723 * cpu2.c: Regenerate.
724 * cpu2.h: Regenerate.
725 * cpuall.h: Regenerate.
726 * cpux.c: Regenerate.
727 * cpux.h: Regenerate.
728 * decode.c: Regenerate.
729 * decode.h: Regenerate.
730 * decode2.c: Regenerate.
731 * decode2.h: Regenerate.
732 * decodex.c: Regenerate.
733 * decodex.h: Regenerate.
734 * model.c: Regenerate.
735 * model2.c: Regenerate.
736 * modelx.c: Regenerate.
737 * sem-switch.c: Regenerate.
739 * sem2-switch.c: Regenerate.
740 * semx-switch.c: Regenerate.
742 * Makefile.in (mloop.c): Add @true to rule.
743 (mloopx.c, mloop2.c): Ditto.
744 (stamp-*): Add Makefile dependency.
745 (arch.c, arch.h, cpuall.h): Specify full path.
746 (cpu.h, sem.c, sem-switch.c, model.c, decode.c, decode.h): Ditto.
747 (cpux.h, semx-switch.c, modelx.c, decodex.c, decodex.h): Ditto.
748 (cpu2.h, sem2-switch.c, model2.c, decode2.c, decode2.h): Ditto.
750 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
752 * config.in: Regenerate.
753 * configure: Likewise.
755 * configure: Regenerate.
757 2009-07-12 Doug Evans <dje@sebabeach.org>
759 * Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
760 (stamp-cpu, stamp-xcpu, stamp-2cpu): Ditto.
762 2009-06-20 Doug Evans <dje@sebabeach.org>
764 * mloop.in: Add missing # comment marker.
768 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
770 * configure: Regenerate to track ../common/common.m4 changes.
773 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
774 Daniel Jacobowitz <dan@codesourcery.com>
775 Joseph Myers <joseph@codesourcery.com>
777 * configure: Regenerate.
779 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
781 * acconfig.h: Remove.
782 * config.in: Regenerate.
784 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
786 * configure: Regenerated.
788 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
790 * configure: Regenerated.
792 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
794 * configure: Regenerated.
796 2005-03-23 Mark Kettenis <kettenis@gnu.org>
798 * configure: Regenerate.
800 2005-01-14 Andrew Cagney <cagney@gnu.org>
802 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
803 explicit call to AC_CONFIG_HEADER.
804 * configure: Regenerate.
806 2005-01-12 Andrew Cagney <cagney@gnu.org>
808 * configure.ac: Update to use ../common/common.m4.
809 * configure: Re-generate.
811 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
813 * configure: Regenerated to track ../common/aclocal.m4 changes.
815 2005-01-07 Andrew Cagney <cagney@gnu.org>
817 * configure.ac: Rename configure.in, require autoconf 2.59.
818 * configure: Re-generate.
820 2004-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
822 Committed by Kei Sakamoto.
823 * traps-linux.c (m32r_trap): Add entries of the following dummy system
824 calls: __NR_mmap2, __NR_lchown32, __NR_getuid32, __NR_getgid32,
825 __NR_geteuid32, __NR_getegid32, __NR_getgroups32, __NR_fchown32,
826 __NR_setfsuid32, __NR_setfsgid32, __NR_getresuid32,
827 __NR_getresgid32 and __NR_chown32.
828 * syscall.h: Add new definitions of system call number.
830 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
832 * configure: Regenerate for ../common/aclocal.m4 update.
834 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
836 Committed by Andrew Cagney.
837 * traps-linux.c: Don't include linux/module.h.
838 (m32r_trap): Remove dummy systemcall's entry of __NR_ustat and
839 __NR_get_kernel_syms.
841 2004-05-18 Daniel Jacobowitz <dan@debian.org>
843 * Makefile.in (stamp-xmloop, stamp-2mloop): Use -outfile-suffix.
845 2004-02-04 Andrew Cagney <cagney@redhat.com>
847 Committed by Andrew Cagney.
848 * mloopx.in: Update copyright.
849 (xextract-pbb): Fixed trap for system calls operation in parallel.
850 * mloop2.in (xextract-pbb): Ditto.
852 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
854 * configure.in: Changed for dummy simulator of m32r-linux.
855 * configure: Regenerate.
856 * Makefile.in: Added traps-linux.o for dummy simulator of m32r-linux.
857 * traps-linux.c: Added for dummy simulator of m32r-linux.
859 * sim-if.c (sim_create_inferior): Changed to setup SP for dummy
860 simulator for m32r-linux.
861 * sim-main.h (M32R_DEFAULT_MEM_SIZE): Changed for dummy simulator of
864 2003-12-11 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
866 * Makefile.in: Add support for new machine m32r2.
867 * cpu2.c: New file for m32r2 support.
869 * decode2.c: Likewise.
870 * decode2.h: Likewise.
872 * mloop2.in: Likewise.
873 * model2.c: Likewise.
874 * sem2-switch.c: Likewise.
875 * arch.c: Regenerate.
876 * arch.h: Regenerate.
878 * arch.c: Regenerate.
879 * cpuall.c: Regenerate.
880 * cpux.c: Regenerate.
881 * cpux.h: Regenerate.
882 * decode.c: Regenerate.
883 * decode.h: Regenerate.
884 * decodex.c: Regenerate.
885 * decodex.h: Regenerate.
886 * model.c: Regenerate.
887 * modelx.c: Regenerate.
888 * sem-switch.c: Regenerate.
890 * semx-switch.c: Regenerate.
891 * m32r-sim.h: Add EVB register support.
892 * sim-if.c: Likewise.
893 * sim-main.h: Likewise.
896 2003-09-08 Dave Brolley <brolley@redhat.com>
898 On behalf of Doug Evans <dje@sebabeach.org>
899 * Makefile.in (stamp-arch,stamp-cpu,stamp-xcpu): Pass archfile to cgen.
901 2003-02-27 Andrew Cagney <cagney@redhat.com>
903 * sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
905 2002-12-19 Doug Evans <dje@sebabeach.org>
907 * arch.c,arch.h,cpuall.h: Regenerate.
908 * cpu.c,cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Regenerate.
909 * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Regenerate.
911 2002-06-16 Andrew Cagney <ac131313@redhat.com>
913 * configure: Regenerated to track ../common/aclocal.m4 changes.
915 2001-11-14 Dave Brolley <brolley@redhat.com>
917 * arch.c: Regenerate.
918 * arch.h: Regenerate.
921 * cpuall.h: Regenerate.
922 * cpux.c: Regenerate.
923 * cpux.h: Regenerate.
924 * decode.c: Regenerate.
925 * decode.h: Regenerate.
926 * decodex.c: Regenerate.
927 * decodex.h: Regenerate.
928 * model.c: Regenerate.
929 * modelx.c: Regenerate.
930 * sem-switch.c: Regenerate.
932 * semx-switch.c: Regenerate.
934 2001-07-05 Ben Elliston <bje@redhat.com>
936 * Makefile.in (stamp-arch): Use $(CGEN_CPU_DIR).
937 (stamp-cpu): Likewise.
938 (stamp-xcpu): Likewise.
940 2001-03-05 Dave Brolley <brolley@redhat.com>
942 * arch.c: Regenerate.
943 * arch.h: Regenerate.
946 * cpuall.h: Regenerate.
947 * cpux.c: Regenerate.
948 * cpux.h: Regenerate.
949 * decode.c: Regenerate.
950 * decode.h: Regenerate.
951 * decodex.c: Regenerate.
952 * decodex.h: Regenerate.
953 * model.c: Regenerate.
954 * modelx.c: Regenerate.
955 * sem-switch.c: Regenerate.
957 * semx-switch.c: Regenerate.
959 2001-01-12 Frank Ch. Eigler <fche@redhat.com>
961 * configure: Regenerated with sim_scache fix.
963 2000-11-18 Greg McGary <greg@mcgary.org>
965 * Makefile.in: remove `@true' commands for rules that have
966 $(CGEN_MAINT) as a prerequisite.
968 2000-10-06 Dave Brolley <brolley@redhat.com>
970 * sem.c: Regenerated.
971 * sem-switch.c: Regenerated.
972 * semx-switch.c: Regenerated.
974 2000-08-28 Dave Brolley <brolley@redhat.com>
976 * Makefile.in: Use of @true confuses VPATH. Remove it.
977 * cpu.h: Regenerated.
978 * cpux.h: Regenerated.
979 * decode.c: Regenerated.
980 * decodex.c: Regenerated.
981 * model.c: Regenerated.
982 * modelx.c: Regenerated.
983 * sem-switch.c: Regenerated.
984 * sem.c: Regenerated.
985 * semx-switch.c: Regenerated.
987 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
989 * Makefile.in (m32r-clean): Add stamp-arch, stamp-cpu.
990 (stamp-arch, stamp-cpu): New targets.
992 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
994 * configure: Regenerated to track ../common/aclocal.m4 changes.
996 2000-03-30 Dave Brolley <brolley@redhat.com>
998 * configure: Regenerated.
1000 1999-10-04 Doug Evans <devans@casey.cygnus.com>
1002 * arch.c,arch.h,cpuall.h: Rebuild.
1003 * cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Rebuild.
1005 1999-09-29 Doug Evans <devans@casey.cygnus.com>
1007 * mloop.in: Update call to sim_engine_invalid_insn.
1008 * sem.c,sem-switch.c: Rebuild.
1009 * traps.c (sim_engine_invalid_insn): New arg `vpc'. Change type of
1010 result to SEM_PC. Return vpc.
1012 * semx-switch.c: Rebuild.
1014 Wed Sep 29 14:47:20 1999 Dave Brolley <brolley@cygnus.com>
1016 * traps.c (sim_engine_invalid_insn): Return PC.
1018 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1020 * configure: Regenerated to track ../common/aclocal.m4 changes.
1022 1999-09-01 Doug Evans <devans@casey.cygnus.com>
1024 * decodex.c: Rebuild.
1026 1999-08-28 Doug Evans <devans@casey.cygnus.com>
1032 1999-08-09 Doug Evans <devans@casey.cygnus.com>
1034 * cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Rebuild.
1035 * cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Rebuild.
1037 1999-08-04 Doug Evans <devans@casey.cygnus.com>
1039 * m32r-sim.h (SEM_SKIP_INSN): Delete.
1040 * cpu.h,cpuall.h,decode.c,model.c,sem-switch.c,sem.c: Rebuild.
1041 * cpux.h,decodex.c,modelx.c,semx-switch.c: Rebuild.
1042 * mloopx.in (emit_parallel): Call SEM_SKIP_COMPILE.
1043 (emit_full_parallel): Ditto.
1045 1999-05-08 Felix Lee <flee@cygnus.com>
1047 * configure: Regenerated to track ../common/aclocal.m4 changes.
1049 Fri Apr 16 16:47:43 1999 Doug Evans <devans@charmed.cygnus.com>
1051 * devices.c (device_io_read_buffer): New arg `sd'.
1052 (device_io_write_buffer): New arg `sd'.
1053 (device_error): Give proper arg spec.
1055 1999-04-10 Doug Evans <devans@casey.cygnus.com>
1057 * sem-switch.c,sem.c: Rebuild.
1058 * cpux.h,semx-switch.c: Rebuild.
1060 1999-03-27 Doug Evans <devans@casey.cygnus.com>
1062 * decode.c: Rebuild.
1063 * decodex.c: Rebuild.
1065 1999-03-26 Doug Evans <devans@casey.cygnus.com>
1067 * m32r-sim.h (M32R_DEVICE_LEN): Fix off by one error.
1069 1999-03-22 Doug Evans <devans@casey.cygnus.com>
1071 * arch.c,arch.h,model.c: Rebuild.
1072 * modelx.c: Rebuild.
1073 * m32r-sim.h (a_m32r_h_gr_get,a_m32r_h_gr_set): Declare.
1074 (a_m32r_h_cr_get,a_m32r_h_cr_set): Declare.
1075 * m32r.c (m32rbf_fetch_register): Replace calls to a_m32r_h_pc_get,
1076 a_m32r_h_accum_get with appropriate calls to m32rbf_*.
1077 (m32rbf_store_register): Ditto.
1078 (a_m32r_h_gr_get,a_m32r_h_gr_set): New functions.
1079 (a_m32r_h_cr_get,a_m32r_h_cr_set): Ditto.
1080 * sim-if.c (sim_open): Update call to m32r_cgen_cpu_open.
1081 * traps.c (m32r_core_signal): Replace calls to a_m32r_h_*,
1082 with appropriate calls to m32rbf_*.
1084 1999-03-11 Doug Evans <devans@casey.cygnus.com>
1086 * arch.c,arch.h,cpu.c,cpu.h,sem.c,sem-switch.c: Rebuild.
1087 * cpux.c,cpux.h,semx-switch.c: Rebuild.
1088 * m32r-sim.h (GET_H_*,SET_H_*, except GET_H_SM): Delete.
1089 * sim-if.c (sim_open): Update call to m32r_cgen_cpu_open.
1091 1999-02-25 Doug Evans <devans@casey.cygnus.com>
1093 * cpu.c,cpu.h: Rebuild.
1095 1999-02-09 Doug Evans <devans@casey.cygnus.com>
1097 * Makefile.in (SIM_EXTRA_DEPS): Add m32r-desc.h, delete cpu-opc.h.
1098 (stamp-xmloop): s/-parallel/-parallel-write/.
1099 * configure.in (sim_link_files,sim_link_links): Delete.
1100 * configure: Rebuild.
1101 * decode.c,decode.h,model.c,sem-switch.c,sem.c: Rebuild.
1102 * decodex.c,decodex.h,modelx.c,semx-switch.c: Rebuild.
1103 * mloop.in (execute): CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
1104 * sim-if.c (sim_open): m32r_cgen_cpu_open renamed from
1105 m32r_cgen_opcode_open. Set disassembler.
1106 (sim_close): m32r_cgen_cpu_open renamed from m32r_cgen_opcode_open.
1107 * sim-main.h: Don't include cpu-opc.h,cpu-sim.h. Include
1108 m32r-desc.h,m32r-opc.h,m32r-sim.h.
1110 Thu Feb 4 16:04:26 1999 Doug Evans <devans@canuck.cygnus.com>
1112 * cpux.h,decodex.c,modelx.c,semx-switch.c: Regenerate.
1114 1999-01-27 Doug Evans <devans@casey.cygnus.com>
1116 * cpu.h,decode.c,model.c,sem-switch.c,sem.c: Rebuild.
1117 * cpux.h,decodex.c,modelx.c,semx-switch.c: Rebuild.
1119 1999-01-15 Doug Evans <devans@casey.cygnus.com>
1121 * decode.h,model.c: Regenerate.
1122 * decodex.h,modelx.c: Regenerate.
1124 1999-01-14 Doug Evans <devans@casey.cygnus.com>
1126 * arch.c,arch.h,cpuall.h: Regenerate.
1127 * cpu.c,cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Regenerate.
1128 * traps.c (sim_engine_invalid_insn): PCADDR->IADDR.
1129 * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Regenerate.
1131 1999-01-11 Doug Evans <devans@casey.cygnus.com>
1133 * Makefile.in (m32r-clean): rm eng.h.
1134 * sim-main.h: Delete inclusion of ansidecl.h.
1135 * cpu.h: Regenerate.
1136 * cpux.h: Regenerate.
1138 1999-01-06 Doug Evans <devans@casey.cygnus.com>
1140 * cpu.h: Regenerate.
1141 * cpux.h: Regenerate.
1143 1999-01-05 Doug Evans <devans@casey.cygnus.com>
1145 * Makefile.in (MAIN_INCLUDE_DEPS): Delete.
1146 (INCLUDE_DEPS,OPS_INCLUDE_DEPS): Delete.
1147 (sim-if.o): Use SIM_MAIN_DEPS.
1148 (arch.o,traps.o,devices.o): Ditto.
1149 (M32RBF_INCLUDE_DEPS): Use CGEN_MAIN_CPU_DEPS.
1150 (m32r.o,mloop.o,cpu.o,decode.o,sem.o,model.o): Simplify dependencies.
1151 (m32rx.o,mloopx.o,cpux.o,decodex.o,semx.o,modelx.o): Ditto.
1152 * cpu.c,cpu.h,decode.c,model.c,sem-switch.c,sem.c: Regenerate.
1153 * m32r-sim.h (m32rbf_h_cr_[gs]et_handler): Declare.
1154 ([GS]ET_H_CR): Define.
1155 (m32rbf_h_psw_[gs]et_handler): Declare.
1156 ([GS]ET_H_PSW): Define.
1157 (m32rbf_h_accum_[gs]et_handler): Declare.
1158 ([GS]ET_H_ACCUM): Define.
1159 (m32rxf_h_{cr,psw,accum}_[gs]et_handler): Declare.
1160 (m32rxf_h_accums_[gs]et_handler): Declare.
1161 ([GS]ET_H_ACCUMS): Define.
1162 * sim-if.c (sim_open): Model probing code moved to sim-model.c.
1163 * m32r.c (WANT_CPU): Define as m32rbf.
1164 (all register access fns): Rename to ..._handler.
1165 * cpux.c,cpux.h,decodex.c,modelx.c,semx.c: Regenerate.
1166 * m32rx.c (WANT_CPU): Define as m32rxf.
1167 (all register access fns): Rename to ..._handler.
1169 1998-12-14 Doug Evans <devans@casey.cygnus.com>
1171 * configure.in: --enable-cgen-maint support moved to common/aclocal.m4.
1172 (SIM_AC_OPTION_ALIGNMENT): Make strict.
1173 * configure: Regenerate.
1175 * sem-switch.c,sem.c,semx-switch.c: Regenerate.
1176 * sim-main.h (SIM_ENGINE_HALT_HOOK,SIM_ENGINE_RESTART_HOOK): Define.
1177 * traps.c (m32r_core_signal): Handle --environment=operating.
1179 1998-12-09 Doug Evans <devans@casey.cygnus.com>
1181 * cpu.h,decode.c,sem-switch.c,sem.c: Regenerate.
1182 * cpux.h,decodex.c,semx-switch.c: Regenerate.
1184 * sim-if.c: Include string.h or strings.h if present.
1186 1998-12-04 Doug Evans <devans@casey.cygnus.com>
1188 * configure.in: Call SIM_AC_OPTION_INLINE.
1189 * configure: Regenerate.
1190 * sim-main.h: Protect against multiple inclusion.
1191 Don't include cgen-scache.h,cgen-cpu.h,cgen-trace.h,cpuall.h.
1192 Done by cgen-sim.h now.
1193 * tconfig.in (SIM_HAVE_MODEL): Delete, moved to cgen-types.h.
1194 * cpuall.h: Regenerate.
1195 * cpu.h,decode.c,sem-switch.c,sem.c: Regenerate.
1196 * mloop.in (extract16): Make static inline again.
1197 Simplify with call to @cpu@_fill_argbuf,@cpu@_fill_argbuf_tp.
1199 Simplify with call to @cpu@_fill_argbuf,@cpu@_fill_argbuf_tp.
1200 (execute): Test ARGBUF_PROFILE_P before profiling.
1201 Update calls to TRACE_INSN_INIT,TRACE_INSN_FINI.
1202 * cpux.h,decodex.c,modelx.c,semx-switch.c: Regenerate.
1203 * mloopx.in: Rewrite.
1205 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
1207 * devices.c (device_io_write_buffer): Fix typo.
1208 * sim-if.c (sim_open): Hack in call to dv_sockser_install.
1209 * tconfig.in (HAVE_DV_SOCKSER): Add but comment out.
1211 1998-11-18 Doug Evans <devans@casey.cygnus.com>
1213 * Makefile.in (M32R_OBJS): Delete extract.o.
1214 (extract.o): Delete.
1215 * cpu.c,cpu.h,decode.c,decode.h,sem-switch.c,sem.c: Rebuild.
1216 * mloop.in (extract16): Update type of `insn' arg.
1217 Delete call to d->extract.
1219 * cpux.c,cpux.h,decodex.c,decodex.h,semx-switch.c: Rebuild.
1220 * mloopx.in (extractx16): Update type of `insn' arg.
1221 Delete call to d->extract. Delete arg pbb_p. All callers updated.
1222 (extract-simple,full-exec-simple,fast-exec-simple): Delete.
1223 (extractx32): Ditto.
1225 Wed Nov 4 23:55:37 1998 Doug Evans <devans@seba.cygnus.com>
1227 * sim-main.h: Delete inclusion of config.h, include sim-basics.h
1228 before cgen-types.h.
1229 * tconfig.in: Guard against multiple inclusion.
1230 * cpu.h: Delete decls moved to genmloop.sh.
1233 Mon Oct 19 14:13:05 1998 Doug Evans <devans@seba.cygnus.com>
1235 * sim-main.h: #include cpu-opc.h.
1236 * arch.c,arch.h,decode.c,extract.c,model.c,sem.c: Regenerate
1237 to get #include cleanup.
1238 * decodex.c,extractx.c,modelx.c: Ditto.
1240 * Makefile.in (SIM_EXTRA_DEPS): Replace cgen headers with
1242 (M32RBF_INCLUDE_DEPS): Define.
1243 (m32r .o's): Depend on it.
1244 (mloop.c): Update call to genmloop.sh.
1245 * cpu.h,cpuall.h: Regenerate.
1246 * sim-main.h: Delete inclusion of cpu.h,decode.h, moved to cpuall.h.
1247 #include cgen-scache.h,cgen-cpu.h.
1248 * tconfig.in (WITH_FOO semantic macros): Delete.
1249 * Makefile.in (M32RXF_INCLUDE_DEPS): Define.
1250 (m32rx .o's): Depend on it.
1251 (mloopx.c): Update call to genmloop.sh.
1252 * cpux.h: Regenerate.
1254 Fri Oct 16 09:15:29 1998 Doug Evans <devans@charmed.cygnus.com>
1256 * sim-if.c (sim_do_command): Handle "sim info reg {bbpsw,bbpc}".
1258 Fri Oct 9 16:11:58 1998 Doug Evans <devans@seba.cygnus.com>
1260 Add pseudo-basic-block execution support.
1261 * Makefile.in (SIM_OBJS): Add sim-reg.o, cgen-run.o, sim-stop.o.
1262 (SIM_EXTRA_DEPS): Add include/opcode/cgen.h.
1263 (INCLUDE_DEPS): Delete cpu-sim.h, include/opcode/cgen.h.
1264 (mloop.c): Build pseudo-basic-block version. Depend on stamp-cpu.
1265 * arch.c,arch.h,cpuall.h: Regenerate.
1266 * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
1267 * sem-switch.c,sem.c: Regenerate.
1268 * m32r-sim.h (M32R_MISC_PROFILE): New members load_regs,
1270 * m32r.c (m32rbf_fetch_register): Renamed from m32rb_fetch_register.
1271 (m32rbf_store_register,m32rbf_h_cr_get,m32rbf_h_cr_set,
1272 m32rbf_h_psw_get,m32rbf_h_psw_set,m32rbf_h_accum_get,
1273 m32rbf_h_accum_set): Likewise.
1274 (m32r_model_{init,update}_insn_cycles): Delete.
1275 (m32rbf_model_insn_{before,after}): New fns.
1276 (m32r_model_record_cti,m32r_model_record_cycles): Delete.
1277 (m32rb_model_mark_get_h_gr,m32rb_model_mark_set_h_gr): Delete.
1278 (m32rb_model_mark_busy_reg,m32rb_model_mark_unbusy_reg): Delete.
1279 (check_load_stall): New fn.
1280 (m32rbf_model_m32r_d_u_{exec,cmp,mac,cti,load,store}): New fns.
1281 (m32rbf_model_test_u_exec): New fn.
1282 * mloop.in: Rewrite, use pbb support.
1283 * sim-if.c (sim_stop,sim_sync_stop,sim_resume): Delete.
1284 (sim_fetch_register,sim_store_register): Delete.
1285 * sim-main.h (CIA_GET,CIA_SET): Fix.
1286 (SIM_ENGINE_HALT_HOOK,SIM_ENGINE_RESTART_HOOK): Delete.
1287 * tconfig.in (WITH_SCACHE_PBB): Define.
1288 (WITH_SCACHE_PBB_M32RBF): Define.
1289 * traps.c (sim_engine_invalid_insn): Renamed from ..._illegal_....
1290 (m32r_trap): Pass pc to sim_engine_halt.
1291 * configure.in (SIM_AC_OPTION_SCACHE): Change 1024 to 16384.
1292 * configure: Regenerate.
1293 * Makefile.in (M32RX_OBJS): Delete semx.o, add extract.o.
1294 (mloopx.c): Build pseudo-basic-block version.
1297 * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c: Regenerate.
1300 * extractx.c: New file.
1301 * semx-switch.c: New file.
1302 * m32r-sim.h (BRANCH_NEW_PC): Delete.
1303 (SEM_SKIP_INSN): New macro.
1304 * m32rx.c (m32rxf_fetch_register): Renamed from m32rx_fetch_register.
1305 (m32rxf_store_register,m32rxf_h_cr_get,m32rxf_h_cr_set,
1306 m32rxf_h_psw_get,m32rxf_h_psw_set,m32rxf_h_accum_get,
1307 m32rxf_h_accum_set,m32rxf_h_accums_get,m32rxf_h_accums_set): Likewise.
1308 (m32rxf_model_insn_{before,after}): New fns.
1309 (m32rx_model_mark_get_h_gr,m32rx_model_mark_set_h_gr): Delete.
1310 (m32rx_model_mark_busy_reg,m32rx_model_mark_unbusy_reg): Delete.
1311 (check_load_stall): New fn.
1312 (m32rxf_model_m32rx_u_{exec,cmp,mac,cti,load,store}): New fns.
1313 * mloopx.in: Rewrite, use pbb support.
1314 * tconfig.in (WITH_SCACHE_PBB_M32RXF): Define.
1315 (WITH_SEM_SWITCH_FULL): Change from 0 to 1.
1317 Wed Sep 16 18:22:27 1998 Doug Evans <devans@canuck.cygnus.com>
1319 * m32r-sim.h ({PSW,CBR,SPI,SPU,BPC,BBPSW,BBPC}_REGNUM): New macros.
1320 ({ACC1L,ACC1H}_REGNUM): New macros.
1321 (m32r_decode_gdb_ctrl_regnum): Add prototype.
1322 * m32r.c (m32r_decode_gdb_ctrl_regnum): New function.
1323 (m32r_fetch_register,m32r_store_register): Rewrite.
1324 * m32rx.c (m32rx_fetch_register,m32rx_store_register): Rewrite.
1326 Tue Sep 15 15:01:14 1998 Doug Evans <devans@canuck.cygnus.com>
1328 * m32r-sim.h (GET_H_SM): New macro.
1329 (UART params): Update to msa2000.
1330 * devices.c (device_io_read_buffer): Update to msa2000.
1331 * m32r.c (m32rb_h_cr_get,m32rb_h_cr_set): Handle bbpc,bbpsw.
1332 (m32rb_h_psw_get,m32rb_h_psw_set): New functions.
1333 * arch.c,arch.h,cpu.c,cpu.h,sem-switch.c,sem.c: Regenerate.
1334 * m32rx.c (m32rx_h_cr_get,m32rx_h_cr_set): Handle bbpc,bbpsw.
1335 (m32rx_h_psw_get,m32rx_h_psw_set): New functions.
1336 * cpux.c,cpux.h,readx.c,semx.c: Regenerate.
1338 Wed Sep 9 15:29:36 1998 Doug Evans <devans@canuck.cygnus.com>
1340 * m32r-sim.h (m32r_trap): Update prototype.
1341 * traps.c (m32r_trap): New arg `pc'.
1342 * sem.c,sem-switch.c: Regenerated.
1343 * cpux.h,readx.c,semx.c: Regenerated.
1345 Mon Aug 3 12:59:17 1998 Doug Evans <devans@seba.cygnus.com>
1347 Rename cpu m32r to m32rb to distinguish from architecture name.
1348 * Makefile.in (mloop.c): cpu m32r renamed to m32rb.
1349 * sim-main.h (WANT_CPU_M32RB): Renamed from WANT_CPU_M32R.
1350 * tconfig.in (WANT_CPU_M32RB): Ditto.
1351 * m32r.c (WANT_CPU_M32RB): Ditto.
1352 (*): m32r_ cpu fns renamed to m32rb_.
1353 * sim-if.c (sim_stop,sim_sync_stop,sim_resume): Update.
1354 * arch.h,arch.c: Regenerate.
1355 * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
1356 * sem-switch.c,sem.c: Regenerate.
1358 * sim-if.c (sim_open): Don't allocate memory on top of any user
1360 (h_gr_get,h_gr_set): Delete.
1361 * sim-main.h (h_gr_get,h_gr_set): Delete.
1362 * traps.c (m32r_trap): Replace calls to h_gr_[gs]et with
1365 * Makefile.in (INCLUDE_DEPS): Add include/opcode/cgen.h.
1367 * sim-if.c (sim_open): Open opcode table.
1368 (sim_close): Close it.
1370 Tue Jul 28 13:06:19 1998 Doug Evans <devans@canuck.cygnus.com>
1372 Add support for new versions of mulwhi,mulwlo,macwhi,macwlo that
1373 accept an accumulator choice.
1374 * cpux.c,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
1376 Fri Jul 24 13:00:29 1998 Doug Evans <devans@canuck.cygnus.com>
1378 * m32r.c: Include cgen-mem.h.
1379 * traps.c (m32r_trap): Tweak for -Wall.
1380 * m32rx.c: Include cgen-mem.h.
1381 * semx.c: Regenerate, get -Wall cleanups.
1383 Tue Jul 21 16:53:10 1998 Doug Evans <devans@seba.cygnus.com>
1385 * cpu.h,extract.c: Regenerate. pc-rel calcs done on f_dispNN now.
1386 * cpux.h,readx.c,semx.c: Ditto.
1388 Wed Jul 1 16:51:15 1998 Doug Evans <devans@seba.cygnus.com>
1390 * Makefile.in: cgen_maint -> CGEN_MAINT.
1391 * configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
1392 * configure: Regenerate.
1393 * arch.c,arch.h,cpuall.h: Regenerate.
1394 * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
1395 * sem-switch.c,sem.c: Regenerate.
1396 * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
1397 * semx.c: Regenerate.
1398 * mloopx.in (icount): Moved here from genmloop.sh.
1400 Sat Jun 13 07:49:23 1998 Doug Evans <devans@fallis.cygnus.com>
1402 * m32r-sim.h (M32R_MISC_PROFILE): New members insn_cycles, cti_stall,
1403 load_stall,biggest_cycles.
1404 * m32r.c (m32r_model_mark_get_h_gr): Update.
1405 (m32r_model_init_insn_cycles,m32r_model_update_insn_cycles): New fns.
1406 (m32r_model_record_cti,m32r_model_record_cycles): New functions.
1407 * mloop.in: Call cycle init/update fns.
1408 * model.c: Regenerate.
1409 * m32rx.c (m32rx_model_mark_get_h_gr): Update.
1410 * mloopx.in: Call cycle init/update fns.
1411 * modelx.c: Regenerate.
1413 Wed Jun 10 17:39:29 1998 Doug Evans <devans@canuck.cygnus.com>
1415 * traps.c: New file. Trap support moved here from sim-if.c.
1416 * Makefile.in (SIM_OBJS): Add traps.o
1417 * sim-if.c: Don't include targ-vals.h.
1418 (sim_engine_illegal_insn): Moved to traps.c
1419 * sim-main.h (SIM_CORE_SIGNAL): Define.
1420 (m32r_core_signal): Declare.
1421 * m32r-sim.h (m32r_trap): Declare.
1423 * devices.c (device_io_read_buffer): Handle cache purging via MCCR
1426 * m32r-sim.h (M32R_MISC_PROFILE): Move here from sim-main.h.
1427 (PROFILE_COUNT_SHORTINSNS,PROFILE_COUNT_LONGINSNS): New macros.
1428 (TRAP_SYSCALL,TRAP_BREAKPOINT): New macros.
1430 * extract.c,sem-switch.c,sem.c: Regenerate.
1431 * cpux.h,readx.c,semx.c: Regenerate.
1433 Wed May 20 00:10:40 1998 Doug Evans <devans@seba.cygnus.com>
1435 * m32r-sim.h (PROFILE_COUNT_PARINSNS): New macro.
1436 * mloopx.in (extract): Set abuf.addr for proper fill nop counting.
1437 (execute): Count parallel insns.
1438 * sim-if.c (print_m32r_misc_cpu): Print count.
1439 * sim-main.h (M32R_MISC_PROFILE): New member parallel_count.
1441 Zero bottom two bits of pc in jmp,jl insns.
1442 * sem.c,sem-switch.c: Regenerate.
1443 * semx.c: Regenerate.
1445 Tue May 19 16:45:33 1998 Doug Evans <devans@seba.cygnus.com>
1447 * sim-if.c (do_trap): Treat traps 2-15 as hardware does.
1449 Sat May 16 13:04:30 1998 Doug Evans <devans@seba.cygnus.com>
1451 * sim-if.c (sim_stop): Update call to @cpu@_engine_stop.
1452 (sim_sync_stop): New function.
1454 Fri May 15 16:43:27 1998 Doug Evans <devans@seba.cygnus.com>
1456 * Makefile.in (devices.o): Add dependencies.
1458 * arch.h,cpu.c,cpu.h,cpuall.h: Regenerate.
1459 * sem-switch.c,sem.c: Regenerate.
1460 * mloop.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
1461 * cpux.c,cpux.h,modelx.c,semx.c: Regenerate.
1462 * m32rx.c (m32rx_model_mark_{busy,unbusy}_reg): New functions.
1463 * mloopx.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
1464 Fix pc value passed to TRACE_INSN for second parallel insn.
1466 Thu May 7 02:51:35 1998 Doug Evans <devans@seba.cygnus.com>
1468 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
1470 Wed May 6 14:51:39 1998 Doug Evans <devans@seba.cygnus.com>
1472 * arch.h,arch.c,cpu.h,cpuall.h: Regenerate, tweaks mostly.
1473 * model.c: Ditto. Reorganize model/mach data.
1477 * Makefile.in (m32r.o,mloop.o,cpu.o,model.o): Add decode.h dependency.
1478 (m32rx.o,mloopx.o,cpux.o,modelx.o): Add decodex.h dependency.
1479 * decode.c,decode.h: Regenerate, introduces IDESC table.
1480 * mloop.in (extract16,extract32): Add IDESC support.
1481 Update names of semantic handler member names.
1482 (execute): Ditto. Delete call to PROFILE_COUNT_INSN.
1483 * decodex.c,decodex.h: Regenerate, introduces IDESC table.
1484 * mloopx.in: Add IDESC support.
1485 Update names of semantic handler member names.
1486 Delete call to PROFILE_COUNT_INSN.
1488 * sem-switch.c: Regenerate. Redo computed goto label handling.
1489 * sem.c: Regenerate. Call PROFILE_COUNT_INSN.
1490 * readx.c: Regenerate. Redo computed goto label handling.
1491 * semx.c: Regenerate. Call PROFILE_COUNT_INSN. Finish profiling
1494 * m32r.c (m32r_fetch_register): Change result type and args to
1495 conform to sim_fetch_register interface.
1496 (m32r_store_register): Ditto for sim_store_register interface.
1497 * m32rx.c (m32rx_fetch_register): Change result type and args to
1498 conform to sim_fetch_register interface.
1499 (m32rx_store_register): Ditto for sim_store_register interface.
1501 * sim-if.c (alloc_cpu): Delete.
1502 (free_state): Uninstall modules here ...
1503 (sim_open): ... and not here. Call sim_cpu_alloc_all.
1504 Set default architecture/model if not specified.
1505 (sim_fetch_register,sim_store_register): Rewrite.
1507 * sim-if.c (h_pc_get,h_pc_set): Delete. Renamed to sim_pc_[gs]et
1508 and moved to common/sim-cpu.c.
1509 (sim_create_inferior): Update.
1511 * sim-main.h (h_pc_get,h_pc_set): Delete.
1513 * sim-main.h (sim_cia): Change to USI.
1514 (sim_cpu): Move m32r_misc_profile before machine generated part.
1516 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
1518 * configure: Regenerated to track ../common/aclocal.m4 changes.
1520 Tue Apr 28 18:05:53 1998 Nick Clifton <nickc@cygnus.com>
1523 * modelx.c: Rebuilt.
1525 Mon Apr 27 15:36:30 1998 Doug Evans <devans@seba.cygnus.com>
1527 * cpu.h,model.c,sem-switch.c,sem.c: Regenerated. Mostly comment
1528 and variable renaming due to macro insn additions.
1529 * mloop.in: Update to use CGEN_INSN_NUM.
1530 * cpux.h,modelx.c,readx.c,semx.c: Regenerated.
1531 * mloopx.in: Update to use CGEN_INSN_NUM.
1533 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
1535 * configure: Regenerated to track ../common/aclocal.m4 changes.
1538 Sun Apr 26 15:20:05 1998 Tom Tromey <tromey@cygnus.com>
1540 * acconfig.h: New file.
1541 * configure.in: Reverted change of Apr 24; use sinclude again.
1543 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
1545 * configure: Regenerated to track ../common/aclocal.m4 changes.
1548 Fri Apr 24 11:19:26 1998 Tom Tromey <tromey@cygnus.com>
1550 * configure.in: Don't call sinclude.
1552 Mon Apr 20 16:12:35 1998 Doug Evans <devans@canuck.cygnus.com>
1554 * cpu.c,sem.c,sem-switch.c: Regenerate. From
1555 - cgen/m32r.cpu (h-accum): Add attribute FUN-ACCESS.
1556 * m32r.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
1557 #include cgen-ops.h.
1558 * cpux.c,readx.c,semx.c: Regenerate.
1559 * m32rx.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
1560 #include cgen-ops.h. Delete inclusion of several unnecessary headers.
1561 (m32r_h_accums_get): Sign extend top 8 bits.
1563 Tue Apr 14 14:04:07 1998 Doug Evans <devans@canuck.cygnus.com>
1565 * semx.c: Regenerate.
1567 Fri Apr 10 18:22:41 1998 Doug Evans <devans@canuck.cygnus.com>
1569 * cpu.h,decode.c,decode.h,extract.c,sem.c,sem-switch.c: Regenerate.
1570 * cpux.h,decodex.c,decodex.h,readx.c,semx.c: Regenerate.
1572 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
1574 * configure: Regenerated to track ../common/aclocal.m4 changes.
1576 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
1578 * configure: Regenerated to track ../common/aclocal.m4 changes.
1580 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
1582 * configure: Regenerated to track ../common/aclocal.m4 changes.
1584 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
1586 * configure: Regenerated to track ../common/aclocal.m4 changes.
1588 Sat Mar 14 20:53:36 1998 Doug Evans <devans@seba.cygnus.com>
1590 * config.in (HAVE_FCNTL_H): Add.
1591 * configure: Regenerate.
1592 * Makefile.in (SIM_OBJS): Add devices.o.
1593 * m32r-sim.h (m32r_devices): Renamed from m32r_mspr_device.
1594 (UART_*): Define m32r serial port parameters.
1595 (M32R_DEVICE_ADDR,M32R_DEVICE_LEN): Define.
1596 * m32r.c (device_io_{read,write}_buffer,device_error): Move from here,
1597 * devices.c: To here.
1598 * sim-if.c: Don't include signal.h,sim-core.h.
1599 (sim_open): Use M32R_DEVICE_{ADDR,LEN} in sim_core_attach call.
1600 (sim_resume): Call sim_module_{resume,suspend}.
1601 * m32r.c (m32r_h_cr_{get,set}): Use register number enums.
1603 * tconfig.in (SIM_HANDLES_LMA): Define.
1605 * sim-if.c (do_trap): Result is new pc.
1606 Handle --environment=operating.
1607 * sem-switch.c,sem.c: Regenerate.
1608 * semx.c: Regenerate.
1610 Wed Mar 11 14:07:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
1612 * sim-if.c (syscall_read_mem, syscall_write_mem): Replace
1613 sim_core_*_map with read_map, write_map, exec_map resp.
1615 Wed Mar 4 11:36:51 1998 Doug Evans <devans@seba.cygnus.com>
1617 * Makefile.in (SIM_EXTRA_DEPS): Add cpu-opc.h.
1618 (arch.o): Delete cpu-opc.h dependency.
1619 (decode.o,model.o): Likewise.
1620 (decodex.o,modelx.o): Likewise.
1622 * cpu.h,model.c,sem-switch.c,sem.c: Regenerate.
1623 * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
1625 Thu Feb 26 18:38:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
1627 * sim-if.c (sim_open): Initialize PROFILE_INFO_CPU_CALLBACK.
1629 * sim-if.c (sim_info): Delete.
1631 Fri Feb 27 10:14:29 1998 Doug Evans <devans@canuck.cygnus.com>
1633 * mloopx.in: Fix handling of branch in parallel with another insn.
1634 * semx.c: Regenerate.
1636 Mon Feb 23 13:30:46 1998 Doug Evans <devans@seba.cygnus.com>
1638 * sim-main.h: #include symcat.h.
1639 * m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg.
1640 (NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros.
1641 * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
1642 * sem.c,sem-switch.c: Regenerate.
1643 * m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec.
1644 * mloopx.in: Rewrite.
1645 * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
1647 Mon Feb 23 12:27:52 1998 Nick Clifton <nickc@cygnus.com>
1649 * m32r.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
1650 in the backup PC register.
1651 * m32rx.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
1652 in the backup PC register.
1654 Thu Feb 19 16:39:35 1998 Doug Evans <devans@canuck.cygnus.com>
1656 * m32r.c (do_lock,do_unlock): Delete.
1657 * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
1658 * sem.c,sem-switch.c: Regenerate.
1659 * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
1661 Tue Feb 17 18:18:10 1998 Doug Evans <devans@seba.cygnus.com>
1663 * Makefile.in (M32R_OBJS): Add cpu.o.
1664 (cpu.o): Add rule for.
1665 (NL_TARGET): Define.
1666 * configure.in: Add AC_CHECK_PROG(SCHEME).
1668 * cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
1669 * sem-switch.c,sem.c: Regenerate.
1670 * mloop.in (execute): Update call to semantic fn.
1671 (M32RX_OBJS): Add cpux.o.
1672 (cpux.o): Add rule for.
1674 * cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
1675 * m32rx.c (m32rx_h_accums_{get,set}): Rewrite.
1676 (m32rx_h_cr_{get,set}): New functions.
1677 (m32rx_h_accums_{get,set}): New functions.
1678 * mloopx.in: Rewrite main loop.
1680 * m32r.c (do_trap): Move from here.
1681 * sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support.
1682 (sim_create_inferior): Use h_pc_set.
1683 (h_pc_{get,set}): New functions.
1684 (h_gr_{get,set}): New functions.
1685 (syscall_{read,write}_mem): New functions.
1686 * sim-main.h (h_{gr,pc}_{get,set}): Declare.
1688 Tue Feb 17 12:44:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
1690 * sim-if.c (sim_store_register, sim_fetch_register): Pass in
1691 length parameter. Return -1.
1692 (sim_create_inferior): Pass 4 sim_store_register.
1694 Wed Feb 11 19:53:48 1998 Doug Evans <devans@canuck.cygnus.com>
1696 * sim-main.h (CIA_GET,CIA_SET): Provide dummy definitions for now.
1698 * decode.c, decode.h, sem.c, sem-switch.c, model.c: Regenerate.
1699 * cpux.c, decodex.c, decodex.h, readx.c, semx.c, modelx.c: Regenerate.
1701 Mon Feb 9 19:41:54 1998 Doug Evans <devans@canuck.cygnus.com>
1703 * decode.c, sem.c: Regenerate.
1704 * cpux.h, decodex.c, readx.c, semx.c: Regenerate.
1705 * m32rx.c (m32rx_h_accums_set): New function.
1706 (m32rx_model_mark_[gs]et_h_gr): New function.
1707 * mloopx.in: Rewrite.
1708 * Makefile.in (mloopx.o): Build with -parallel.
1709 * sim-main.h (_sim_cpu): Delete member `par_exec'.
1710 * tconfig.in (WITH_SEM_SWITCH_FULL): Define as 0 for m32rx.
1712 Thu Feb 5 12:44:31 1998 Doug Evans <devans@seba.cygnus.com>
1714 * Makefile.in (m32r.o): Depend on cpu.h
1715 (extract.o): Pass -DSCACHE_P.
1716 * mloop.in (extract{16,32}): Update call to m32r_decode.
1717 * arch.h,cpu.h,cpuall.h,decode.[ch]: Regenerate.
1718 * extract.c,model.c,sem-switch.c,sem.c: Regenerate.
1719 * sim-main.h: #include "ansidecl.h".
1720 Don't include cpu-opc.h, done by arch.h.
1721 * Makefile.in (M32RX_OBJS): Build m32rx support now.
1722 (m32rx.o): New rule.
1723 * m32r-sim.h (m32rx_h_cr_[gs]et): Define.
1724 * m32rx.c (m32rx_{fetch,store}_register): Update {get,set} of PC.
1725 (m32rx_h_accums_get): New function.
1726 * mloopx.in: Update call to m32rx_decode. Rewrite exec loop.
1727 * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
1729 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
1731 * configure: Regenerated to track ../common/aclocal.m4 changes.
1733 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
1735 * configure: Regenerated to track ../common/aclocal.m4 changes.
1737 Thu Jan 29 11:22:00 1998 Doug Evans <devans@canuck.cygnus.com>
1739 * Makefile.in (M32RX_OBJS): Comment out until m32rx port working.
1740 * arch.h (HAVE_CPU_M32R{,X}): Delete, moved to m32r-opc.h.
1741 * arch.c (machs): Check ifdef HAVE_CPU_FOO for each entry.
1743 Tue Jan 20 14:16:02 1998 Nick Clifton <nickc@cygnus.com>
1745 * cpux.h: Fix duplicate definition of h_accums field for
1746 fmt_53_sadd structure.
1748 Tue Jan 20 01:42:17 1998 Doug Evans <devans@seba.cygnus.com>
1750 * Makefile.in: Add m32rx objs, and rules to build them.
1751 * cpux.h, decodex.h, decodex.c, readx.c, semx.c, modelx.c: New files.
1752 * m32rx.c, mloopx.in: New files.
1754 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
1756 * configure: Regenerated to track ../common/aclocal.m4 changes.
1758 Mon Jan 19 14:13:40 1998 Doug Evans <devans@seba.cygnus.com>
1760 * arch.c, arch.h, cpuall.h: New files.
1761 * arch-defs.h: Deleted.
1762 * mloop.in: Renamed from mainloop.in.
1763 * Makefile.in: Update.
1764 * sem-ops.h: Deleted.
1765 * mem-ops.h: Deleted.
1766 (arch): Renamed from CPU.
1770 * extract.c: Redone.
1772 * sem-switch.c: Redone.
1773 * sem.c: Renamed from semantics.c, and redone.
1774 * m32r-sim.h (PROFILE_COUNT_FILLNOPS): Update.
1775 (GETTWI,SETTWI,BRANCH_NEW_PC): Define.
1776 * m32r.c (WANT_CPU,WANT_CPU_M32R): Define.
1777 (m32r_{fetch,store}_register): New functions.
1778 (model_mark_{get,set}_h_gr): Prefix with m32r_.
1779 (m32r_model_mark_{busy,unbusy}_reg): Prefix with m32r_.
1780 (h_cr_{get,set}): Prefix with m32r_.
1781 (do_trap): Fetch state from current_cpu, not current_state.
1782 Call sim_engine_halt instead of engine_halt.
1783 * sim-if.c (alloc_cpu): New function.
1784 (free_state): New function.
1785 (sim_open): Call sim_state_alloc, and malloc space for selected cpu
1786 type. Call sim_analyze_program.
1787 (sim_create_inferior): Handle selected cpu type when setting PC.
1788 (sim_resume): Handle m32rx.
1789 (sim_stop_reason): Deleted.
1790 (print_m32r_misc_cpu): Update.
1791 (sim_{fetch,store}_register): Handle m32rx.
1792 (sim_{read,write}): Deleted.
1793 (sim_engine_illegal_insn): New function.
1794 * sim-main.h: Don't include arch-defs.h,sim-core.h,sim-events.h.
1795 Include arch.h,cpuall.h. Include cpu.h,decode.h if m32r.
1796 Include cpux.h,decodex.h if m32rx.
1797 (_sim_cpu): Include member appropriate cpu_data member for the cpu.
1798 (M32R_MISC_PROFILE): Renamed from M32R_PROFILE.
1799 (sim_state): Delete members core,events,halt_jmp_buf.
1800 Change `cpu' member to be a pointer to the cpu's struct, rather than
1801 record inside the state struct.
1802 * tconfig.in (WITH_DEVICES): Define here.
1803 (WITH_FAST,WITH_SEM_SWITCH_{FULL,FAST}): Define for the cpu.
1805 Fri Jan 16 12:16:56 1998 Nick Clifton <nickc@cygnus.com>
1807 * arch-defs.h (INSN_NAME): Fix typo.
1809 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1811 * configure: Regenerated to track ../common/aclocal.m4 changes.
1814 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
1816 * m32r-sim.h (MSPR_ADDR): New macro.
1817 (m32r_mspr_device): Declare.
1818 (struct _device): Define.
1819 * m32r.c (m32r_mspr_device): New global.
1820 (device_{io_{read,write}_buffer,error}): New functions.
1821 * mem-ops.h (SETMEM*): Use sim_core_write_map, not read map.
1822 * sim-if.c: Delete redundant inclusion of cpu-sim.h.
1823 (sim_open): Attach device to handle MSPR register.
1824 * sim-main.h (WITH_DEVICES): Define as 1.
1827 * configure: Regenerated to track ../common/aclocal.m4 changes.
1829 Wed Dec 3 18:08:44 1997 Doug Evans <devans@canuck.cygnus.com>
1831 * configure.in (SIM_AC_OPTION_ENVIRONMENT): Call.
1832 * configure: Regenerated.
1834 Wed Nov 19 12:17:08 1997 Doug Evans <devans@canuck.cygnus.com>
1836 * mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}.
1837 * sim-if.c (sim_open): Call sim_config.
1838 (sim_stop_reason): Update call to sim_signal_to_host.
1840 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
1842 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
1844 Fri Oct 31 18:46:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
1846 * sim-if.c (sim_open): Delete dead call to sim_core_attach.
1848 Mon Oct 27 12:43:54 1997 Doug Evans <devans@canuck.cygnus.com>
1850 * sem-ops.h (U{DIV,MOD}[BHSD]I): Use unsigned division.
1852 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1854 * configure: Regenerated to track ../common/aclocal.m4 changes.
1856 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1858 * configure: Regenerated to track ../common/aclocal.m4 changes.
1860 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1862 * configure: Regenerated to track ../common/aclocal.m4 changes.
1864 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
1866 * Makefile.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_SCACHE,
1867 SIM_DEFAULT_MODEL): Delete, moved to common.
1868 (SIM_EXTRA_CFLAGS): Update.
1870 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1872 * configure.in (sim_link_links): Configure non-strict memory
1875 * configure: Regenerated to track ../common/aclocal.m4 changes.
1877 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1879 * configure: Regenerated to track ../common/aclocal.m4 changes.
1881 Wed Sep 17 17:44:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
1883 * sim-if.c (sim_open): Allocate memory under sim-memopt module
1884 using sim_do_commandf.
1885 (sim_open): Set magic-number at the start.
1886 (sim_do_command): Implement.
1888 * sim-main.h (sim_engine_halt): Map onto engine_halt.
1890 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1892 * configure: Regenerated to track ../common/aclocal.m4 changes.
1894 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1896 * configure: Regenerated to track ../common/aclocal.m4 changes.
1898 Fri Sep 5 10:21:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1900 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
1902 Thu Sep 4 10:30:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
1904 * sim-if.c (sim_open): Pass zero modulo arg to sim_core_attach.
1906 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1908 * configure: Regenerated to track ../common/aclocal.m4 changes.
1911 Tue Aug 26 10:39:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
1913 * sim-if.c (sim_kill): Delete.
1914 (sim_create_inferior): Add ABFD argument.
1915 (sim_load): Move setting of PC from here.
1916 (sim_create_inferior): To here.
1917 (sim_load): Delete, use sim-hload.c instead.
1919 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
1921 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1923 * configure: Regenerated to track ../common/aclocal.m4 changes.
1926 Mon Aug 25 15:54:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
1928 * sim-if.c (sim_open): Add ABFD argument.
1930 Tue Jul 22 10:16:16 1997 Doug Evans <dje@canuck.cygnus.com>
1932 * sim-main.h (M32R_DEFAULT_MEM_SIZE): New macro.
1933 * sim-if.c (sim_open): Use it.
1935 Wed Jun 4 12:48:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
1937 * sim-main.h (WITH_ENGINE): Disable the common engine for now.
1939 Tue May 27 14:15:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
1941 * sim-if.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
1942 (sim_write): Ditto for write.
1944 * m32r.c (do_trap): Ditto for read/write.
1946 Tue May 20 10:18:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1948 * sim-if.c (sim_open): Add callback argument.
1949 (sim_set_callbacks, sim_callback): Delete.
1950 (sim_load): Set STATE_LOADED_P.
1952 Mon May 19 12:55:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
1954 * Makefile.in (SIM_OBJS): Link in sim-abort.o as a stub for
1957 Mon May 5 12:45:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1959 * sim-if.c (sim_open): Update to reflect changes to core in
1961 * mem-ops.h (GETMEMQI, GETMEMHI, GETMEMSI, GETMEMDI, GETMEMUQI,
1962 GETMEMUHI, GETMEMUSI, GETMEMUDI, SETMEMQI, SETMEMHI, SETMEMSI,
1963 SETMEMDI, SETMEMUQI, SETMEMUHI, SETMEMUSI, SETMEMUDI): Ditto.
1965 Sat May 3 08:38:55 1997 Doug Evans <dje@seba.cygnus.com>
1967 * decode.c (decode): Add computed goto support.
1969 Fri May 2 16:30:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
1971 * mem-ops.h: Stub additional core read/write arguments.
1973 * sim-main.h: Declare sim_cia - type SI.
1974 (struct _sim_cpu): Move base type to end per common.
1975 (struct _sim_state): Ditto.
1977 Thu May 1 11:15:34 1997 Doug Evans <dje@canuck.cygnus.com>
1979 Merge from branch into devo. CGEN generic files moved to common
1980 directory. K&R C support is no longer provided.
1982 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1984 * configure: Regenerated to track ../common/aclocal.m4 changes.
1986 Sat Apr 12 12:57:33 1997 Felix Lee <flee@yin.cygnus.com>
1988 * Makefile.in, seman-cache.c: new file, for wingdb build.
1989 * sim-alloca.h: fixed for wingdb.
1991 Mon Apr 7 13:33:29 1997 Doug Evans <dje@seba.cygnus.com>
1993 * decode.c (*): m32r_cgen_insn_table renamed to ..._entries.
1994 * mainloop.in: Use CGEN_INSN_INDEX instead of CGEN_INSN_TYPE.
1995 * simdefs.h (INSN_NAME): m32r_cgen_insn_table renamed to ..._entries.
1997 Fri Apr 4 19:23:12 1997 Doug Evans <dje@canuck.cygnus.com>
1999 * cgen-utils.in (ex_illegal): Fill in abuf->length, abuf->addr.
2000 (exc_illegal): Likewise.
2001 * decode.c (decode_vars): Add decode_illegal.
2002 * genmloop.sh: #include "cpu-opc.h".
2003 * sem-switch.c (case_INSN_ILLEGAL): Declare.
2004 (labels): Add case_INSN_ILLEGAL.
2005 (SWITCH): Add INSN_ILLEGAL case.
2007 Wed Mar 26 12:34:00 1997 Doug Evans <dje@canuck.cygnus.com>
2009 * model.c (model_module): Use 0 not NULL.
2011 * genmloop.sh (sim_main_loop): Handle k&r c.
2013 * sem-switch.c: Regenerate to get k&r c support.
2014 * semantics.c: Likewise.
2016 * m32r.c (ADD_{OV,CA}_SI,SUB_{OV,CA}_SI): Renamed to {ADD,SUB}[OC]FSI.
2017 (ADDCSI,SUBCSI): New functions.
2018 * sem-switch.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
2019 * semantics.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
2021 * simcache.c (simcache_{install,init,uninstall}): Use
2022 DECLARE_MODULE_INSTALL_HANDLER.
2023 (simcache_option_handler): Use DECLARE_OPTION_HANDLER.
2025 * utils.c: #include "semops.h".
2027 Tue Mar 11 14:30:26 1997 Doug Evans <dje@seba.cygnus.com>
2029 * profile.c (profile_print_simcache): Fix thinko in printf text.
2031 * simdefs.h (struct argbuf): Add member to fmt_20 so it's not empty.
2033 Mon Mar 10 11:06:29 1997 Doug Evans <dje@seba.cygnus.com>
2035 * m32r.c (h_cr_get): Rewrite.
2036 (h_cr_set): Rewrite.
2037 * sem-switch.c (rte): bcarry renamed to bcond.
2038 * semantics.c (rte): Likewise.
2039 * simdefs.h (CPU_STATE): Likewise.
2041 * config.in (HAVE_SYS_TIME_H): Add.
2042 * configure.in: Check for sys/time.h.
2043 * configure: Regenerated.
2044 * utils.c: Include sys/time.h if present.
2046 * common.c (sim_parse_args): Account for NULL terminating entry
2047 in long_options table.
2049 * genmloop.sh (RUN_FAST_P): Don't run fast if tracing.
2050 Always use cache if configured in.
2051 * mainloop.in (do_extract_insn{16,32}): New functions.
2052 (normal,fast): Call them. Handle starting in left slot.
2053 * simcache.c (simcache_option_handler): Disallow -c0.
2054 * sem-switch.c (TRACE_RESULT): Redefine so no tracing.
2056 * profile.c (profile_print_simcache): Fix percentage calc.
2058 * Makefile.in (INCLUDE_DEPS): Delete simcommon.h.
2060 Sun Mar 9 20:42:17 1997 Doug Evans <dje@seba.cygnus.com>
2062 * Makefile.in (COMMON_{PRE,POST}_CONFIG_FRAG): Add delimiters for.
2063 (M32R_INCLUDE_DEPS): Use cpu-sim.h instead of m32r-sim.h.
2065 (mrun.o): Don't depend on M32R_INCLUDE_DEPS.
2066 (sim-if.o,m32r.o,utils.o): Likewise.
2067 (common.o): Don't explicitly depend on mod-list.h.
2068 (mainloop.c): Pass CPU to genmloop.sh.
2069 (stamp-modules): Depend on configure.
2070 (decode.o): Depend on decode,h, memops.h, semops.h, cpu-opc.h.
2071 (extract.o): Depend on decode.h, memops.h, semops.h.
2072 (semantics.o,seman-cache.o): Likewise.
2073 (model.o,ops.o): Depend on memops.h.
2074 (extr-cache.o): Disable building for the moment.
2076 * simcommon.h: Delete, move contents into cgen-sim.h.
2077 * cgen-sim.h: Don't include ansidecl.h,bfd.h,simfns.h.
2078 (UINT,CGEN_CAT3): Define.
2079 ({extract,semantic}_fn_t): Renamed to {EXTRACT,SEMANTIC}_FN.
2080 (decode_t): Renamed to DECODE.
2082 * simfns.h: Delete, contents moved to memops.h,semops.h.
2083 * memops.h: New file.
2084 * semops.h: New file.
2085 * decode.h: Renamed from semantics.h.
2087 * sim-argv.h: New file.
2088 * Makefile.in (memory.o,trace.o,profile.o,simcache.o,common): Add
2089 dependency of sim-argv.h.
2091 * sim-alloca.h: New file.
2092 * common.c: Include it.
2093 * Makefile.in (common.o): Add dependency.
2095 * config.in (HAVE_TIME_H,HAVE_SYS_RESOURCE_H): Add.
2096 (HAVE_GETRUSAGE,HAVE_TIME): Add.
2097 * configure.in: sinclude ../common/aclocal.m4.
2098 Check for headers time.h, sys/resource.h.
2099 Check for functions time, getrusage.
2100 (sim_link_{files,links}): Add link cpu-opc.h.
2101 (sim_profile): Add simcache.
2102 (SIM_AC_PROFILE): Add simcache, profile.o.
2103 (simcache module): Delete extr-cache.o for now.
2104 (--enable-sim-cache): Allow specification of default cache size.
2105 * configure: Regenerated.
2107 * decode.c: #include cgen-sim.h,memops.h,semops.h,decode.h,
2108 cpu-sim.h,cpu-opc.h. Don't include m32r-sim.h.
2111 * extract.c: #include cgen-sim.h,decode.h,cpu-sim.h.
2112 Don't include m32r-sim.h.
2113 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
2114 Simplify profiling test with PROFILE_MODEL_P.
2115 (mvfc,mvtc): Fix access of control registers.
2116 * semantic.c: #include cgen-sim.h,memops.h,semops.h,decode.h,cpu-sim.h.
2117 Don't include m32r-sim.h.
2118 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
2119 Simplify profiling test with PROFILE_MODEL_P.
2120 (mvfc,mvtc): Fix access of control registers.
2122 * sem-switch.c: New file, for GCC computed goto support.
2124 * genmloop.sh: Add #include's of bfd.h,callback.h,cgen-sim.h,
2125 memops.h,semops.h,trace.h,cpu-sim.h.
2126 (RUN_FAST_P): Change default to run fast if cache size > 0
2128 (sim_main_loop): Record execution time.
2129 Record instruction count even in fast mode.
2130 (init): Allow cpu to provide init code in mainloop.in.
2131 (FAST): Define as 0 or 1 depending on fast mode.
2132 * mainloop.in (normal): Combine with fast case.
2133 Add support for GCC computed gotos. Count simcache hits/misses.
2134 (init): Initialize "switch" labels if GNUC.
2136 * cgen-utils.in: Don't include opcode/cgen.h.
2137 Include cgen-sim.h, cpu-opc.h.
2138 * common.c: Don't include simcommon.h,mod-list.h. Include cgen-sim.h.
2139 * m32r-sim.h: Don't include mod-list.h
2140 (RUN_FAST_P): Delete.
2141 * m32r.c: Don't include profile.h. #include ansidecl.h,cgen-sim.h,
2142 semops.h,memory.h,trace.h
2143 (h_cr_get,h_cr_set): New functions.
2144 * memory.c: #include cgen-sim.h,callback.h.
2145 * ops.c: Don't include profile.h,m32r-sim.h.
2146 Include cgen-sim.h,memops.h,cpu-sim.h.
2147 (MEMOPS_DEFINE_INLINE): Renamed from SIMFNS_DEFINE_INLINE.
2148 * trace.c: Include cgen-sim.h,cpu-opc.h.
2149 * trace.h (trace_insn_{init,fini}): Declare.
2151 * model.c: Don't include signal.h,stdlib.h,m32r-sim.h.
2152 Include cgen-sim.h,cpu-sim.h,cpu-opc.h.
2153 Regenerate to get new insn aliases.
2155 * mrun.c: #include "ansidecl.h".
2156 (STATE): Use struct sim_state instead.
2158 * profile.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
2159 Don't include simcommon.h. Include cgen-sim.h,cpu-opc.h.
2160 (PROFILE_{READ,WRITE}_MASK): Replace with PROFILE_MEMORY_MASK.
2161 (profile_print_simcache): New function.
2162 (profile_print): Call it. Print simulator speed stats.
2163 * profile.h (PROFILE_{READ,WRITE}_MASK): Replace with
2164 PROFILE_MEMORY_MASK.
2165 (MODULE_PROFILE_SIMCACHE_P): Define.
2166 (PROFILE_SIMCACHE_MASK): Define.
2167 (PROFILE_COUNT): New members total_insn_count,exec_time.
2168 New members simcache_hits,simcache_misses.
2169 (PROFILE_SIMCACHE_{HITS,MISSES}): Define.
2170 (PROFILE_MODEL_P): New macro.
2171 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): New macros.
2173 * sim-if.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
2174 Don't include simcommon.h,m32r-sim.h. Include cgen-sim.h,cpu-sim.h.
2175 (sim_resume): Use USING_SIMCACHE_P instead of RUN_FAST_P.
2176 (sim_info): Pass verbose to profile_print.
2178 * simcache.c: Include cgen-sim.h,callback.h.
2179 (USING_SIMCACHE_P): Replace with SIMCACHE_P.
2180 (simcache_option_handler): Ensure cache size at least 2.
2181 Allow config time specification of default cache size.
2182 * simcache.h (struct simcache): Support GCC computed gotos.
2183 (SIMCACHE_DEFAULT_CACHE_SIZE): USe CONFIG_SIM_CACHE_SIZE if defined.
2184 (USING_SIMCACHE_P): New macro.
2186 * simdefs.h: Don't include m32r-opc.h.
2187 (CGEN_MAX_SIM_INSNS): Define.
2188 (CPU_STATE): Regenerate.
2189 (ARGBUF): Regenerate.
2190 (extract,semantic handler decls): Delete, moved to decode.h.
2192 * tconfig.in: Don't include cgen-sim.h,m32r-sim.h.
2193 (USE_SEM_SWITCH): Define.
2195 * utils.c: Include bfd.h,time.h,sys/resource.h.
2196 (sim_time_get,sim_time_elapsed): New functions.
2197 * cgen-sim.h (SIM_TIME,sim_time_get,sim_time_elapsed): Declare.
2199 Fri Jan 31 20:25:06 1997 Doug Evans <dje@canuck.cygnus.com>
2201 * configure.in (AC_CHECK_HEADERS): Handle i386-windows.
2202 * configure: Regenerated.
2203 * model.c: #include <stdlib.h>.
2204 * simcache.c: #include "libiberty.h".
2205 * simcommon.h (alloca): Handle i386-windows.
2207 * common.c: #include libiberty.h.
2208 (sim_signal_to_host): Return 5 if wingdb.
2210 Mon Jan 27 15:22:49 1997 Doug Evans <dje@seba.cygnus.com>
2212 * configure.in (sim_cache): Enabled by default now, pass default
2213 cache size to --enable-sim-cache.
2214 * simcache.c (simcache_option_handler): Allow -c 0.
2216 * simdefs.h,simfns.h: Regenerate
2217 * decode.c,extract.c,model.c,ops.c,semantics.c: Regenerate.
2219 Tue Jan 21 16:21:01 1997 Doug Evans <dje@seba.cygnus.com>
2221 Add model profiling support.
2222 * configure.in: Handle --enable-sim-model.
2223 (sim_profile): Add model.
2224 * Makefile.in (model.o): Add rule.
2225 * cgen-sim.h (UNIT,INSN_TIMING,MACH,MODEL): New types.
2226 * extract.c (*): Add model profiling support.
2227 * m32r.c (model_mark_{get,set}_h_gr): New functions.
2228 (model_mark_{busy,unbusy}_reg): New functions.
2229 * profile.c (profile_option_handler): Recognize --profile model.
2230 (profile_print_model): New function.
2231 (profile_print): Call it.
2232 * profile.h (MODULE_profile_model,MODULE_PROFILE_MODEL_P): Define.
2233 (PROFILE_MODEL_MASK,PROFILE_LABEL_WIDTH): Define.
2234 (PROFILE_COUNT): New members cycle_count,cti_stall_count,
2235 load_stall_count,taken_count,untaken_count.
2236 * semantics.c (*): Add model profiling support.
2237 * simcommon.h (struct sim_state): New members mach,model.
2238 * simdefs.h (CPU_PROFILE,MODEL_TYPE,UNIT_TYPE): New type.
2239 (MAX_MODELS,MAX_UNITS): Define.
2240 * tconfig.in (STATE_EXTRA_MEMBERS): Add cpu_profile.
2242 * Makefile.in (INCLUDE_DEPS): Add $(SIM_MODULES_HDRS).
2243 (stamp-modules): Depend on genmodlist.sh.
2244 * common.c (standard_options): Add --max-insns.
2245 (copy_argv): New function.
2246 * tconfig.in (SIM_HAVE_MAX_INSNS): Define.
2247 * genmloop.sh: Allow mainloop.in to contain support code.
2248 * mainloop.in: Move do_insn16,do_insn32 here.
2249 * m32r.c (do_trap): Handle SYS_argvlen,SYS_argv,SYS_read.
2250 * sim-if.c (sim_open): Don't set max insn count.
2251 (sim_create_inferior): Save argv,envp.
2252 * simcommon.h (struct sim_state): New members argv,envp.
2253 * simdefs.h ([GS]ETTWI,[GS]ETTUWI,[GS]ETTAI): Define.
2254 ([GS]ETMEMWI,[GS]ETMEMUWI,[GS]ETMEMAI): Define.
2255 (ARGBUF): New members h_gr_get, h_gr_set.
2256 * trace.c (trace_insn_init,trace_insn_fini): New functions.
2257 (trace_printf): Print to buffer, output later by trace_insn_fini.
2258 * trace.h (TRACE_INSN_{INIT,FINI}): Define.
2260 Thu Dec 19 16:01:59 1996 Doug Evans <dje@canuck.cygnus.com>
2262 * configure.in (AC_FUNC_ALLOCA): Call.
2263 * configure: Regenerate.
2264 * config.h (HAVE_ALLOCA_H): Add.
2265 * simcommon.h: Add alloca support.
2266 (DECLARE_MODULE_INSTALL_HANDLER): Define.
2267 (DECLARE_OPTION_HANDLER): Define.
2268 (MEM_FN): Declare using PARAMS.
2269 (DECLARE_MEM_FN): Define.
2270 * trace.c (trace_result): Tweak for !STDC.
2271 * cgen-sim.h (UDI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
2272 * cgen-utils.in (disasm_sprintf): Fix va_arg call in !STDC case.
2273 * common.c (sim_print_help_fn): Use PARAMS.
2274 (standard_option_handler): Fix decl for !STDC systems.
2275 * memory.c: #include <stdio.h>
2276 (mem_flat_{install,init,uninstall}): Fix decl for !STDC systems.
2277 (mem_flat_{read,write},mem_flat_option_handler): Likewise.
2278 * profile.c (profile_install): Likewise.
2279 (profile_option_handler): Likewise.
2281 Thu Dec 19 11:06:19 1996 Doug Evans <dje@seba.cygnus.com>
2283 * semantics.c (*): Don't suffix big unsigned numbers with "U".
2284 Prefix them with 0x instead.
2286 * cgen-sim.h (DI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
2287 (SLADI,SRADI,CONVSIDI,CONVDISI): Delete, moved to simfns.h.
2288 * semantics.c (machi,maclo,macwhi,macwlo,mulhi,mullo): Implement.
2289 (mulwhi,mulwlo,mvtachi,mvtaclo,rac,rach): Implement.
2290 * simfns.h: Add decls for functional DI,UDI,SF,DF,XF,TF support.
2291 Add support for boolean and/or.
2292 * utils.c: Redo naming of DI functional support.
2293 (ANDDI,ORDI,ADDDI,MULDI,GEDI,LEDI,CONVHIDI): New functions.
2295 Tue Dec 17 12:57:48 1996 Doug Evans <dje@seba.cygnus.com>
2297 * Directory created.