1 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
3 * configure: Regenerated to track ../common/aclocal.m4 changes.
5 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
7 * configure: Regenerated to track ../common/aclocal.m4 changes.
9 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
11 * configure: Regenerated to track ../common/aclocal.m4 changes.
13 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
15 * configure: Regenerated to track ../common/aclocal.m4 changes.
17 Sat Mar 14 20:53:36 1998 Doug Evans <devans@seba.cygnus.com>
19 * config.in (HAVE_FCNTL_H): Add.
20 * configure: Regenerate.
21 * Makefile.in (SIM_OBJS): Add devices.o.
22 * m32r-sim.h (m32r_devices): Renamed from m32r_mspr_device.
23 (UART_*): Define m32r serial port parameters.
24 (M32R_DEVICE_ADDR,M32R_DEVICE_LEN): Define.
25 * m32r.c (device_io_{read,write}_buffer,device_error): Move from here,
27 * sim-if.c: Don't include signal.h,sim-core.h.
28 (sim_open): Use M32R_DEVICE_{ADDR,LEN} in sim_core_attach call.
29 (sim_resume): Call sim_module_{resume,suspend}.
30 * m32r.c (m32r_h_cr_{get,set}): Use register number enums.
32 * tconfig.in (SIM_HANDLES_LMA): Define.
34 * sim-if.c (do_trap): Result is new pc.
35 Handle --environment=operating.
36 * sem-switch.c,sem.c: Regenerate.
41 Wed Mar 11 14:07:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
43 * sim-if.c (syscall_read_mem, syscall_write_mem): Replace
44 sim_core_*_map with read_map, write_map, exec_map resp.
46 Wed Mar 4 11:36:51 1998 Doug Evans <devans@seba.cygnus.com>
48 * Makefile.in (SIM_EXTRA_DEPS): Add cpu-opc.h.
49 (arch.o): Delete cpu-opc.h dependency.
50 (decode.o,model.o): Likewise.
52 (decodex.o,modelx.o): Likewise.
55 * cpu.h,model.c,sem-switch.c,sem.c: Regenerate.
57 * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
60 Thu Feb 26 18:38:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
62 * sim-if.c (sim_open): Initialize PROFILE_INFO_CPU_CALLBACK.
64 * sim-if.c (sim_info): Delete.
67 Fri Feb 27 10:14:29 1998 Doug Evans <devans@canuck.cygnus.com>
69 * mloopx.in: Fix handling of branch in parallel with another insn.
73 Mon Feb 23 13:30:46 1998 Doug Evans <devans@seba.cygnus.com>
75 * sim-main.h: #include symcat.h.
76 * m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg.
77 (NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros.
78 * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
79 * sem.c,sem-switch.c: Regenerate.
81 * m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec.
83 * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
86 Mon Feb 23 12:27:52 1998 Nick Clifton <nickc@cygnus.com>
88 * m32r.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
89 in the backup PC register.
91 * m32rx.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
92 in the backup PC register.
95 Thu Feb 19 16:39:35 1998 Doug Evans <devans@canuck.cygnus.com>
97 * m32r.c (do_lock,do_unlock): Delete.
98 * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
99 * sem.c,sem-switch.c: Regenerate.
101 * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
104 Tue Feb 17 18:18:10 1998 Doug Evans <devans@seba.cygnus.com>
106 * Makefile.in (M32R_OBJS): Add cpu.o.
107 (cpu.o): Add rule for.
109 * configure.in: Add AC_CHECK_PROG(SCHEME).
111 * cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
112 * sem-switch.c,sem.c: Regenerate.
113 * mloop.in (execute): Update call to semantic fn.
115 (M32RX_OBJS): Add cpux.o.
116 (cpux.o): Add rule for.
118 * cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
119 * m32rx.c (m32rx_h_accums_{get,set}): Rewrite.
120 (m32rx_h_cr_{get,set}): New functions.
121 (m32rx_h_accums_{get,set}): New functions.
122 * mloopx.in: Rewrite main loop.
125 * m32r.c (do_trap): Move from here.
126 * sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support.
127 (sim_create_inferior): Use h_pc_set.
128 (h_pc_{get,set}): New functions.
129 (h_gr_{get,set}): New functions.
130 (syscall_{read,write}_mem): New functions.
131 * sim-main.h (h_{gr,pc}_{get,set}): Declare.
133 Tue Feb 17 12:44:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
135 * sim-if.c (sim_store_register, sim_fetch_register): Pass in
136 length parameter. Return -1.
137 (sim_create_inferior): Pass 4 sim_store_register.
139 Wed Feb 11 19:53:48 1998 Doug Evans <devans@canuck.cygnus.com>
141 * sim-main.h (CIA_GET,CIA_SET): Provide dummy definitions for now.
143 * decode.c, decode.h, sem.c, sem-switch.c, model.c: Regenerate.
145 * cpux.c, decodex.c, decodex.h, readx.c, semx.c, modelx.c: Regenerate.
148 Mon Feb 9 19:41:54 1998 Doug Evans <devans@canuck.cygnus.com>
150 * decode.c, sem.c: Regenerate.
152 * cpux.h, decodex.c, readx.c, semx.c: Regenerate.
153 * m32rx.c (m32rx_h_accums_set): New function.
154 (m32rx_model_mark_[gs]et_h_gr): New function.
155 * mloopx.in: Rewrite.
156 * Makefile.in (mloopx.o): Build with -parallel.
157 * sim-main.h (_sim_cpu): Delete member `par_exec'.
158 * tconfig.in (WITH_SEM_SWITCH_FULL): Define as 0 for m32rx.
161 Thu Feb 5 12:44:31 1998 Doug Evans <devans@seba.cygnus.com>
163 * Makefile.in (m32r.o): Depend on cpu.h
164 (extract.o): Pass -DSCACHE_P.
165 * mloop.in (extract{16,32}): Update call to m32r_decode.
166 * arch.h,cpu.h,cpuall.h,decode.[ch]: Regenerate.
167 * extract.c,model.c,sem-switch.c,sem.c: Regenerate.
168 * sim-main.h: #include "ansidecl.h".
169 Don't include cpu-opc.h, done by arch.h.
171 * Makefile.in (M32RX_OBJS): Build m32rx support now.
173 * m32r-sim.h (m32rx_h_cr_[gs]et): Define.
174 * m32rx.c (m32rx_{fetch,store}_register): Update {get,set} of PC.
175 (m32rx_h_accums_get): New function.
176 * mloopx.in: Update call to m32rx_decode. Rewrite exec loop.
177 * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
180 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
182 * configure: Regenerated to track ../common/aclocal.m4 changes.
184 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
186 * configure: Regenerated to track ../common/aclocal.m4 changes.
189 Thu Jan 29 11:22:00 1998 Doug Evans <devans@canuck.cygnus.com>
191 * Makefile.in (M32RX_OBJS): Comment out until m32rx port working.
192 * arch.h (HAVE_CPU_M32R{,X}): Delete, moved to m32r-opc.h.
193 * arch.c (machs): Check ifdef HAVE_CPU_FOO for each entry.
196 Tue Jan 20 14:16:02 1998 Nick Clifton <nickc@cygnus.com>
198 * cpux.h: Fix duplicate definition of h_accums field for
199 fmt_53_sadd structure.
202 Tue Jan 20 01:42:17 1998 Doug Evans <devans@seba.cygnus.com>
204 * Makefile.in: Add m32rx objs, and rules to build them.
205 * cpux.h, decodex.h, decodex.c, readx.c, semx.c, modelx.c: New files.
206 * m32rx.c, mloopx.in: New files.
209 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
211 * configure: Regenerated to track ../common/aclocal.m4 changes.
213 Mon Jan 19 14:13:40 1998 Doug Evans <devans@seba.cygnus.com>
215 * arch.c, arch.h, cpuall.h: New files.
216 * arch-defs.h: Deleted.
217 * mloop.in: Renamed from mainloop.in.
218 * Makefile.in: Update.
219 * sem-ops.h: Deleted.
220 * mem-ops.h: Deleted.
221 start-sanitize-cygnus
222 Add cgen support for generating files.
224 (arch): Renamed from CPU.
230 * sem-switch.c: Redone.
231 * sem.c: Renamed from semantics.c, and redone.
232 * m32r-sim.h (PROFILE_COUNT_FILLNOPS): Update.
233 (GETTWI,SETTWI,BRANCH_NEW_PC): Define.
234 * m32r.c (WANT_CPU,WANT_CPU_M32R): Define.
235 (m32r_{fetch,store}_register): New functions.
236 (model_mark_{get,set}_h_gr): Prefix with m32r_.
237 (m32r_model_mark_{busy,unbusy}_reg): Prefix with m32r_.
238 (h_cr_{get,set}): Prefix with m32r_.
239 (do_trap): Fetch state from current_cpu, not current_state.
240 Call sim_engine_halt instead of engine_halt.
241 * sim-if.c (alloc_cpu): New function.
242 (free_state): New function.
243 (sim_open): Call sim_state_alloc, and malloc space for selected cpu
244 type. Call sim_analyze_program.
245 (sim_create_inferior): Handle selected cpu type when setting PC.
247 (sim_resume): Handle m32rx.
249 (sim_stop_reason): Deleted.
250 (print_m32r_misc_cpu): Update.
252 (sim_{fetch,store}_register): Handle m32rx.
254 (sim_{read,write}): Deleted.
255 (sim_engine_illegal_insn): New function.
256 * sim-main.h: Don't include arch-defs.h,sim-core.h,sim-events.h.
257 Include arch.h,cpuall.h. Include cpu.h,decode.h if m32r.
259 Include cpux.h,decodex.h if m32rx.
261 (_sim_cpu): Include member appropriate cpu_data member for the cpu.
262 (M32R_MISC_PROFILE): Renamed from M32R_PROFILE.
263 (sim_state): Delete members core,events,halt_jmp_buf.
264 Change `cpu' member to be a pointer to the cpu's struct, rather than
265 record inside the state struct.
266 * tconfig.in (WITH_DEVICES): Define here.
267 (WITH_FAST,WITH_SEM_SWITCH_{FULL,FAST}): Define for the cpu.
269 Fri Jan 16 12:16:56 1998 Nick Clifton <nickc@cygnus.com>
271 * arch-defs.h (INSN_NAME): Fix typo.
273 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
275 * configure: Regenerated to track ../common/aclocal.m4 changes.
278 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
280 * m32r-sim.h (MSPR_ADDR): New macro.
281 (m32r_mspr_device): Declare.
282 (struct _device): Define.
283 * m32r.c (m32r_mspr_device): New global.
284 (device_{io_{read,write}_buffer,error}): New functions.
285 * mem-ops.h (SETMEM*): Use sim_core_write_map, not read map.
286 * sim-if.c: Delete redundant inclusion of cpu-sim.h.
287 (sim_open): Attach device to handle MSPR register.
288 * sim-main.h (WITH_DEVICES): Define as 1.
291 * configure: Regenerated to track ../common/aclocal.m4 changes.
293 Wed Dec 3 18:08:44 1997 Doug Evans <devans@canuck.cygnus.com>
295 * configure.in (SIM_AC_OPTION_ENVIRONMENT): Call.
296 * configure: Regenerated.
298 Wed Nov 19 12:17:08 1997 Doug Evans <devans@canuck.cygnus.com>
300 * mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}.
301 * sim-if.c (sim_open): Call sim_config.
302 (sim_stop_reason): Update call to sim_signal_to_host.
304 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
306 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
308 Fri Oct 31 18:46:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
310 * sim-if.c (sim_open): Delete dead call to sim_core_attach.
312 Mon Oct 27 12:43:54 1997 Doug Evans <devans@canuck.cygnus.com>
314 * sem-ops.h (U{DIV,MOD}[BHSD]I): Use unsigned division.
316 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
318 * configure: Regenerated to track ../common/aclocal.m4 changes.
320 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
322 * configure: Regenerated to track ../common/aclocal.m4 changes.
324 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
326 * configure: Regenerated to track ../common/aclocal.m4 changes.
328 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
330 * Makefile.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_SCACHE,
331 SIM_DEFAULT_MODEL): Delete, moved to common.
332 (SIM_EXTRA_CFLAGS): Update.
334 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
336 * configure.in (sim_link_links): Configure non-strict memory
339 * configure: Regenerated to track ../common/aclocal.m4 changes.
341 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
343 * configure: Regenerated to track ../common/aclocal.m4 changes.
345 Wed Sep 17 17:44:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
347 * sim-if.c (sim_open): Allocate memory under sim-memopt module
348 using sim_do_commandf.
349 (sim_open): Set magic-number at the start.
350 (sim_do_command): Implement.
352 * sim-main.h (sim_engine_halt): Map onto engine_halt.
354 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
356 * configure: Regenerated to track ../common/aclocal.m4 changes.
358 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
360 * configure: Regenerated to track ../common/aclocal.m4 changes.
362 Fri Sep 5 10:21:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
364 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
366 Thu Sep 4 10:30:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
368 * sim-if.c (sim_open): Pass zero modulo arg to sim_core_attach.
370 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
372 * configure: Regenerated to track ../common/aclocal.m4 changes.
375 Tue Aug 26 10:39:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
377 * sim-if.c (sim_kill): Delete.
378 (sim_create_inferior): Add ABFD argument.
379 (sim_load): Move setting of PC from here.
380 (sim_create_inferior): To here.
381 (sim_load): Delete, use sim-hload.c instead.
383 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
385 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
387 * configure: Regenerated to track ../common/aclocal.m4 changes.
390 Mon Aug 25 15:54:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
392 * sim-if.c (sim_open): Add ABFD argument.
394 Tue Jul 22 10:16:16 1997 Doug Evans <dje@canuck.cygnus.com>
396 * sim-main.h (M32R_DEFAULT_MEM_SIZE): New macro.
397 * sim-if.c (sim_open): Use it.
399 Wed Jun 4 12:48:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
401 * sim-main.h (WITH_ENGINE): Disable the common engine for now.
403 Tue May 27 14:15:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
405 * sim-if.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
406 (sim_write): Ditto for write.
408 * m32r.c (do_trap): Ditto for read/write.
410 Tue May 20 10:18:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
412 * sim-if.c (sim_open): Add callback argument.
413 (sim_set_callbacks, sim_callback): Delete.
414 (sim_load): Set STATE_LOADED_P.
416 Mon May 19 12:55:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
418 * Makefile.in (SIM_OBJS): Link in sim-abort.o as a stub for
421 Mon May 5 12:45:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
423 * sim-if.c (sim_open): Update to reflect changes to core in
425 * mem-ops.h (GETMEMQI, GETMEMHI, GETMEMSI, GETMEMDI, GETMEMUQI,
426 GETMEMUHI, GETMEMUSI, GETMEMUDI, SETMEMQI, SETMEMHI, SETMEMSI,
427 SETMEMDI, SETMEMUQI, SETMEMUHI, SETMEMUSI, SETMEMUDI): Ditto.
429 Sat May 3 08:38:55 1997 Doug Evans <dje@seba.cygnus.com>
431 * decode.c (decode): Add computed goto support.
433 Fri May 2 16:30:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
435 * mem-ops.h: Stub additional core read/write arguments.
437 * sim-main.h: Declare sim_cia - type SI.
438 (struct _sim_cpu): Move base type to end per common.
439 (struct _sim_state): Ditto.
441 Thu May 1 11:15:34 1997 Doug Evans <dje@canuck.cygnus.com>
443 Merge from branch into devo. CGEN generic files moved to common
444 directory. K&R C support is no longer provided.
446 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
448 * configure: Regenerated to track ../common/aclocal.m4 changes.
450 Sat Apr 12 12:57:33 1997 Felix Lee <flee@yin.cygnus.com>
452 * Makefile.in, seman-cache.c: new file, for wingdb build.
453 * sim-alloca.h: fixed for wingdb.
455 Mon Apr 7 13:33:29 1997 Doug Evans <dje@seba.cygnus.com>
457 * decode.c (*): m32r_cgen_insn_table renamed to ..._entries.
458 * mainloop.in: Use CGEN_INSN_INDEX instead of CGEN_INSN_TYPE.
459 * simdefs.h (INSN_NAME): m32r_cgen_insn_table renamed to ..._entries.
461 Fri Apr 4 19:23:12 1997 Doug Evans <dje@canuck.cygnus.com>
463 * cgen-utils.in (ex_illegal): Fill in abuf->length, abuf->addr.
464 (exc_illegal): Likewise.
465 * decode.c (decode_vars): Add decode_illegal.
466 * genmloop.sh: #include "cpu-opc.h".
467 * sem-switch.c (case_INSN_ILLEGAL): Declare.
468 (labels): Add case_INSN_ILLEGAL.
469 (SWITCH): Add INSN_ILLEGAL case.
471 Wed Mar 26 12:34:00 1997 Doug Evans <dje@canuck.cygnus.com>
473 * model.c (model_module): Use 0 not NULL.
475 * genmloop.sh (sim_main_loop): Handle k&r c.
477 * sem-switch.c: Regenerate to get k&r c support.
478 * semantics.c: Likewise.
480 * m32r.c (ADD_{OV,CA}_SI,SUB_{OV,CA}_SI): Renamed to {ADD,SUB}[OC]FSI.
481 (ADDCSI,SUBCSI): New functions.
482 * sem-switch.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
483 * semantics.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
485 * simcache.c (simcache_{install,init,uninstall}): Use
486 DECLARE_MODULE_INSTALL_HANDLER.
487 (simcache_option_handler): Use DECLARE_OPTION_HANDLER.
489 * utils.c: #include "semops.h".
491 Tue Mar 11 14:30:26 1997 Doug Evans <dje@seba.cygnus.com>
493 * profile.c (profile_print_simcache): Fix thinko in printf text.
495 * simdefs.h (struct argbuf): Add member to fmt_20 so it's not empty.
497 Mon Mar 10 11:06:29 1997 Doug Evans <dje@seba.cygnus.com>
499 * m32r.c (h_cr_get): Rewrite.
501 * sem-switch.c (rte): bcarry renamed to bcond.
502 * semantics.c (rte): Likewise.
503 * simdefs.h (CPU_STATE): Likewise.
505 * config.in (HAVE_SYS_TIME_H): Add.
506 * configure.in: Check for sys/time.h.
507 * configure: Regenerated.
508 * utils.c: Include sys/time.h if present.
510 * common.c (sim_parse_args): Account for NULL terminating entry
511 in long_options table.
513 * genmloop.sh (RUN_FAST_P): Don't run fast if tracing.
514 Always use cache if configured in.
515 * mainloop.in (do_extract_insn{16,32}): New functions.
516 (normal,fast): Call them. Handle starting in left slot.
517 * simcache.c (simcache_option_handler): Disallow -c0.
518 * sem-switch.c (TRACE_RESULT): Redefine so no tracing.
520 * profile.c (profile_print_simcache): Fix percentage calc.
522 * Makefile.in (INCLUDE_DEPS): Delete simcommon.h.
524 Sun Mar 9 20:42:17 1997 Doug Evans <dje@seba.cygnus.com>
526 * Makefile.in (COMMON_{PRE,POST}_CONFIG_FRAG): Add delimiters for.
527 (M32R_INCLUDE_DEPS): Use cpu-sim.h instead of m32r-sim.h.
529 (mrun.o): Don't depend on M32R_INCLUDE_DEPS.
530 (sim-if.o,m32r.o,utils.o): Likewise.
531 (common.o): Don't explicitly depend on mod-list.h.
532 (mainloop.c): Pass CPU to genmloop.sh.
533 (stamp-modules): Depend on configure.
534 (decode.o): Depend on decode,h, memops.h, semops.h, cpu-opc.h.
535 (extract.o): Depend on decode.h, memops.h, semops.h.
536 (semantics.o,seman-cache.o): Likewise.
537 (model.o,ops.o): Depend on memops.h.
538 (extr-cache.o): Disable building for the moment.
540 * simcommon.h: Delete, move contents into cgen-sim.h.
541 * cgen-sim.h: Don't include ansidecl.h,bfd.h,simfns.h.
542 (UINT,CGEN_CAT3): Define.
543 ({extract,semantic}_fn_t): Renamed to {EXTRACT,SEMANTIC}_FN.
544 (decode_t): Renamed to DECODE.
546 * simfns.h: Delete, contents moved to memops.h,semops.h.
547 * memops.h: New file.
548 * semops.h: New file.
549 * decode.h: Renamed from semantics.h.
551 * sim-argv.h: New file.
552 * Makefile.in (memory.o,trace.o,profile.o,simcache.o,common): Add
553 dependency of sim-argv.h.
555 * sim-alloca.h: New file.
556 * common.c: Include it.
557 * Makefile.in (common.o): Add dependency.
559 * config.in (HAVE_TIME_H,HAVE_SYS_RESOURCE_H): Add.
560 (HAVE_GETRUSAGE,HAVE_TIME): Add.
561 * configure.in: sinclude ../common/aclocal.m4.
562 Check for headers time.h, sys/resource.h.
563 Check for functions time, getrusage.
564 (sim_link_{files,links}): Add link cpu-opc.h.
565 (sim_profile): Add simcache.
566 (SIM_AC_PROFILE): Add simcache, profile.o.
567 (simcache module): Delete extr-cache.o for now.
568 (--enable-sim-cache): Allow specification of default cache size.
569 * configure: Regenerated.
571 * decode.c: #include cgen-sim.h,memops.h,semops.h,decode.h,
572 cpu-sim.h,cpu-opc.h. Don't include m32r-sim.h.
575 * extract.c: #include cgen-sim.h,decode.h,cpu-sim.h.
576 Don't include m32r-sim.h.
577 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
578 Simplify profiling test with PROFILE_MODEL_P.
579 (mvfc,mvtc): Fix access of control registers.
580 * semantic.c: #include cgen-sim.h,memops.h,semops.h,decode.h,cpu-sim.h.
581 Don't include m32r-sim.h.
582 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
583 Simplify profiling test with PROFILE_MODEL_P.
584 (mvfc,mvtc): Fix access of control registers.
586 * sem-switch.c: New file, for GCC computed goto support.
588 * genmloop.sh: Add #include's of bfd.h,callback.h,cgen-sim.h,
589 memops.h,semops.h,trace.h,cpu-sim.h.
590 (RUN_FAST_P): Change default to run fast if cache size > 0
592 (sim_main_loop): Record execution time.
593 Record instruction count even in fast mode.
594 (init): Allow cpu to provide init code in mainloop.in.
595 (FAST): Define as 0 or 1 depending on fast mode.
596 * mainloop.in (normal): Combine with fast case.
597 Add support for GCC computed gotos. Count simcache hits/misses.
598 (init): Initialize "switch" labels if GNUC.
600 * cgen-utils.in: Don't include opcode/cgen.h.
601 Include cgen-sim.h, cpu-opc.h.
602 * common.c: Don't include simcommon.h,mod-list.h. Include cgen-sim.h.
603 * m32r-sim.h: Don't include mod-list.h
604 (RUN_FAST_P): Delete.
605 * m32r.c: Don't include profile.h. #include ansidecl.h,cgen-sim.h,
606 semops.h,memory.h,trace.h
607 (h_cr_get,h_cr_set): New functions.
608 * memory.c: #include cgen-sim.h,callback.h.
609 * ops.c: Don't include profile.h,m32r-sim.h.
610 Include cgen-sim.h,memops.h,cpu-sim.h.
611 (MEMOPS_DEFINE_INLINE): Renamed from SIMFNS_DEFINE_INLINE.
612 * trace.c: Include cgen-sim.h,cpu-opc.h.
613 * trace.h (trace_insn_{init,fini}): Declare.
615 * model.c: Don't include signal.h,stdlib.h,m32r-sim.h.
616 Include cgen-sim.h,cpu-sim.h,cpu-opc.h.
617 Regenerate to get new insn aliases.
619 * mrun.c: #include "ansidecl.h".
620 (STATE): Use struct sim_state instead.
622 * profile.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
623 Don't include simcommon.h. Include cgen-sim.h,cpu-opc.h.
624 (PROFILE_{READ,WRITE}_MASK): Replace with PROFILE_MEMORY_MASK.
625 (profile_print_simcache): New function.
626 (profile_print): Call it. Print simulator speed stats.
627 * profile.h (PROFILE_{READ,WRITE}_MASK): Replace with
629 (MODULE_PROFILE_SIMCACHE_P): Define.
630 (PROFILE_SIMCACHE_MASK): Define.
631 (PROFILE_COUNT): New members total_insn_count,exec_time.
632 New members simcache_hits,simcache_misses.
633 (PROFILE_SIMCACHE_{HITS,MISSES}): Define.
634 (PROFILE_MODEL_P): New macro.
635 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): New macros.
637 * sim-if.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
638 Don't include simcommon.h,m32r-sim.h. Include cgen-sim.h,cpu-sim.h.
639 (sim_resume): Use USING_SIMCACHE_P instead of RUN_FAST_P.
640 (sim_info): Pass verbose to profile_print.
642 * simcache.c: Include cgen-sim.h,callback.h.
643 (USING_SIMCACHE_P): Replace with SIMCACHE_P.
644 (simcache_option_handler): Ensure cache size at least 2.
645 Allow config time specification of default cache size.
646 * simcache.h (struct simcache): Support GCC computed gotos.
647 (SIMCACHE_DEFAULT_CACHE_SIZE): USe CONFIG_SIM_CACHE_SIZE if defined.
648 (USING_SIMCACHE_P): New macro.
650 * simdefs.h: Don't include m32r-opc.h.
651 (CGEN_MAX_SIM_INSNS): Define.
652 (CPU_STATE): Regenerate.
653 (ARGBUF): Regenerate.
654 (extract,semantic handler decls): Delete, moved to decode.h.
656 * tconfig.in: Don't include cgen-sim.h,m32r-sim.h.
657 (USE_SEM_SWITCH): Define.
659 * utils.c: Include bfd.h,time.h,sys/resource.h.
660 (sim_time_get,sim_time_elapsed): New functions.
661 * cgen-sim.h (SIM_TIME,sim_time_get,sim_time_elapsed): Declare.
663 Fri Jan 31 20:25:06 1997 Doug Evans <dje@canuck.cygnus.com>
665 * configure.in (AC_CHECK_HEADERS): Handle i386-windows.
666 * configure: Regenerated.
667 * model.c: #include <stdlib.h>.
668 * simcache.c: #include "libiberty.h".
669 * simcommon.h (alloca): Handle i386-windows.
671 * common.c: #include libiberty.h.
672 (sim_signal_to_host): Return 5 if wingdb.
674 Mon Jan 27 15:22:49 1997 Doug Evans <dje@seba.cygnus.com>
676 * configure.in (sim_cache): Enabled by default now, pass default
677 cache size to --enable-sim-cache.
678 * simcache.c (simcache_option_handler): Allow -c 0.
680 * simdefs.h,simfns.h: Regenerate
681 * decode.c,extract.c,model.c,ops.c,semantics.c: Regenerate.
683 Tue Jan 21 16:21:01 1997 Doug Evans <dje@seba.cygnus.com>
685 Add model profiling support.
686 * configure.in: Handle --enable-sim-model.
687 (sim_profile): Add model.
688 * Makefile.in (model.o): Add rule.
689 * cgen-sim.h (UNIT,INSN_TIMING,MACH,MODEL): New types.
690 * extract.c (*): Add model profiling support.
691 * m32r.c (model_mark_{get,set}_h_gr): New functions.
692 (model_mark_{busy,unbusy}_reg): New functions.
693 * profile.c (profile_option_handler): Recognize --profile model.
694 (profile_print_model): New function.
695 (profile_print): Call it.
696 * profile.h (MODULE_profile_model,MODULE_PROFILE_MODEL_P): Define.
697 (PROFILE_MODEL_MASK,PROFILE_LABEL_WIDTH): Define.
698 (PROFILE_COUNT): New members cycle_count,cti_stall_count,
699 load_stall_count,taken_count,untaken_count.
700 * semantics.c (*): Add model profiling support.
701 * simcommon.h (struct sim_state): New members mach,model.
702 * simdefs.h (CPU_PROFILE,MODEL_TYPE,UNIT_TYPE): New type.
703 (MAX_MODELS,MAX_UNITS): Define.
704 * tconfig.in (STATE_EXTRA_MEMBERS): Add cpu_profile.
706 * Makefile.in (INCLUDE_DEPS): Add $(SIM_MODULES_HDRS).
707 (stamp-modules): Depend on genmodlist.sh.
708 * common.c (standard_options): Add --max-insns.
709 (copy_argv): New function.
710 * tconfig.in (SIM_HAVE_MAX_INSNS): Define.
711 * genmloop.sh: Allow mainloop.in to contain support code.
712 * mainloop.in: Move do_insn16,do_insn32 here.
713 * m32r.c (do_trap): Handle SYS_argvlen,SYS_argv,SYS_read.
714 * sim-if.c (sim_open): Don't set max insn count.
715 (sim_create_inferior): Save argv,envp.
716 * simcommon.h (struct sim_state): New members argv,envp.
717 * simdefs.h ([GS]ETTWI,[GS]ETTUWI,[GS]ETTAI): Define.
718 ([GS]ETMEMWI,[GS]ETMEMUWI,[GS]ETMEMAI): Define.
719 (ARGBUF): New members h_gr_get, h_gr_set.
720 * trace.c (trace_insn_init,trace_insn_fini): New functions.
721 (trace_printf): Print to buffer, output later by trace_insn_fini.
722 * trace.h (TRACE_INSN_{INIT,FINI}): Define.
724 Thu Dec 19 16:01:59 1996 Doug Evans <dje@canuck.cygnus.com>
726 * configure.in (AC_FUNC_ALLOCA): Call.
727 * configure: Regenerate.
728 * config.h (HAVE_ALLOCA_H): Add.
729 * simcommon.h: Add alloca support.
730 (DECLARE_MODULE_INSTALL_HANDLER): Define.
731 (DECLARE_OPTION_HANDLER): Define.
732 (MEM_FN): Declare using PARAMS.
733 (DECLARE_MEM_FN): Define.
734 * trace.c (trace_result): Tweak for !STDC.
735 * cgen-sim.h (UDI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
736 * cgen-utils.in (disasm_sprintf): Fix va_arg call in !STDC case.
737 * common.c (sim_print_help_fn): Use PARAMS.
738 (standard_option_handler): Fix decl for !STDC systems.
739 * memory.c: #include <stdio.h>
740 (mem_flat_{install,init,uninstall}): Fix decl for !STDC systems.
741 (mem_flat_{read,write},mem_flat_option_handler): Likewise.
742 * profile.c (profile_install): Likewise.
743 (profile_option_handler): Likewise.
745 Thu Dec 19 11:06:19 1996 Doug Evans <dje@seba.cygnus.com>
747 * semantics.c (*): Don't suffix big unsigned numbers with "U".
748 Prefix them with 0x instead.
750 * cgen-sim.h (DI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
751 (SLADI,SRADI,CONVSIDI,CONVDISI): Delete, moved to simfns.h.
752 * semantics.c (machi,maclo,macwhi,macwlo,mulhi,mullo): Implement.
753 (mulwhi,mulwlo,mvtachi,mvtaclo,rac,rach): Implement.
754 * simfns.h: Add decls for functional DI,UDI,SF,DF,XF,TF support.
755 Add support for boolean and/or.
756 * utils.c: Redo naming of DI functional support.
757 (ANDDI,ORDI,ADDDI,MULDI,GEDI,LEDI,CONVHIDI): New functions.
759 Tue Dec 17 12:57:48 1996 Doug Evans <dje@seba.cygnus.com>