1 2016-01-03 Mike Frysinger <vapier@gentoo.org>
5 2016-01-03 Mike Frysinger <vapier@gentoo.org>
7 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
8 * configure: Regenerate.
9 * traps-linux.c (conv_endian): Change CURRENT_HOST_BYTE_ORDER
11 (conv_endian16): Likewise.
13 2016-01-02 Mike Frysinger <vapier@gentoo.org>
15 * arch.h (TARGET_BIG_ENDIAN): Delete.
16 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
17 * configure: Regenerate.
18 * traps-linux.c (conv_endian): Change LITTLE_ENDIAN to
20 (conv_endian16): Likewise.
22 2016-01-02 Mike Frysinger <vapier@gentoo.org>
24 * sim-if.c (sim_open): Delete #if 0 sim_add_option_table call.
26 2016-01-02 Mike Frysinger <vapier@gentoo.org>
28 * sim-if.c (current_state): Delete.
29 (sim_open): Delete current_state assignment.
31 2015-12-27 Mike Frysinger <vapier@gentoo.org>
33 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
35 2015-12-26 Mike Frysinger <vapier@gentoo.org>
37 * config.in, configure: Regenerate.
39 2015-12-26 Mike Frysinger <vapier@gentoo.org>
41 * sim-if.c (sim_create_inferior): Replace old #if 0 code with dupargv.
43 2015-12-25 Mike Frysinger <vapier@gentoo.org>
45 * configure.ac (SIM_AC_OPTION_HARDWARE): Add m32r_cache & m32r_uart.
46 * configure: Regenerate.
47 * devices.c: Delete file.
48 * dv-m32r_cache.c, dv-m32r_cache.h: New cache model with logic from
50 * dv-m32r_uart.c, dv-m32r_uart.h: New uart model with logic from
52 * m32r-sim.h: Move cache defines to dv-m32r_cache.h and uart defines
54 * Makefile.in (SIM_OBJS): Delete devices.o.
55 * sim-if.c: Include dv-m32r_uart.h.
56 (sim_open): Replace sim_core_attach call with sim_hw_parse calls.
57 * tconfig.h: Delete file.
59 2015-12-25 Mike Frysinger <vapier@gentoo.org>
61 * Makefile.in (SIM_OBJS): Delete sim-model.o.
63 2015-12-25 Mike Frysinger <vapier@gentoo.org>
65 * arch.c: Rename MACH to SIM_MACH.
67 * model.c: Rename MACH to SIM_MACH, MACH_IMP_PROPERTIES to
68 SIM_MACH_IMP_PROPERTIES, and MODEL to SIM_MODEL.
69 * model2.c, modelx.c: Likewise.
71 2015-12-25 Mike Frysinger <vapier@gentoo.org>
73 * sim-main.h (WITH_SCACHE_PBB): Move from ...
74 * tconfig.h (WITH_SCACHE_PBB): ... here.
76 2015-12-25 Mike Frysinger <vapier@gentoo.org>
78 * devices.c (device_error): Delete.
80 2015-12-24 Mike Frysinger <vapier@gentoo.org>
82 * tconfig.h (SIM_HANDLES_LMA): Delete.
84 2015-12-24 Mike Frysinger <vapier@gentoo.org>
86 * tconfig.h (SIM_HAVE_BREAKPOINTS, SIM_BREAKPOINT,
87 SIM_BREAKPOINT_SIZE): Delete.
88 * traps-linux.c [SIM_HAVE_BREAKPOINTS] (m32r_trap): Delete sim
90 * traps.c [SIM_HAVE_BREAKPOINTS] (m32r_trap): Likewise.
92 2015-12-24 Mike Frysinger <vapier@gentoo.org>
94 * tconfig.h (WITH_WATCHPOINTS): Delete.
96 2015-12-24 Mike Frysinger <vapier@gentoo.org>
98 * tconfig.h (SIM_HAVE_MEM_SIZE): Delete.
100 2015-11-15 Mike Frysinger <vapier@gentoo.org>
102 * Makefile.in (SIM_OBJS): Delete sim-reason.o, sim-reg.o, and
105 2015-11-14 Mike Frysinger <vapier@gentoo.org>
107 * sim-if.c (sim_close): Delete.
109 2015-06-23 Mike Frysinger <vapier@gentoo.org>
111 * configure: Regenerate.
113 2015-06-17 Mike Frysinger <vapier@gentoo.org>
115 * traps.c (m32r_trap): Replace call to cb_syscall with
117 * traps-linux.c (m32r_trap): Likewise.
119 2015-06-17 Mike Frysinger <vapier@gentoo.org>
121 * traps-linux.c: Include sim-syscall.h.
122 (syscall_read_mem, syscall_write_mem): Delete.
123 (m32r_trap): Change syscall_read_mem/syscall_write_mem
124 to sim_syscall_read_mem/sim_syscall_write_mem.
125 * traps.c: Include sim-syscall.h.
126 (syscall_read_mem, syscall_write_mem): Delete.
127 (m32r_trap): Change syscall_read_mem/syscall_write_mem
128 to sim_syscall_read_mem/sim_syscall_write_mem.
130 2015-06-12 Mike Frysinger <vapier@gentoo.org>
132 * configure: Regenerate.
134 2015-06-12 Mike Frysinger <vapier@gentoo.org>
136 * configure: Regenerate.
138 2015-06-12 Mike Frysinger <vapier@gentoo.org>
140 * decode.c (m32rbf_decode): Change TRACE_EXTRACT to CGEN_TRACE_EXTRACT.
141 * decode2.c (m32r2f_decode): Likewise.
142 * decodex.c (m32rxf_decode): Likewise.
143 * mloop.in (execute): Change TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT,
144 TRACE_INSN to CGEN_TRACE_INSN, and TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
145 * sem.c: Rename TRACE_RESULT to CGEN_TRACE_RESULT.
146 * sem-switch.c: Likewise.
147 * sem-switch2.c: Likewise.
148 * sem-switchx.c: Likewise.
150 2015-04-18 Mike Frysinger <vapier@gentoo.org>
152 * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESTART_HOOK): Delete.
154 2015-04-18 Mike Frysinger <vapier@gentoo.org>
156 * sim-main.h (USING_SIM_BASE_H): Delete.
158 2015-04-18 Mike Frysinger <vapier@gentoo.org>
160 * sim-main.h (_sim_cpu, SIM_CPU): Delete.
162 2015-04-18 Mike Frysinger <vapier@gentoo.org>
164 * sim-main.h (sim_cia): Delete.
166 2015-04-17 Mike Frysinger <vapier@gentoo.org>
168 * sim-main.h (CIA_GET, CIA_SET): Delete.
170 2015-04-15 Mike Frysinger <vapier@gentoo.org>
172 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
173 * sim-main.h (STATE_CPU): Delete.
175 2015-04-15 Mike Frysinger <vapier@gentoo.org>
177 * sim-main.h (struct sim_state): Change cpu to an array of pointers.
178 (STATE_CPU): Handle WITH_SMP.
180 2015-04-13 Mike Frysinger <vapier@gentoo.org>
182 * configure: Regenerate.
184 2015-04-06 Mike Frysinger <vapier@gentoo.org>
186 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
188 2015-03-31 Mike Frysinger <vapier@gentoo.org>
190 * config.in, configure: Regenerate.
192 2015-03-24 Mike Frysinger <vapier@gentoo.org>
194 * sim-if.c (sim_open): Delete dv_sockser_install call.
196 2015-03-24 Mike Frysinger <vapier@gentoo.org>
198 * configure: Regenerate.
200 2015-03-24 Mike Frysinger <vapier@gentoo.org>
202 * configure: Regenerate.
204 2015-03-23 Mike Frysinger <vapier@gentoo.org>
206 * configure: Regenerate.
208 2015-03-23 Mike Frysinger <vapier@gentoo.org>
210 * configure: Regenerate.
212 2015-03-16 Mike Frysinger <vapier@gentoo.org>
214 * aclocal.m4, config.in, configure: Regenerate.
215 * tconfig.in: Rename file ...
216 * tconfig.h: ... here.
218 2015-03-15 Mike Frysinger <vapier@gentoo.org>
220 * tconfig.in [HAVE_DV_SOCKSER]: Delete.
222 2015-03-14 Mike Frysinger <vapier@gentoo.org>
224 * Makefile.in (SIM_RUN_OBJS): Delete.
226 2014-08-23 Hans-Peter Nilsson <hp@axis.com>
228 * configure.ac: Default simulator hardware to off again. Remove
229 dead m32r_extra_objs substitution.
230 * configure: Regenerate.
231 * Makefile.in: Remove unused m32r_extra_objs.
233 2014-08-19 Alan Modra <amodra@gmail.com>
235 * configure: Regenerate.
237 2014-08-15 Roland McGrath <mcgrathr@google.com>
239 * configure: Regenerate.
240 * config.in: Regenerate.
242 2013-09-23 Alan Modra <amodra@gmail.com>
244 * configure: Regenerate.
246 2013-06-03 Mike Frysinger <vapier@gentoo.org>
248 * aclocal.m4, configure: Regenerate.
250 2013-03-30 Joel Sherrill <joel.sherrill@oarcorp.com>
251 Mike Frysinger <vapier@gentoo.org>
253 * configure.ac: Add m32r_extra_objs. Change simulator hardware
254 from always on to defaulting to yes it is enabled.
255 * Makefile.in: Conditionalize reference to dv-sockser.o.
256 * tconfig.in: Delete HAVE_DV_SOCKSER logic that was under "#if 0".
257 * configure: Regenerated.
259 2013-03-26 Mike Frysinger <vapier@gentoo.org>
261 * configure: Regenerate.
263 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
265 * configure.ac: Fail if dv-sockser.o not available.
266 Error when --disable-sim-hardware is specified.
267 * configure: Regenerated.
269 2012-06-15 Joel Brobecker <brobecker@adacore.com>
271 * config.in, configure: Regenerate.
273 2012-03-25 Mike Frysinger <vapier@gentoo.org>
275 * traps-linux.c (sim_core_trans_addr): Delete prototype.
277 2012-03-24 Mike Frysinger <vapier@gentoo.org>
279 * aclocal.m4, config.in, configure: Regenerate.
281 2011-12-03 Mike Frysinger <vapier@gentoo.org>
283 * aclocal.m4: New file.
284 * configure: Regenerate.
286 2011-10-17 Mike Frysinger <vapier@gentoo.org>
288 * configure.ac: Change include to common/acinclude.m4.
290 2011-10-17 Mike Frysinger <vapier@gentoo.org>
292 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
293 call. Replace common.m4 include with SIM_AC_COMMON.
294 * configure: Regenerate.
296 2011-07-05 Mike Frysinger <vapier@gentoo.org>
298 * sim-if.c (sim_do_command): Delete.
300 2010-03-30 Mike Frysinger <vapier@gentoo.org>
302 * devices.c (device_error): Add const to message.
304 2010-02-11 Doug Evans <dje@sebabeach.org>
306 * cpu.h, * cpu2.h, * cpux.h, * decode.c, * decode2.c, * decodex.c,
307 * model.c, * model2.c, * modelx.c,
308 * sem-switch.c, * sem.c, * sem2-switch.c, * semx-switch.c: Regenerate.
310 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
312 * configure: Regenerate.
314 2010-01-02 Doug Evans <dje@sebabeach.org>
316 * arch.c, * arch.h, * cpu.c, * cpu.h, * cpu2.c, * cpu2.h, * cpuall.h,
317 * cpux.c, * cpux.h, * decode.c, * decode.h, * decode2.c, * decode2.h,
318 * decodex.c, * decodex.h, * model.c, * model2.c, * modelx.c,
319 * sem-switch.c, * sem.c, * sem2-switch.c, * semx-switch.c: Regenerate,
320 update copyright year.
322 2009-11-22 Doug Evans <dje@sebabeach.org>
325 * cpu2.h: Regenerate.
326 * cpux.h: Regenerate.
327 * cpuall.h: Regenerate.
328 * decode.c: Regenerate.
329 * decode.h: Regenerate.
330 * decode2.c: Regenerate.
331 * decode2.h: Regenerate.
332 * decodex.c: Regenerate.
333 * decodex.h: Regenerate.
335 2009-11-03 Doug Evans <dje@sebabeach.org>
337 * arch.c: Regenerate.
338 * arch.h: Regenerate.
341 * cpu2.c: Regenerate.
342 * cpu2.h: Regenerate.
343 * cpuall.h: Regenerate.
344 * cpux.c: Regenerate.
345 * cpux.h: Regenerate.
346 * decode.c: Regenerate.
347 * decode.h: Regenerate.
348 * decode2.c: Regenerate.
349 * decode2.h: Regenerate.
350 * decodex.c: Regenerate.
351 * decodex.h: Regenerate.
352 * model.c: Regenerate.
353 * model2.c: Regenerate.
354 * modelx.c: Regenerate.
355 * sem-switch.c: Regenerate.
357 * sem2-switch.c: Regenerate.
358 * semx-switch.c: Regenerate.
360 * Makefile.in (mloop.c): Add @true to rule.
361 (mloopx.c, mloop2.c): Ditto.
362 (stamp-*): Add Makefile dependency.
363 (arch.c, arch.h, cpuall.h): Specify full path.
364 (cpu.h, sem.c, sem-switch.c, model.c, decode.c, decode.h): Ditto.
365 (cpux.h, semx-switch.c, modelx.c, decodex.c, decodex.h): Ditto.
366 (cpu2.h, sem2-switch.c, model2.c, decode2.c, decode2.h): Ditto.
368 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
370 * config.in: Regenerate.
371 * configure: Likewise.
373 * configure: Regenerate.
375 2009-07-12 Doug Evans <dje@sebabeach.org>
377 * Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
378 (stamp-cpu, stamp-xcpu, stamp-2cpu): Ditto.
380 2009-06-20 Doug Evans <dje@sebabeach.org>
382 * mloop.in: Add missing # comment marker.
386 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
388 * configure: Regenerate to track ../common/common.m4 changes.
391 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
392 Daniel Jacobowitz <dan@codesourcery.com>
393 Joseph Myers <joseph@codesourcery.com>
395 * configure: Regenerate.
397 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
399 * acconfig.h: Remove.
400 * config.in: Regenerate.
402 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
404 * configure: Regenerated.
406 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
408 * configure: Regenerated.
410 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
412 * configure: Regenerated.
414 2005-03-23 Mark Kettenis <kettenis@gnu.org>
416 * configure: Regenerate.
418 2005-01-14 Andrew Cagney <cagney@gnu.org>
420 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
421 explicit call to AC_CONFIG_HEADER.
422 * configure: Regenerate.
424 2005-01-12 Andrew Cagney <cagney@gnu.org>
426 * configure.ac: Update to use ../common/common.m4.
427 * configure: Re-generate.
429 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
431 * configure: Regenerated to track ../common/aclocal.m4 changes.
433 2005-01-07 Andrew Cagney <cagney@gnu.org>
435 * configure.ac: Rename configure.in, require autoconf 2.59.
436 * configure: Re-generate.
438 2004-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
440 Committed by Kei Sakamoto.
441 * traps-linux.c (m32r_trap): Add entries of the following dummy system
442 calls: __NR_mmap2, __NR_lchown32, __NR_getuid32, __NR_getgid32,
443 __NR_geteuid32, __NR_getegid32, __NR_getgroups32, __NR_fchown32,
444 __NR_setfsuid32, __NR_setfsgid32, __NR_getresuid32,
445 __NR_getresgid32 and __NR_chown32.
446 * syscall.h: Add new definitions of system call number.
448 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
450 * configure: Regenerate for ../common/aclocal.m4 update.
452 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
454 Committed by Andrew Cagney.
455 * traps-linux.c: Don't include linux/module.h.
456 (m32r_trap): Remove dummy systemcall's entry of __NR_ustat and
457 __NR_get_kernel_syms.
459 2004-05-18 Daniel Jacobowitz <dan@debian.org>
461 * Makefile.in (stamp-xmloop, stamp-2mloop): Use -outfile-suffix.
463 2004-02-04 Andrew Cagney <cagney@redhat.com>
465 Committed by Andrew Cagney.
466 * mloopx.in: Update copyright.
467 (xextract-pbb): Fixed trap for system calls operation in parallel.
468 * mloop2.in (xextract-pbb): Ditto.
470 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
472 * configure.in: Changed for dummy simulator of m32r-linux.
473 * configure: Regenerate.
474 * Makefile.in: Added traps-linux.o for dummy simulator of m32r-linux.
475 * traps-linux.c: Added for dummy simulator of m32r-linux.
477 * sim-if.c (sim_create_inferior): Changed to setup SP for dummy
478 simulator for m32r-linux.
479 * sim-main.h (M32R_DEFAULT_MEM_SIZE): Changed for dummy simulator of
482 2003-12-11 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
484 * Makefile.in: Add support for new machine m32r2.
485 * cpu2.c: New file for m32r2 support.
487 * decode2.c: Likewise.
488 * decode2.h: Likewise.
490 * mloop2.in: Likewise.
491 * model2.c: Likewise.
492 * sem2-switch.c: Likewise.
493 * arch.c: Regenerate.
494 * arch.h: Regenerate.
496 * arch.c: Regenerate.
497 * cpuall.c: Regenerate.
498 * cpux.c: Regenerate.
499 * cpux.h: Regenerate.
500 * decode.c: Regenerate.
501 * decode.h: Regenerate.
502 * decodex.c: Regenerate.
503 * decodex.h: Regenerate.
504 * model.c: Regenerate.
505 * modelx.c: Regenerate.
506 * sem-switch.c: Regenerate.
508 * semx-switch.c: Regenerate.
509 * m32r-sim.h: Add EVB register support.
510 * sim-if.c: Likewise.
511 * sim-main.h: Likewise.
514 2003-09-08 Dave Brolley <brolley@redhat.com>
516 On behalf of Doug Evans <dje@sebabeach.org>
517 * Makefile.in (stamp-arch,stamp-cpu,stamp-xcpu): Pass archfile to cgen.
519 2003-02-27 Andrew Cagney <cagney@redhat.com>
521 * sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
523 2002-12-19 Doug Evans <dje@sebabeach.org>
525 * arch.c,arch.h,cpuall.h: Regenerate.
526 * cpu.c,cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Regenerate.
527 * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Regenerate.
529 2002-06-16 Andrew Cagney <ac131313@redhat.com>
531 * configure: Regenerated to track ../common/aclocal.m4 changes.
533 2001-11-14 Dave Brolley <brolley@redhat.com>
535 * arch.c: Regenerate.
536 * arch.h: Regenerate.
539 * cpuall.h: Regenerate.
540 * cpux.c: Regenerate.
541 * cpux.h: Regenerate.
542 * decode.c: Regenerate.
543 * decode.h: Regenerate.
544 * decodex.c: Regenerate.
545 * decodex.h: Regenerate.
546 * model.c: Regenerate.
547 * modelx.c: Regenerate.
548 * sem-switch.c: Regenerate.
550 * semx-switch.c: Regenerate.
552 2001-07-05 Ben Elliston <bje@redhat.com>
554 * Makefile.in (stamp-arch): Use $(CGEN_CPU_DIR).
555 (stamp-cpu): Likewise.
556 (stamp-xcpu): Likewise.
558 2001-03-05 Dave Brolley <brolley@redhat.com>
560 * arch.c: Regenerate.
561 * arch.h: Regenerate.
564 * cpuall.h: Regenerate.
565 * cpux.c: Regenerate.
566 * cpux.h: Regenerate.
567 * decode.c: Regenerate.
568 * decode.h: Regenerate.
569 * decodex.c: Regenerate.
570 * decodex.h: Regenerate.
571 * model.c: Regenerate.
572 * modelx.c: Regenerate.
573 * sem-switch.c: Regenerate.
575 * semx-switch.c: Regenerate.
577 2001-01-12 Frank Ch. Eigler <fche@redhat.com>
579 * configure: Regenerated with sim_scache fix.
581 2000-11-18 Greg McGary <greg@mcgary.org>
583 * Makefile.in: remove `@true' commands for rules that have
584 $(CGEN_MAINT) as a prerequisite.
586 2000-10-06 Dave Brolley <brolley@redhat.com>
588 * sem.c: Regenerated.
589 * sem-switch.c: Regenerated.
590 * semx-switch.c: Regenerated.
592 2000-08-28 Dave Brolley <brolley@redhat.com>
594 * Makefile.in: Use of @true confuses VPATH. Remove it.
595 * cpu.h: Regenerated.
596 * cpux.h: Regenerated.
597 * decode.c: Regenerated.
598 * decodex.c: Regenerated.
599 * model.c: Regenerated.
600 * modelx.c: Regenerated.
601 * sem-switch.c: Regenerated.
602 * sem.c: Regenerated.
603 * semx-switch.c: Regenerated.
605 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
607 * Makefile.in (m32r-clean): Add stamp-arch, stamp-cpu.
608 (stamp-arch, stamp-cpu): New targets.
610 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
612 * configure: Regenerated to track ../common/aclocal.m4 changes.
614 2000-03-30 Dave Brolley <brolley@redhat.com>
616 * configure: Regenerated.
618 1999-10-04 Doug Evans <devans@casey.cygnus.com>
620 * arch.c,arch.h,cpuall.h: Rebuild.
621 * cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Rebuild.
623 1999-09-29 Doug Evans <devans@casey.cygnus.com>
625 * mloop.in: Update call to sim_engine_invalid_insn.
626 * sem.c,sem-switch.c: Rebuild.
627 * traps.c (sim_engine_invalid_insn): New arg `vpc'. Change type of
628 result to SEM_PC. Return vpc.
630 * semx-switch.c: Rebuild.
632 Wed Sep 29 14:47:20 1999 Dave Brolley <brolley@cygnus.com>
634 * traps.c (sim_engine_invalid_insn): Return PC.
636 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
638 * configure: Regenerated to track ../common/aclocal.m4 changes.
640 1999-09-01 Doug Evans <devans@casey.cygnus.com>
642 * decodex.c: Rebuild.
644 1999-08-28 Doug Evans <devans@casey.cygnus.com>
650 1999-08-09 Doug Evans <devans@casey.cygnus.com>
652 * cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Rebuild.
653 * cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Rebuild.
655 1999-08-04 Doug Evans <devans@casey.cygnus.com>
657 * m32r-sim.h (SEM_SKIP_INSN): Delete.
658 * cpu.h,cpuall.h,decode.c,model.c,sem-switch.c,sem.c: Rebuild.
659 * cpux.h,decodex.c,modelx.c,semx-switch.c: Rebuild.
660 * mloopx.in (emit_parallel): Call SEM_SKIP_COMPILE.
661 (emit_full_parallel): Ditto.
663 1999-05-08 Felix Lee <flee@cygnus.com>
665 * configure: Regenerated to track ../common/aclocal.m4 changes.
667 Fri Apr 16 16:47:43 1999 Doug Evans <devans@charmed.cygnus.com>
669 * devices.c (device_io_read_buffer): New arg `sd'.
670 (device_io_write_buffer): New arg `sd'.
671 (device_error): Give proper arg spec.
673 1999-04-10 Doug Evans <devans@casey.cygnus.com>
675 * sem-switch.c,sem.c: Rebuild.
676 * cpux.h,semx-switch.c: Rebuild.
678 1999-03-27 Doug Evans <devans@casey.cygnus.com>
681 * decodex.c: Rebuild.
683 1999-03-26 Doug Evans <devans@casey.cygnus.com>
685 * m32r-sim.h (M32R_DEVICE_LEN): Fix off by one error.
687 1999-03-22 Doug Evans <devans@casey.cygnus.com>
689 * arch.c,arch.h,model.c: Rebuild.
691 * m32r-sim.h (a_m32r_h_gr_get,a_m32r_h_gr_set): Declare.
692 (a_m32r_h_cr_get,a_m32r_h_cr_set): Declare.
693 * m32r.c (m32rbf_fetch_register): Replace calls to a_m32r_h_pc_get,
694 a_m32r_h_accum_get with appropriate calls to m32rbf_*.
695 (m32rbf_store_register): Ditto.
696 (a_m32r_h_gr_get,a_m32r_h_gr_set): New functions.
697 (a_m32r_h_cr_get,a_m32r_h_cr_set): Ditto.
698 * sim-if.c (sim_open): Update call to m32r_cgen_cpu_open.
699 * traps.c (m32r_core_signal): Replace calls to a_m32r_h_*,
700 with appropriate calls to m32rbf_*.
702 1999-03-11 Doug Evans <devans@casey.cygnus.com>
704 * arch.c,arch.h,cpu.c,cpu.h,sem.c,sem-switch.c: Rebuild.
705 * cpux.c,cpux.h,semx-switch.c: Rebuild.
706 * m32r-sim.h (GET_H_*,SET_H_*, except GET_H_SM): Delete.
707 * sim-if.c (sim_open): Update call to m32r_cgen_cpu_open.
709 1999-02-25 Doug Evans <devans@casey.cygnus.com>
711 * cpu.c,cpu.h: Rebuild.
713 1999-02-09 Doug Evans <devans@casey.cygnus.com>
715 * Makefile.in (SIM_EXTRA_DEPS): Add m32r-desc.h, delete cpu-opc.h.
716 (stamp-xmloop): s/-parallel/-parallel-write/.
717 * configure.in (sim_link_files,sim_link_links): Delete.
718 * configure: Rebuild.
719 * decode.c,decode.h,model.c,sem-switch.c,sem.c: Rebuild.
720 * decodex.c,decodex.h,modelx.c,semx-switch.c: Rebuild.
721 * mloop.in (execute): CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
722 * sim-if.c (sim_open): m32r_cgen_cpu_open renamed from
723 m32r_cgen_opcode_open. Set disassembler.
724 (sim_close): m32r_cgen_cpu_open renamed from m32r_cgen_opcode_open.
725 * sim-main.h: Don't include cpu-opc.h,cpu-sim.h. Include
726 m32r-desc.h,m32r-opc.h,m32r-sim.h.
728 Thu Feb 4 16:04:26 1999 Doug Evans <devans@canuck.cygnus.com>
730 * cpux.h,decodex.c,modelx.c,semx-switch.c: Regenerate.
732 1999-01-27 Doug Evans <devans@casey.cygnus.com>
734 * cpu.h,decode.c,model.c,sem-switch.c,sem.c: Rebuild.
735 * cpux.h,decodex.c,modelx.c,semx-switch.c: Rebuild.
737 1999-01-15 Doug Evans <devans@casey.cygnus.com>
739 * decode.h,model.c: Regenerate.
740 * decodex.h,modelx.c: Regenerate.
742 1999-01-14 Doug Evans <devans@casey.cygnus.com>
744 * arch.c,arch.h,cpuall.h: Regenerate.
745 * cpu.c,cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Regenerate.
746 * traps.c (sim_engine_invalid_insn): PCADDR->IADDR.
747 * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Regenerate.
749 1999-01-11 Doug Evans <devans@casey.cygnus.com>
751 * Makefile.in (m32r-clean): rm eng.h.
752 * sim-main.h: Delete inclusion of ansidecl.h.
754 * cpux.h: Regenerate.
756 1999-01-06 Doug Evans <devans@casey.cygnus.com>
759 * cpux.h: Regenerate.
761 1999-01-05 Doug Evans <devans@casey.cygnus.com>
763 * Makefile.in (MAIN_INCLUDE_DEPS): Delete.
764 (INCLUDE_DEPS,OPS_INCLUDE_DEPS): Delete.
765 (sim-if.o): Use SIM_MAIN_DEPS.
766 (arch.o,traps.o,devices.o): Ditto.
767 (M32RBF_INCLUDE_DEPS): Use CGEN_MAIN_CPU_DEPS.
768 (m32r.o,mloop.o,cpu.o,decode.o,sem.o,model.o): Simplify dependencies.
769 (m32rx.o,mloopx.o,cpux.o,decodex.o,semx.o,modelx.o): Ditto.
770 * cpu.c,cpu.h,decode.c,model.c,sem-switch.c,sem.c: Regenerate.
771 * m32r-sim.h (m32rbf_h_cr_[gs]et_handler): Declare.
772 ([GS]ET_H_CR): Define.
773 (m32rbf_h_psw_[gs]et_handler): Declare.
774 ([GS]ET_H_PSW): Define.
775 (m32rbf_h_accum_[gs]et_handler): Declare.
776 ([GS]ET_H_ACCUM): Define.
777 (m32rxf_h_{cr,psw,accum}_[gs]et_handler): Declare.
778 (m32rxf_h_accums_[gs]et_handler): Declare.
779 ([GS]ET_H_ACCUMS): Define.
780 * sim-if.c (sim_open): Model probing code moved to sim-model.c.
781 * m32r.c (WANT_CPU): Define as m32rbf.
782 (all register access fns): Rename to ..._handler.
783 * cpux.c,cpux.h,decodex.c,modelx.c,semx.c: Regenerate.
784 * m32rx.c (WANT_CPU): Define as m32rxf.
785 (all register access fns): Rename to ..._handler.
787 1998-12-14 Doug Evans <devans@casey.cygnus.com>
789 * configure.in: --enable-cgen-maint support moved to common/aclocal.m4.
790 (SIM_AC_OPTION_ALIGNMENT): Make strict.
791 * configure: Regenerate.
793 * sem-switch.c,sem.c,semx-switch.c: Regenerate.
794 * sim-main.h (SIM_ENGINE_HALT_HOOK,SIM_ENGINE_RESTART_HOOK): Define.
795 * traps.c (m32r_core_signal): Handle --environment=operating.
797 1998-12-09 Doug Evans <devans@casey.cygnus.com>
799 * cpu.h,decode.c,sem-switch.c,sem.c: Regenerate.
800 * cpux.h,decodex.c,semx-switch.c: Regenerate.
802 * sim-if.c: Include string.h or strings.h if present.
804 1998-12-04 Doug Evans <devans@casey.cygnus.com>
806 * configure.in: Call SIM_AC_OPTION_INLINE.
807 * configure: Regenerate.
808 * sim-main.h: Protect against multiple inclusion.
809 Don't include cgen-scache.h,cgen-cpu.h,cgen-trace.h,cpuall.h.
810 Done by cgen-sim.h now.
811 * tconfig.in (SIM_HAVE_MODEL): Delete, moved to cgen-types.h.
812 * cpuall.h: Regenerate.
813 * cpu.h,decode.c,sem-switch.c,sem.c: Regenerate.
814 * mloop.in (extract16): Make static inline again.
815 Simplify with call to @cpu@_fill_argbuf,@cpu@_fill_argbuf_tp.
817 Simplify with call to @cpu@_fill_argbuf,@cpu@_fill_argbuf_tp.
818 (execute): Test ARGBUF_PROFILE_P before profiling.
819 Update calls to TRACE_INSN_INIT,TRACE_INSN_FINI.
820 * cpux.h,decodex.c,modelx.c,semx-switch.c: Regenerate.
821 * mloopx.in: Rewrite.
823 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
825 * devices.c (device_io_write_buffer): Fix typo.
826 * sim-if.c (sim_open): Hack in call to dv_sockser_install.
827 * tconfig.in (HAVE_DV_SOCKSER): Add but comment out.
829 1998-11-18 Doug Evans <devans@casey.cygnus.com>
831 * Makefile.in (M32R_OBJS): Delete extract.o.
833 * cpu.c,cpu.h,decode.c,decode.h,sem-switch.c,sem.c: Rebuild.
834 * mloop.in (extract16): Update type of `insn' arg.
835 Delete call to d->extract.
837 * cpux.c,cpux.h,decodex.c,decodex.h,semx-switch.c: Rebuild.
838 * mloopx.in (extractx16): Update type of `insn' arg.
839 Delete call to d->extract. Delete arg pbb_p. All callers updated.
840 (extract-simple,full-exec-simple,fast-exec-simple): Delete.
843 Wed Nov 4 23:55:37 1998 Doug Evans <devans@seba.cygnus.com>
845 * sim-main.h: Delete inclusion of config.h, include sim-basics.h
847 * tconfig.in: Guard against multiple inclusion.
848 * cpu.h: Delete decls moved to genmloop.sh.
851 Mon Oct 19 14:13:05 1998 Doug Evans <devans@seba.cygnus.com>
853 * sim-main.h: #include cpu-opc.h.
854 * arch.c,arch.h,decode.c,extract.c,model.c,sem.c: Regenerate
855 to get #include cleanup.
856 * decodex.c,extractx.c,modelx.c: Ditto.
858 * Makefile.in (SIM_EXTRA_DEPS): Replace cgen headers with
860 (M32RBF_INCLUDE_DEPS): Define.
861 (m32r .o's): Depend on it.
862 (mloop.c): Update call to genmloop.sh.
863 * cpu.h,cpuall.h: Regenerate.
864 * sim-main.h: Delete inclusion of cpu.h,decode.h, moved to cpuall.h.
865 #include cgen-scache.h,cgen-cpu.h.
866 * tconfig.in (WITH_FOO semantic macros): Delete.
867 * Makefile.in (M32RXF_INCLUDE_DEPS): Define.
868 (m32rx .o's): Depend on it.
869 (mloopx.c): Update call to genmloop.sh.
870 * cpux.h: Regenerate.
872 Fri Oct 16 09:15:29 1998 Doug Evans <devans@charmed.cygnus.com>
874 * sim-if.c (sim_do_command): Handle "sim info reg {bbpsw,bbpc}".
876 Fri Oct 9 16:11:58 1998 Doug Evans <devans@seba.cygnus.com>
878 Add pseudo-basic-block execution support.
879 * Makefile.in (SIM_OBJS): Add sim-reg.o, cgen-run.o, sim-stop.o.
880 (SIM_EXTRA_DEPS): Add include/opcode/cgen.h.
881 (INCLUDE_DEPS): Delete cpu-sim.h, include/opcode/cgen.h.
882 (mloop.c): Build pseudo-basic-block version. Depend on stamp-cpu.
883 * arch.c,arch.h,cpuall.h: Regenerate.
884 * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
885 * sem-switch.c,sem.c: Regenerate.
886 * m32r-sim.h (M32R_MISC_PROFILE): New members load_regs,
888 * m32r.c (m32rbf_fetch_register): Renamed from m32rb_fetch_register.
889 (m32rbf_store_register,m32rbf_h_cr_get,m32rbf_h_cr_set,
890 m32rbf_h_psw_get,m32rbf_h_psw_set,m32rbf_h_accum_get,
891 m32rbf_h_accum_set): Likewise.
892 (m32r_model_{init,update}_insn_cycles): Delete.
893 (m32rbf_model_insn_{before,after}): New fns.
894 (m32r_model_record_cti,m32r_model_record_cycles): Delete.
895 (m32rb_model_mark_get_h_gr,m32rb_model_mark_set_h_gr): Delete.
896 (m32rb_model_mark_busy_reg,m32rb_model_mark_unbusy_reg): Delete.
897 (check_load_stall): New fn.
898 (m32rbf_model_m32r_d_u_{exec,cmp,mac,cti,load,store}): New fns.
899 (m32rbf_model_test_u_exec): New fn.
900 * mloop.in: Rewrite, use pbb support.
901 * sim-if.c (sim_stop,sim_sync_stop,sim_resume): Delete.
902 (sim_fetch_register,sim_store_register): Delete.
903 * sim-main.h (CIA_GET,CIA_SET): Fix.
904 (SIM_ENGINE_HALT_HOOK,SIM_ENGINE_RESTART_HOOK): Delete.
905 * tconfig.in (WITH_SCACHE_PBB): Define.
906 (WITH_SCACHE_PBB_M32RBF): Define.
907 * traps.c (sim_engine_invalid_insn): Renamed from ..._illegal_....
908 (m32r_trap): Pass pc to sim_engine_halt.
909 * configure.in (SIM_AC_OPTION_SCACHE): Change 1024 to 16384.
910 * configure: Regenerate.
911 * Makefile.in (M32RX_OBJS): Delete semx.o, add extract.o.
912 (mloopx.c): Build pseudo-basic-block version.
915 * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c: Regenerate.
918 * extractx.c: New file.
919 * semx-switch.c: New file.
920 * m32r-sim.h (BRANCH_NEW_PC): Delete.
921 (SEM_SKIP_INSN): New macro.
922 * m32rx.c (m32rxf_fetch_register): Renamed from m32rx_fetch_register.
923 (m32rxf_store_register,m32rxf_h_cr_get,m32rxf_h_cr_set,
924 m32rxf_h_psw_get,m32rxf_h_psw_set,m32rxf_h_accum_get,
925 m32rxf_h_accum_set,m32rxf_h_accums_get,m32rxf_h_accums_set): Likewise.
926 (m32rxf_model_insn_{before,after}): New fns.
927 (m32rx_model_mark_get_h_gr,m32rx_model_mark_set_h_gr): Delete.
928 (m32rx_model_mark_busy_reg,m32rx_model_mark_unbusy_reg): Delete.
929 (check_load_stall): New fn.
930 (m32rxf_model_m32rx_u_{exec,cmp,mac,cti,load,store}): New fns.
931 * mloopx.in: Rewrite, use pbb support.
932 * tconfig.in (WITH_SCACHE_PBB_M32RXF): Define.
933 (WITH_SEM_SWITCH_FULL): Change from 0 to 1.
935 Wed Sep 16 18:22:27 1998 Doug Evans <devans@canuck.cygnus.com>
937 * m32r-sim.h ({PSW,CBR,SPI,SPU,BPC,BBPSW,BBPC}_REGNUM): New macros.
938 ({ACC1L,ACC1H}_REGNUM): New macros.
939 (m32r_decode_gdb_ctrl_regnum): Add prototype.
940 * m32r.c (m32r_decode_gdb_ctrl_regnum): New function.
941 (m32r_fetch_register,m32r_store_register): Rewrite.
942 * m32rx.c (m32rx_fetch_register,m32rx_store_register): Rewrite.
944 Tue Sep 15 15:01:14 1998 Doug Evans <devans@canuck.cygnus.com>
946 * m32r-sim.h (GET_H_SM): New macro.
947 (UART params): Update to msa2000.
948 * devices.c (device_io_read_buffer): Update to msa2000.
949 * m32r.c (m32rb_h_cr_get,m32rb_h_cr_set): Handle bbpc,bbpsw.
950 (m32rb_h_psw_get,m32rb_h_psw_set): New functions.
951 * arch.c,arch.h,cpu.c,cpu.h,sem-switch.c,sem.c: Regenerate.
952 * m32rx.c (m32rx_h_cr_get,m32rx_h_cr_set): Handle bbpc,bbpsw.
953 (m32rx_h_psw_get,m32rx_h_psw_set): New functions.
954 * cpux.c,cpux.h,readx.c,semx.c: Regenerate.
956 Wed Sep 9 15:29:36 1998 Doug Evans <devans@canuck.cygnus.com>
958 * m32r-sim.h (m32r_trap): Update prototype.
959 * traps.c (m32r_trap): New arg `pc'.
960 * sem.c,sem-switch.c: Regenerated.
961 * cpux.h,readx.c,semx.c: Regenerated.
963 Mon Aug 3 12:59:17 1998 Doug Evans <devans@seba.cygnus.com>
965 Rename cpu m32r to m32rb to distinguish from architecture name.
966 * Makefile.in (mloop.c): cpu m32r renamed to m32rb.
967 * sim-main.h (WANT_CPU_M32RB): Renamed from WANT_CPU_M32R.
968 * tconfig.in (WANT_CPU_M32RB): Ditto.
969 * m32r.c (WANT_CPU_M32RB): Ditto.
970 (*): m32r_ cpu fns renamed to m32rb_.
971 * sim-if.c (sim_stop,sim_sync_stop,sim_resume): Update.
972 * arch.h,arch.c: Regenerate.
973 * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
974 * sem-switch.c,sem.c: Regenerate.
976 * sim-if.c (sim_open): Don't allocate memory on top of any user
978 (h_gr_get,h_gr_set): Delete.
979 * sim-main.h (h_gr_get,h_gr_set): Delete.
980 * traps.c (m32r_trap): Replace calls to h_gr_[gs]et with
983 * Makefile.in (INCLUDE_DEPS): Add include/opcode/cgen.h.
985 * sim-if.c (sim_open): Open opcode table.
986 (sim_close): Close it.
988 Tue Jul 28 13:06:19 1998 Doug Evans <devans@canuck.cygnus.com>
990 Add support for new versions of mulwhi,mulwlo,macwhi,macwlo that
991 accept an accumulator choice.
992 * cpux.c,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
994 Fri Jul 24 13:00:29 1998 Doug Evans <devans@canuck.cygnus.com>
996 * m32r.c: Include cgen-mem.h.
997 * traps.c (m32r_trap): Tweak for -Wall.
998 * m32rx.c: Include cgen-mem.h.
999 * semx.c: Regenerate, get -Wall cleanups.
1001 Tue Jul 21 16:53:10 1998 Doug Evans <devans@seba.cygnus.com>
1003 * cpu.h,extract.c: Regenerate. pc-rel calcs done on f_dispNN now.
1004 * cpux.h,readx.c,semx.c: Ditto.
1006 Wed Jul 1 16:51:15 1998 Doug Evans <devans@seba.cygnus.com>
1008 * Makefile.in: cgen_maint -> CGEN_MAINT.
1009 * configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
1010 * configure: Regenerate.
1011 * arch.c,arch.h,cpuall.h: Regenerate.
1012 * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
1013 * sem-switch.c,sem.c: Regenerate.
1014 * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
1015 * semx.c: Regenerate.
1016 * mloopx.in (icount): Moved here from genmloop.sh.
1018 Sat Jun 13 07:49:23 1998 Doug Evans <devans@fallis.cygnus.com>
1020 * m32r-sim.h (M32R_MISC_PROFILE): New members insn_cycles, cti_stall,
1021 load_stall,biggest_cycles.
1022 * m32r.c (m32r_model_mark_get_h_gr): Update.
1023 (m32r_model_init_insn_cycles,m32r_model_update_insn_cycles): New fns.
1024 (m32r_model_record_cti,m32r_model_record_cycles): New functions.
1025 * mloop.in: Call cycle init/update fns.
1026 * model.c: Regenerate.
1027 * m32rx.c (m32rx_model_mark_get_h_gr): Update.
1028 * mloopx.in: Call cycle init/update fns.
1029 * modelx.c: Regenerate.
1031 Wed Jun 10 17:39:29 1998 Doug Evans <devans@canuck.cygnus.com>
1033 * traps.c: New file. Trap support moved here from sim-if.c.
1034 * Makefile.in (SIM_OBJS): Add traps.o
1035 * sim-if.c: Don't include targ-vals.h.
1036 (sim_engine_illegal_insn): Moved to traps.c
1037 * sim-main.h (SIM_CORE_SIGNAL): Define.
1038 (m32r_core_signal): Declare.
1039 * m32r-sim.h (m32r_trap): Declare.
1041 * devices.c (device_io_read_buffer): Handle cache purging via MCCR
1044 * m32r-sim.h (M32R_MISC_PROFILE): Move here from sim-main.h.
1045 (PROFILE_COUNT_SHORTINSNS,PROFILE_COUNT_LONGINSNS): New macros.
1046 (TRAP_SYSCALL,TRAP_BREAKPOINT): New macros.
1048 * extract.c,sem-switch.c,sem.c: Regenerate.
1049 * cpux.h,readx.c,semx.c: Regenerate.
1051 Wed May 20 00:10:40 1998 Doug Evans <devans@seba.cygnus.com>
1053 * m32r-sim.h (PROFILE_COUNT_PARINSNS): New macro.
1054 * mloopx.in (extract): Set abuf.addr for proper fill nop counting.
1055 (execute): Count parallel insns.
1056 * sim-if.c (print_m32r_misc_cpu): Print count.
1057 * sim-main.h (M32R_MISC_PROFILE): New member parallel_count.
1059 Zero bottom two bits of pc in jmp,jl insns.
1060 * sem.c,sem-switch.c: Regenerate.
1061 * semx.c: Regenerate.
1063 Tue May 19 16:45:33 1998 Doug Evans <devans@seba.cygnus.com>
1065 * sim-if.c (do_trap): Treat traps 2-15 as hardware does.
1067 Sat May 16 13:04:30 1998 Doug Evans <devans@seba.cygnus.com>
1069 * sim-if.c (sim_stop): Update call to @cpu@_engine_stop.
1070 (sim_sync_stop): New function.
1072 Fri May 15 16:43:27 1998 Doug Evans <devans@seba.cygnus.com>
1074 * Makefile.in (devices.o): Add dependencies.
1076 * arch.h,cpu.c,cpu.h,cpuall.h: Regenerate.
1077 * sem-switch.c,sem.c: Regenerate.
1078 * mloop.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
1079 * cpux.c,cpux.h,modelx.c,semx.c: Regenerate.
1080 * m32rx.c (m32rx_model_mark_{busy,unbusy}_reg): New functions.
1081 * mloopx.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
1082 Fix pc value passed to TRACE_INSN for second parallel insn.
1084 Thu May 7 02:51:35 1998 Doug Evans <devans@seba.cygnus.com>
1086 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
1088 Wed May 6 14:51:39 1998 Doug Evans <devans@seba.cygnus.com>
1090 * arch.h,arch.c,cpu.h,cpuall.h: Regenerate, tweaks mostly.
1091 * model.c: Ditto. Reorganize model/mach data.
1095 * Makefile.in (m32r.o,mloop.o,cpu.o,model.o): Add decode.h dependency.
1096 (m32rx.o,mloopx.o,cpux.o,modelx.o): Add decodex.h dependency.
1097 * decode.c,decode.h: Regenerate, introduces IDESC table.
1098 * mloop.in (extract16,extract32): Add IDESC support.
1099 Update names of semantic handler member names.
1100 (execute): Ditto. Delete call to PROFILE_COUNT_INSN.
1101 * decodex.c,decodex.h: Regenerate, introduces IDESC table.
1102 * mloopx.in: Add IDESC support.
1103 Update names of semantic handler member names.
1104 Delete call to PROFILE_COUNT_INSN.
1106 * sem-switch.c: Regenerate. Redo computed goto label handling.
1107 * sem.c: Regenerate. Call PROFILE_COUNT_INSN.
1108 * readx.c: Regenerate. Redo computed goto label handling.
1109 * semx.c: Regenerate. Call PROFILE_COUNT_INSN. Finish profiling
1112 * m32r.c (m32r_fetch_register): Change result type and args to
1113 conform to sim_fetch_register interface.
1114 (m32r_store_register): Ditto for sim_store_register interface.
1115 * m32rx.c (m32rx_fetch_register): Change result type and args to
1116 conform to sim_fetch_register interface.
1117 (m32rx_store_register): Ditto for sim_store_register interface.
1119 * sim-if.c (alloc_cpu): Delete.
1120 (free_state): Uninstall modules here ...
1121 (sim_open): ... and not here. Call sim_cpu_alloc_all.
1122 Set default architecture/model if not specified.
1123 (sim_fetch_register,sim_store_register): Rewrite.
1125 * sim-if.c (h_pc_get,h_pc_set): Delete. Renamed to sim_pc_[gs]et
1126 and moved to common/sim-cpu.c.
1127 (sim_create_inferior): Update.
1129 * sim-main.h (h_pc_get,h_pc_set): Delete.
1131 * sim-main.h (sim_cia): Change to USI.
1132 (sim_cpu): Move m32r_misc_profile before machine generated part.
1134 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
1136 * configure: Regenerated to track ../common/aclocal.m4 changes.
1138 Tue Apr 28 18:05:53 1998 Nick Clifton <nickc@cygnus.com>
1141 * modelx.c: Rebuilt.
1143 Mon Apr 27 15:36:30 1998 Doug Evans <devans@seba.cygnus.com>
1145 * cpu.h,model.c,sem-switch.c,sem.c: Regenerated. Mostly comment
1146 and variable renaming due to macro insn additions.
1147 * mloop.in: Update to use CGEN_INSN_NUM.
1148 * cpux.h,modelx.c,readx.c,semx.c: Regenerated.
1149 * mloopx.in: Update to use CGEN_INSN_NUM.
1151 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
1153 * configure: Regenerated to track ../common/aclocal.m4 changes.
1156 Sun Apr 26 15:20:05 1998 Tom Tromey <tromey@cygnus.com>
1158 * acconfig.h: New file.
1159 * configure.in: Reverted change of Apr 24; use sinclude again.
1161 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
1163 * configure: Regenerated to track ../common/aclocal.m4 changes.
1166 Fri Apr 24 11:19:26 1998 Tom Tromey <tromey@cygnus.com>
1168 * configure.in: Don't call sinclude.
1170 Mon Apr 20 16:12:35 1998 Doug Evans <devans@canuck.cygnus.com>
1172 * cpu.c,sem.c,sem-switch.c: Regenerate. From
1173 - cgen/m32r.cpu (h-accum): Add attribute FUN-ACCESS.
1174 * m32r.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
1175 #include cgen-ops.h.
1176 * cpux.c,readx.c,semx.c: Regenerate.
1177 * m32rx.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
1178 #include cgen-ops.h. Delete inclusion of several unnecessary headers.
1179 (m32r_h_accums_get): Sign extend top 8 bits.
1181 Tue Apr 14 14:04:07 1998 Doug Evans <devans@canuck.cygnus.com>
1183 * semx.c: Regenerate.
1185 Fri Apr 10 18:22:41 1998 Doug Evans <devans@canuck.cygnus.com>
1187 * cpu.h,decode.c,decode.h,extract.c,sem.c,sem-switch.c: Regenerate.
1188 * cpux.h,decodex.c,decodex.h,readx.c,semx.c: Regenerate.
1190 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
1192 * configure: Regenerated to track ../common/aclocal.m4 changes.
1194 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
1196 * configure: Regenerated to track ../common/aclocal.m4 changes.
1198 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
1200 * configure: Regenerated to track ../common/aclocal.m4 changes.
1202 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
1204 * configure: Regenerated to track ../common/aclocal.m4 changes.
1206 Sat Mar 14 20:53:36 1998 Doug Evans <devans@seba.cygnus.com>
1208 * config.in (HAVE_FCNTL_H): Add.
1209 * configure: Regenerate.
1210 * Makefile.in (SIM_OBJS): Add devices.o.
1211 * m32r-sim.h (m32r_devices): Renamed from m32r_mspr_device.
1212 (UART_*): Define m32r serial port parameters.
1213 (M32R_DEVICE_ADDR,M32R_DEVICE_LEN): Define.
1214 * m32r.c (device_io_{read,write}_buffer,device_error): Move from here,
1215 * devices.c: To here.
1216 * sim-if.c: Don't include signal.h,sim-core.h.
1217 (sim_open): Use M32R_DEVICE_{ADDR,LEN} in sim_core_attach call.
1218 (sim_resume): Call sim_module_{resume,suspend}.
1219 * m32r.c (m32r_h_cr_{get,set}): Use register number enums.
1221 * tconfig.in (SIM_HANDLES_LMA): Define.
1223 * sim-if.c (do_trap): Result is new pc.
1224 Handle --environment=operating.
1225 * sem-switch.c,sem.c: Regenerate.
1226 * semx.c: Regenerate.
1228 Wed Mar 11 14:07:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
1230 * sim-if.c (syscall_read_mem, syscall_write_mem): Replace
1231 sim_core_*_map with read_map, write_map, exec_map resp.
1233 Wed Mar 4 11:36:51 1998 Doug Evans <devans@seba.cygnus.com>
1235 * Makefile.in (SIM_EXTRA_DEPS): Add cpu-opc.h.
1236 (arch.o): Delete cpu-opc.h dependency.
1237 (decode.o,model.o): Likewise.
1238 (decodex.o,modelx.o): Likewise.
1240 * cpu.h,model.c,sem-switch.c,sem.c: Regenerate.
1241 * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
1243 Thu Feb 26 18:38:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
1245 * sim-if.c (sim_open): Initialize PROFILE_INFO_CPU_CALLBACK.
1247 * sim-if.c (sim_info): Delete.
1249 Fri Feb 27 10:14:29 1998 Doug Evans <devans@canuck.cygnus.com>
1251 * mloopx.in: Fix handling of branch in parallel with another insn.
1252 * semx.c: Regenerate.
1254 Mon Feb 23 13:30:46 1998 Doug Evans <devans@seba.cygnus.com>
1256 * sim-main.h: #include symcat.h.
1257 * m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg.
1258 (NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros.
1259 * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
1260 * sem.c,sem-switch.c: Regenerate.
1261 * m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec.
1262 * mloopx.in: Rewrite.
1263 * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
1265 Mon Feb 23 12:27:52 1998 Nick Clifton <nickc@cygnus.com>
1267 * m32r.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
1268 in the backup PC register.
1269 * m32rx.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
1270 in the backup PC register.
1272 Thu Feb 19 16:39:35 1998 Doug Evans <devans@canuck.cygnus.com>
1274 * m32r.c (do_lock,do_unlock): Delete.
1275 * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
1276 * sem.c,sem-switch.c: Regenerate.
1277 * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
1279 Tue Feb 17 18:18:10 1998 Doug Evans <devans@seba.cygnus.com>
1281 * Makefile.in (M32R_OBJS): Add cpu.o.
1282 (cpu.o): Add rule for.
1283 (NL_TARGET): Define.
1284 * configure.in: Add AC_CHECK_PROG(SCHEME).
1286 * cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
1287 * sem-switch.c,sem.c: Regenerate.
1288 * mloop.in (execute): Update call to semantic fn.
1289 (M32RX_OBJS): Add cpux.o.
1290 (cpux.o): Add rule for.
1292 * cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
1293 * m32rx.c (m32rx_h_accums_{get,set}): Rewrite.
1294 (m32rx_h_cr_{get,set}): New functions.
1295 (m32rx_h_accums_{get,set}): New functions.
1296 * mloopx.in: Rewrite main loop.
1298 * m32r.c (do_trap): Move from here.
1299 * sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support.
1300 (sim_create_inferior): Use h_pc_set.
1301 (h_pc_{get,set}): New functions.
1302 (h_gr_{get,set}): New functions.
1303 (syscall_{read,write}_mem): New functions.
1304 * sim-main.h (h_{gr,pc}_{get,set}): Declare.
1306 Tue Feb 17 12:44:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
1308 * sim-if.c (sim_store_register, sim_fetch_register): Pass in
1309 length parameter. Return -1.
1310 (sim_create_inferior): Pass 4 sim_store_register.
1312 Wed Feb 11 19:53:48 1998 Doug Evans <devans@canuck.cygnus.com>
1314 * sim-main.h (CIA_GET,CIA_SET): Provide dummy definitions for now.
1316 * decode.c, decode.h, sem.c, sem-switch.c, model.c: Regenerate.
1317 * cpux.c, decodex.c, decodex.h, readx.c, semx.c, modelx.c: Regenerate.
1319 Mon Feb 9 19:41:54 1998 Doug Evans <devans@canuck.cygnus.com>
1321 * decode.c, sem.c: Regenerate.
1322 * cpux.h, decodex.c, readx.c, semx.c: Regenerate.
1323 * m32rx.c (m32rx_h_accums_set): New function.
1324 (m32rx_model_mark_[gs]et_h_gr): New function.
1325 * mloopx.in: Rewrite.
1326 * Makefile.in (mloopx.o): Build with -parallel.
1327 * sim-main.h (_sim_cpu): Delete member `par_exec'.
1328 * tconfig.in (WITH_SEM_SWITCH_FULL): Define as 0 for m32rx.
1330 Thu Feb 5 12:44:31 1998 Doug Evans <devans@seba.cygnus.com>
1332 * Makefile.in (m32r.o): Depend on cpu.h
1333 (extract.o): Pass -DSCACHE_P.
1334 * mloop.in (extract{16,32}): Update call to m32r_decode.
1335 * arch.h,cpu.h,cpuall.h,decode.[ch]: Regenerate.
1336 * extract.c,model.c,sem-switch.c,sem.c: Regenerate.
1337 * sim-main.h: #include "ansidecl.h".
1338 Don't include cpu-opc.h, done by arch.h.
1339 * Makefile.in (M32RX_OBJS): Build m32rx support now.
1340 (m32rx.o): New rule.
1341 * m32r-sim.h (m32rx_h_cr_[gs]et): Define.
1342 * m32rx.c (m32rx_{fetch,store}_register): Update {get,set} of PC.
1343 (m32rx_h_accums_get): New function.
1344 * mloopx.in: Update call to m32rx_decode. Rewrite exec loop.
1345 * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
1347 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
1349 * configure: Regenerated to track ../common/aclocal.m4 changes.
1351 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
1353 * configure: Regenerated to track ../common/aclocal.m4 changes.
1355 Thu Jan 29 11:22:00 1998 Doug Evans <devans@canuck.cygnus.com>
1357 * Makefile.in (M32RX_OBJS): Comment out until m32rx port working.
1358 * arch.h (HAVE_CPU_M32R{,X}): Delete, moved to m32r-opc.h.
1359 * arch.c (machs): Check ifdef HAVE_CPU_FOO for each entry.
1361 Tue Jan 20 14:16:02 1998 Nick Clifton <nickc@cygnus.com>
1363 * cpux.h: Fix duplicate definition of h_accums field for
1364 fmt_53_sadd structure.
1366 Tue Jan 20 01:42:17 1998 Doug Evans <devans@seba.cygnus.com>
1368 * Makefile.in: Add m32rx objs, and rules to build them.
1369 * cpux.h, decodex.h, decodex.c, readx.c, semx.c, modelx.c: New files.
1370 * m32rx.c, mloopx.in: New files.
1372 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
1374 * configure: Regenerated to track ../common/aclocal.m4 changes.
1376 Mon Jan 19 14:13:40 1998 Doug Evans <devans@seba.cygnus.com>
1378 * arch.c, arch.h, cpuall.h: New files.
1379 * arch-defs.h: Deleted.
1380 * mloop.in: Renamed from mainloop.in.
1381 * Makefile.in: Update.
1382 * sem-ops.h: Deleted.
1383 * mem-ops.h: Deleted.
1384 (arch): Renamed from CPU.
1388 * extract.c: Redone.
1390 * sem-switch.c: Redone.
1391 * sem.c: Renamed from semantics.c, and redone.
1392 * m32r-sim.h (PROFILE_COUNT_FILLNOPS): Update.
1393 (GETTWI,SETTWI,BRANCH_NEW_PC): Define.
1394 * m32r.c (WANT_CPU,WANT_CPU_M32R): Define.
1395 (m32r_{fetch,store}_register): New functions.
1396 (model_mark_{get,set}_h_gr): Prefix with m32r_.
1397 (m32r_model_mark_{busy,unbusy}_reg): Prefix with m32r_.
1398 (h_cr_{get,set}): Prefix with m32r_.
1399 (do_trap): Fetch state from current_cpu, not current_state.
1400 Call sim_engine_halt instead of engine_halt.
1401 * sim-if.c (alloc_cpu): New function.
1402 (free_state): New function.
1403 (sim_open): Call sim_state_alloc, and malloc space for selected cpu
1404 type. Call sim_analyze_program.
1405 (sim_create_inferior): Handle selected cpu type when setting PC.
1406 (sim_resume): Handle m32rx.
1407 (sim_stop_reason): Deleted.
1408 (print_m32r_misc_cpu): Update.
1409 (sim_{fetch,store}_register): Handle m32rx.
1410 (sim_{read,write}): Deleted.
1411 (sim_engine_illegal_insn): New function.
1412 * sim-main.h: Don't include arch-defs.h,sim-core.h,sim-events.h.
1413 Include arch.h,cpuall.h. Include cpu.h,decode.h if m32r.
1414 Include cpux.h,decodex.h if m32rx.
1415 (_sim_cpu): Include member appropriate cpu_data member for the cpu.
1416 (M32R_MISC_PROFILE): Renamed from M32R_PROFILE.
1417 (sim_state): Delete members core,events,halt_jmp_buf.
1418 Change `cpu' member to be a pointer to the cpu's struct, rather than
1419 record inside the state struct.
1420 * tconfig.in (WITH_DEVICES): Define here.
1421 (WITH_FAST,WITH_SEM_SWITCH_{FULL,FAST}): Define for the cpu.
1423 Fri Jan 16 12:16:56 1998 Nick Clifton <nickc@cygnus.com>
1425 * arch-defs.h (INSN_NAME): Fix typo.
1427 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1429 * configure: Regenerated to track ../common/aclocal.m4 changes.
1432 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
1434 * m32r-sim.h (MSPR_ADDR): New macro.
1435 (m32r_mspr_device): Declare.
1436 (struct _device): Define.
1437 * m32r.c (m32r_mspr_device): New global.
1438 (device_{io_{read,write}_buffer,error}): New functions.
1439 * mem-ops.h (SETMEM*): Use sim_core_write_map, not read map.
1440 * sim-if.c: Delete redundant inclusion of cpu-sim.h.
1441 (sim_open): Attach device to handle MSPR register.
1442 * sim-main.h (WITH_DEVICES): Define as 1.
1445 * configure: Regenerated to track ../common/aclocal.m4 changes.
1447 Wed Dec 3 18:08:44 1997 Doug Evans <devans@canuck.cygnus.com>
1449 * configure.in (SIM_AC_OPTION_ENVIRONMENT): Call.
1450 * configure: Regenerated.
1452 Wed Nov 19 12:17:08 1997 Doug Evans <devans@canuck.cygnus.com>
1454 * mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}.
1455 * sim-if.c (sim_open): Call sim_config.
1456 (sim_stop_reason): Update call to sim_signal_to_host.
1458 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
1460 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
1462 Fri Oct 31 18:46:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
1464 * sim-if.c (sim_open): Delete dead call to sim_core_attach.
1466 Mon Oct 27 12:43:54 1997 Doug Evans <devans@canuck.cygnus.com>
1468 * sem-ops.h (U{DIV,MOD}[BHSD]I): Use unsigned division.
1470 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1472 * configure: Regenerated to track ../common/aclocal.m4 changes.
1474 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1476 * configure: Regenerated to track ../common/aclocal.m4 changes.
1478 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1480 * configure: Regenerated to track ../common/aclocal.m4 changes.
1482 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
1484 * Makefile.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_SCACHE,
1485 SIM_DEFAULT_MODEL): Delete, moved to common.
1486 (SIM_EXTRA_CFLAGS): Update.
1488 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1490 * configure.in (sim_link_links): Configure non-strict memory
1493 * configure: Regenerated to track ../common/aclocal.m4 changes.
1495 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1497 * configure: Regenerated to track ../common/aclocal.m4 changes.
1499 Wed Sep 17 17:44:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
1501 * sim-if.c (sim_open): Allocate memory under sim-memopt module
1502 using sim_do_commandf.
1503 (sim_open): Set magic-number at the start.
1504 (sim_do_command): Implement.
1506 * sim-main.h (sim_engine_halt): Map onto engine_halt.
1508 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1510 * configure: Regenerated to track ../common/aclocal.m4 changes.
1512 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1514 * configure: Regenerated to track ../common/aclocal.m4 changes.
1516 Fri Sep 5 10:21:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1518 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
1520 Thu Sep 4 10:30:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
1522 * sim-if.c (sim_open): Pass zero modulo arg to sim_core_attach.
1524 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1526 * configure: Regenerated to track ../common/aclocal.m4 changes.
1529 Tue Aug 26 10:39:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
1531 * sim-if.c (sim_kill): Delete.
1532 (sim_create_inferior): Add ABFD argument.
1533 (sim_load): Move setting of PC from here.
1534 (sim_create_inferior): To here.
1535 (sim_load): Delete, use sim-hload.c instead.
1537 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
1539 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1541 * configure: Regenerated to track ../common/aclocal.m4 changes.
1544 Mon Aug 25 15:54:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
1546 * sim-if.c (sim_open): Add ABFD argument.
1548 Tue Jul 22 10:16:16 1997 Doug Evans <dje@canuck.cygnus.com>
1550 * sim-main.h (M32R_DEFAULT_MEM_SIZE): New macro.
1551 * sim-if.c (sim_open): Use it.
1553 Wed Jun 4 12:48:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
1555 * sim-main.h (WITH_ENGINE): Disable the common engine for now.
1557 Tue May 27 14:15:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
1559 * sim-if.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
1560 (sim_write): Ditto for write.
1562 * m32r.c (do_trap): Ditto for read/write.
1564 Tue May 20 10:18:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1566 * sim-if.c (sim_open): Add callback argument.
1567 (sim_set_callbacks, sim_callback): Delete.
1568 (sim_load): Set STATE_LOADED_P.
1570 Mon May 19 12:55:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
1572 * Makefile.in (SIM_OBJS): Link in sim-abort.o as a stub for
1575 Mon May 5 12:45:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1577 * sim-if.c (sim_open): Update to reflect changes to core in
1579 * mem-ops.h (GETMEMQI, GETMEMHI, GETMEMSI, GETMEMDI, GETMEMUQI,
1580 GETMEMUHI, GETMEMUSI, GETMEMUDI, SETMEMQI, SETMEMHI, SETMEMSI,
1581 SETMEMDI, SETMEMUQI, SETMEMUHI, SETMEMUSI, SETMEMUDI): Ditto.
1583 Sat May 3 08:38:55 1997 Doug Evans <dje@seba.cygnus.com>
1585 * decode.c (decode): Add computed goto support.
1587 Fri May 2 16:30:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
1589 * mem-ops.h: Stub additional core read/write arguments.
1591 * sim-main.h: Declare sim_cia - type SI.
1592 (struct _sim_cpu): Move base type to end per common.
1593 (struct _sim_state): Ditto.
1595 Thu May 1 11:15:34 1997 Doug Evans <dje@canuck.cygnus.com>
1597 Merge from branch into devo. CGEN generic files moved to common
1598 directory. K&R C support is no longer provided.
1600 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1602 * configure: Regenerated to track ../common/aclocal.m4 changes.
1604 Sat Apr 12 12:57:33 1997 Felix Lee <flee@yin.cygnus.com>
1606 * Makefile.in, seman-cache.c: new file, for wingdb build.
1607 * sim-alloca.h: fixed for wingdb.
1609 Mon Apr 7 13:33:29 1997 Doug Evans <dje@seba.cygnus.com>
1611 * decode.c (*): m32r_cgen_insn_table renamed to ..._entries.
1612 * mainloop.in: Use CGEN_INSN_INDEX instead of CGEN_INSN_TYPE.
1613 * simdefs.h (INSN_NAME): m32r_cgen_insn_table renamed to ..._entries.
1615 Fri Apr 4 19:23:12 1997 Doug Evans <dje@canuck.cygnus.com>
1617 * cgen-utils.in (ex_illegal): Fill in abuf->length, abuf->addr.
1618 (exc_illegal): Likewise.
1619 * decode.c (decode_vars): Add decode_illegal.
1620 * genmloop.sh: #include "cpu-opc.h".
1621 * sem-switch.c (case_INSN_ILLEGAL): Declare.
1622 (labels): Add case_INSN_ILLEGAL.
1623 (SWITCH): Add INSN_ILLEGAL case.
1625 Wed Mar 26 12:34:00 1997 Doug Evans <dje@canuck.cygnus.com>
1627 * model.c (model_module): Use 0 not NULL.
1629 * genmloop.sh (sim_main_loop): Handle k&r c.
1631 * sem-switch.c: Regenerate to get k&r c support.
1632 * semantics.c: Likewise.
1634 * m32r.c (ADD_{OV,CA}_SI,SUB_{OV,CA}_SI): Renamed to {ADD,SUB}[OC]FSI.
1635 (ADDCSI,SUBCSI): New functions.
1636 * sem-switch.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
1637 * semantics.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
1639 * simcache.c (simcache_{install,init,uninstall}): Use
1640 DECLARE_MODULE_INSTALL_HANDLER.
1641 (simcache_option_handler): Use DECLARE_OPTION_HANDLER.
1643 * utils.c: #include "semops.h".
1645 Tue Mar 11 14:30:26 1997 Doug Evans <dje@seba.cygnus.com>
1647 * profile.c (profile_print_simcache): Fix thinko in printf text.
1649 * simdefs.h (struct argbuf): Add member to fmt_20 so it's not empty.
1651 Mon Mar 10 11:06:29 1997 Doug Evans <dje@seba.cygnus.com>
1653 * m32r.c (h_cr_get): Rewrite.
1654 (h_cr_set): Rewrite.
1655 * sem-switch.c (rte): bcarry renamed to bcond.
1656 * semantics.c (rte): Likewise.
1657 * simdefs.h (CPU_STATE): Likewise.
1659 * config.in (HAVE_SYS_TIME_H): Add.
1660 * configure.in: Check for sys/time.h.
1661 * configure: Regenerated.
1662 * utils.c: Include sys/time.h if present.
1664 * common.c (sim_parse_args): Account for NULL terminating entry
1665 in long_options table.
1667 * genmloop.sh (RUN_FAST_P): Don't run fast if tracing.
1668 Always use cache if configured in.
1669 * mainloop.in (do_extract_insn{16,32}): New functions.
1670 (normal,fast): Call them. Handle starting in left slot.
1671 * simcache.c (simcache_option_handler): Disallow -c0.
1672 * sem-switch.c (TRACE_RESULT): Redefine so no tracing.
1674 * profile.c (profile_print_simcache): Fix percentage calc.
1676 * Makefile.in (INCLUDE_DEPS): Delete simcommon.h.
1678 Sun Mar 9 20:42:17 1997 Doug Evans <dje@seba.cygnus.com>
1680 * Makefile.in (COMMON_{PRE,POST}_CONFIG_FRAG): Add delimiters for.
1681 (M32R_INCLUDE_DEPS): Use cpu-sim.h instead of m32r-sim.h.
1683 (mrun.o): Don't depend on M32R_INCLUDE_DEPS.
1684 (sim-if.o,m32r.o,utils.o): Likewise.
1685 (common.o): Don't explicitly depend on mod-list.h.
1686 (mainloop.c): Pass CPU to genmloop.sh.
1687 (stamp-modules): Depend on configure.
1688 (decode.o): Depend on decode,h, memops.h, semops.h, cpu-opc.h.
1689 (extract.o): Depend on decode.h, memops.h, semops.h.
1690 (semantics.o,seman-cache.o): Likewise.
1691 (model.o,ops.o): Depend on memops.h.
1692 (extr-cache.o): Disable building for the moment.
1694 * simcommon.h: Delete, move contents into cgen-sim.h.
1695 * cgen-sim.h: Don't include ansidecl.h,bfd.h,simfns.h.
1696 (UINT,CGEN_CAT3): Define.
1697 ({extract,semantic}_fn_t): Renamed to {EXTRACT,SEMANTIC}_FN.
1698 (decode_t): Renamed to DECODE.
1700 * simfns.h: Delete, contents moved to memops.h,semops.h.
1701 * memops.h: New file.
1702 * semops.h: New file.
1703 * decode.h: Renamed from semantics.h.
1705 * sim-argv.h: New file.
1706 * Makefile.in (memory.o,trace.o,profile.o,simcache.o,common): Add
1707 dependency of sim-argv.h.
1709 * sim-alloca.h: New file.
1710 * common.c: Include it.
1711 * Makefile.in (common.o): Add dependency.
1713 * config.in (HAVE_TIME_H,HAVE_SYS_RESOURCE_H): Add.
1714 (HAVE_GETRUSAGE,HAVE_TIME): Add.
1715 * configure.in: sinclude ../common/aclocal.m4.
1716 Check for headers time.h, sys/resource.h.
1717 Check for functions time, getrusage.
1718 (sim_link_{files,links}): Add link cpu-opc.h.
1719 (sim_profile): Add simcache.
1720 (SIM_AC_PROFILE): Add simcache, profile.o.
1721 (simcache module): Delete extr-cache.o for now.
1722 (--enable-sim-cache): Allow specification of default cache size.
1723 * configure: Regenerated.
1725 * decode.c: #include cgen-sim.h,memops.h,semops.h,decode.h,
1726 cpu-sim.h,cpu-opc.h. Don't include m32r-sim.h.
1729 * extract.c: #include cgen-sim.h,decode.h,cpu-sim.h.
1730 Don't include m32r-sim.h.
1731 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
1732 Simplify profiling test with PROFILE_MODEL_P.
1733 (mvfc,mvtc): Fix access of control registers.
1734 * semantic.c: #include cgen-sim.h,memops.h,semops.h,decode.h,cpu-sim.h.
1735 Don't include m32r-sim.h.
1736 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
1737 Simplify profiling test with PROFILE_MODEL_P.
1738 (mvfc,mvtc): Fix access of control registers.
1740 * sem-switch.c: New file, for GCC computed goto support.
1742 * genmloop.sh: Add #include's of bfd.h,callback.h,cgen-sim.h,
1743 memops.h,semops.h,trace.h,cpu-sim.h.
1744 (RUN_FAST_P): Change default to run fast if cache size > 0
1746 (sim_main_loop): Record execution time.
1747 Record instruction count even in fast mode.
1748 (init): Allow cpu to provide init code in mainloop.in.
1749 (FAST): Define as 0 or 1 depending on fast mode.
1750 * mainloop.in (normal): Combine with fast case.
1751 Add support for GCC computed gotos. Count simcache hits/misses.
1752 (init): Initialize "switch" labels if GNUC.
1754 * cgen-utils.in: Don't include opcode/cgen.h.
1755 Include cgen-sim.h, cpu-opc.h.
1756 * common.c: Don't include simcommon.h,mod-list.h. Include cgen-sim.h.
1757 * m32r-sim.h: Don't include mod-list.h
1758 (RUN_FAST_P): Delete.
1759 * m32r.c: Don't include profile.h. #include ansidecl.h,cgen-sim.h,
1760 semops.h,memory.h,trace.h
1761 (h_cr_get,h_cr_set): New functions.
1762 * memory.c: #include cgen-sim.h,callback.h.
1763 * ops.c: Don't include profile.h,m32r-sim.h.
1764 Include cgen-sim.h,memops.h,cpu-sim.h.
1765 (MEMOPS_DEFINE_INLINE): Renamed from SIMFNS_DEFINE_INLINE.
1766 * trace.c: Include cgen-sim.h,cpu-opc.h.
1767 * trace.h (trace_insn_{init,fini}): Declare.
1769 * model.c: Don't include signal.h,stdlib.h,m32r-sim.h.
1770 Include cgen-sim.h,cpu-sim.h,cpu-opc.h.
1771 Regenerate to get new insn aliases.
1773 * mrun.c: #include "ansidecl.h".
1774 (STATE): Use struct sim_state instead.
1776 * profile.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
1777 Don't include simcommon.h. Include cgen-sim.h,cpu-opc.h.
1778 (PROFILE_{READ,WRITE}_MASK): Replace with PROFILE_MEMORY_MASK.
1779 (profile_print_simcache): New function.
1780 (profile_print): Call it. Print simulator speed stats.
1781 * profile.h (PROFILE_{READ,WRITE}_MASK): Replace with
1782 PROFILE_MEMORY_MASK.
1783 (MODULE_PROFILE_SIMCACHE_P): Define.
1784 (PROFILE_SIMCACHE_MASK): Define.
1785 (PROFILE_COUNT): New members total_insn_count,exec_time.
1786 New members simcache_hits,simcache_misses.
1787 (PROFILE_SIMCACHE_{HITS,MISSES}): Define.
1788 (PROFILE_MODEL_P): New macro.
1789 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): New macros.
1791 * sim-if.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
1792 Don't include simcommon.h,m32r-sim.h. Include cgen-sim.h,cpu-sim.h.
1793 (sim_resume): Use USING_SIMCACHE_P instead of RUN_FAST_P.
1794 (sim_info): Pass verbose to profile_print.
1796 * simcache.c: Include cgen-sim.h,callback.h.
1797 (USING_SIMCACHE_P): Replace with SIMCACHE_P.
1798 (simcache_option_handler): Ensure cache size at least 2.
1799 Allow config time specification of default cache size.
1800 * simcache.h (struct simcache): Support GCC computed gotos.
1801 (SIMCACHE_DEFAULT_CACHE_SIZE): USe CONFIG_SIM_CACHE_SIZE if defined.
1802 (USING_SIMCACHE_P): New macro.
1804 * simdefs.h: Don't include m32r-opc.h.
1805 (CGEN_MAX_SIM_INSNS): Define.
1806 (CPU_STATE): Regenerate.
1807 (ARGBUF): Regenerate.
1808 (extract,semantic handler decls): Delete, moved to decode.h.
1810 * tconfig.in: Don't include cgen-sim.h,m32r-sim.h.
1811 (USE_SEM_SWITCH): Define.
1813 * utils.c: Include bfd.h,time.h,sys/resource.h.
1814 (sim_time_get,sim_time_elapsed): New functions.
1815 * cgen-sim.h (SIM_TIME,sim_time_get,sim_time_elapsed): Declare.
1817 Fri Jan 31 20:25:06 1997 Doug Evans <dje@canuck.cygnus.com>
1819 * configure.in (AC_CHECK_HEADERS): Handle i386-windows.
1820 * configure: Regenerated.
1821 * model.c: #include <stdlib.h>.
1822 * simcache.c: #include "libiberty.h".
1823 * simcommon.h (alloca): Handle i386-windows.
1825 * common.c: #include libiberty.h.
1826 (sim_signal_to_host): Return 5 if wingdb.
1828 Mon Jan 27 15:22:49 1997 Doug Evans <dje@seba.cygnus.com>
1830 * configure.in (sim_cache): Enabled by default now, pass default
1831 cache size to --enable-sim-cache.
1832 * simcache.c (simcache_option_handler): Allow -c 0.
1834 * simdefs.h,simfns.h: Regenerate
1835 * decode.c,extract.c,model.c,ops.c,semantics.c: Regenerate.
1837 Tue Jan 21 16:21:01 1997 Doug Evans <dje@seba.cygnus.com>
1839 Add model profiling support.
1840 * configure.in: Handle --enable-sim-model.
1841 (sim_profile): Add model.
1842 * Makefile.in (model.o): Add rule.
1843 * cgen-sim.h (UNIT,INSN_TIMING,MACH,MODEL): New types.
1844 * extract.c (*): Add model profiling support.
1845 * m32r.c (model_mark_{get,set}_h_gr): New functions.
1846 (model_mark_{busy,unbusy}_reg): New functions.
1847 * profile.c (profile_option_handler): Recognize --profile model.
1848 (profile_print_model): New function.
1849 (profile_print): Call it.
1850 * profile.h (MODULE_profile_model,MODULE_PROFILE_MODEL_P): Define.
1851 (PROFILE_MODEL_MASK,PROFILE_LABEL_WIDTH): Define.
1852 (PROFILE_COUNT): New members cycle_count,cti_stall_count,
1853 load_stall_count,taken_count,untaken_count.
1854 * semantics.c (*): Add model profiling support.
1855 * simcommon.h (struct sim_state): New members mach,model.
1856 * simdefs.h (CPU_PROFILE,MODEL_TYPE,UNIT_TYPE): New type.
1857 (MAX_MODELS,MAX_UNITS): Define.
1858 * tconfig.in (STATE_EXTRA_MEMBERS): Add cpu_profile.
1860 * Makefile.in (INCLUDE_DEPS): Add $(SIM_MODULES_HDRS).
1861 (stamp-modules): Depend on genmodlist.sh.
1862 * common.c (standard_options): Add --max-insns.
1863 (copy_argv): New function.
1864 * tconfig.in (SIM_HAVE_MAX_INSNS): Define.
1865 * genmloop.sh: Allow mainloop.in to contain support code.
1866 * mainloop.in: Move do_insn16,do_insn32 here.
1867 * m32r.c (do_trap): Handle SYS_argvlen,SYS_argv,SYS_read.
1868 * sim-if.c (sim_open): Don't set max insn count.
1869 (sim_create_inferior): Save argv,envp.
1870 * simcommon.h (struct sim_state): New members argv,envp.
1871 * simdefs.h ([GS]ETTWI,[GS]ETTUWI,[GS]ETTAI): Define.
1872 ([GS]ETMEMWI,[GS]ETMEMUWI,[GS]ETMEMAI): Define.
1873 (ARGBUF): New members h_gr_get, h_gr_set.
1874 * trace.c (trace_insn_init,trace_insn_fini): New functions.
1875 (trace_printf): Print to buffer, output later by trace_insn_fini.
1876 * trace.h (TRACE_INSN_{INIT,FINI}): Define.
1878 Thu Dec 19 16:01:59 1996 Doug Evans <dje@canuck.cygnus.com>
1880 * configure.in (AC_FUNC_ALLOCA): Call.
1881 * configure: Regenerate.
1882 * config.h (HAVE_ALLOCA_H): Add.
1883 * simcommon.h: Add alloca support.
1884 (DECLARE_MODULE_INSTALL_HANDLER): Define.
1885 (DECLARE_OPTION_HANDLER): Define.
1886 (MEM_FN): Declare using PARAMS.
1887 (DECLARE_MEM_FN): Define.
1888 * trace.c (trace_result): Tweak for !STDC.
1889 * cgen-sim.h (UDI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
1890 * cgen-utils.in (disasm_sprintf): Fix va_arg call in !STDC case.
1891 * common.c (sim_print_help_fn): Use PARAMS.
1892 (standard_option_handler): Fix decl for !STDC systems.
1893 * memory.c: #include <stdio.h>
1894 (mem_flat_{install,init,uninstall}): Fix decl for !STDC systems.
1895 (mem_flat_{read,write},mem_flat_option_handler): Likewise.
1896 * profile.c (profile_install): Likewise.
1897 (profile_option_handler): Likewise.
1899 Thu Dec 19 11:06:19 1996 Doug Evans <dje@seba.cygnus.com>
1901 * semantics.c (*): Don't suffix big unsigned numbers with "U".
1902 Prefix them with 0x instead.
1904 * cgen-sim.h (DI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
1905 (SLADI,SRADI,CONVSIDI,CONVDISI): Delete, moved to simfns.h.
1906 * semantics.c (machi,maclo,macwhi,macwlo,mulhi,mullo): Implement.
1907 (mulwhi,mulwlo,mvtachi,mvtaclo,rac,rach): Implement.
1908 * simfns.h: Add decls for functional DI,UDI,SF,DF,XF,TF support.
1909 Add support for boolean and/or.
1910 * utils.c: Redo naming of DI functional support.
1911 (ANDDI,ORDI,ADDDI,MULDI,GEDI,LEDI,CONVHIDI): New functions.
1913 Tue Dec 17 12:57:48 1996 Doug Evans <dje@seba.cygnus.com>
1915 * Directory created.