* Makefile.in (INCLUDE_DEPS): Add include/opcode/cgen.h.
[binutils-gdb.git] / sim / m32r / ChangeLog
1 Mon Aug 3 12:59:17 1998 Doug Evans <devans@seba.cygnus.com>
2
3 * Makefile.in (INCLUDE_DEPS): Add include/opcode/cgen.h.
4
5 * sim-if.c (sim_open): Open opcode table.
6 (sim_close): Close it.
7
8 start-sanitize-m32rx
9 Tue Jul 28 13:06:19 1998 Doug Evans <devans@canuck.cygnus.com>
10
11 Add support for new versions of mulwhi,mulwlo,macwhi,macwlo that
12 accept an accumulator choice.
13 * cpux.c,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
14
15 end-sanitize-m32rx
16 Fri Jul 24 13:00:29 1998 Doug Evans <devans@canuck.cygnus.com>
17
18 * m32r.c: Include cgen-mem.h.
19 * traps.c (m32r_trap): Tweak for -Wall.
20 start-sanitize-m32rx
21 * m32rx.c: Include cgen-mem.h.
22 * semx.c: Regenerate, get -Wall cleanups.
23 end-sanitize-m32rx
24
25 Tue Jul 21 16:53:10 1998 Doug Evans <devans@seba.cygnus.com>
26
27 * cpu.h,extract.c: Regenerate. pc-rel calcs done on f_dispNN now.
28 start-sanitize-m32rx
29 * cpux.h,readx.c,semx.c: Ditto.
30 end-sanitize-m32rx
31
32 Wed Jul 1 16:51:15 1998 Doug Evans <devans@seba.cygnus.com>
33
34 * Makefile.in: cgen_maint -> CGEN_MAINT.
35 * configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
36 * configure: Regenerate.
37 * arch.c,arch.h,cpuall.h: Regenerate.
38 * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
39 * sem-switch.c,sem.c: Regenerate.
40 start-sanitize-m32rx
41 * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
42 * semx.c: Regenerate.
43 * mloopx.in (icount): Moved here from genmloop.sh.
44 end-sanitize-m32rx
45
46 Sat Jun 13 07:49:23 1998 Doug Evans <devans@fallis.cygnus.com>
47
48 * m32r-sim.h (M32R_MISC_PROFILE): New members insn_cycles, cti_stall,
49 load_stall,biggest_cycles.
50 * m32r.c (m32r_model_mark_get_h_gr): Update.
51 (m32r_model_init_insn_cycles,m32r_model_update_insn_cycles): New fns.
52 (m32r_model_record_cti,m32r_model_record_cycles): New functions.
53 * mloop.in: Call cycle init/update fns.
54 * model.c: Regenerate.
55 start-sanitize-m32rx
56 * m32rx.c (m32rx_model_mark_get_h_gr): Update.
57 * mloopx.in: Call cycle init/update fns.
58 * modelx.c: Regenerate.
59 end-sanitize-m32rx
60
61 Thu Jun 11 23:39:53 1998 Doug Evans <devans@seba.cygnus.com>
62
63 * Makefile.in (stamp-{arch,cpu,decode}): Pass CGEN_FLAGS_TO_PASS
64 to recursive makes.
65 start-sanitize-m32rx
66 (stamp-{xcpu,xdecode}): Ditto.
67 end-sanitize-m32rx
68
69 Wed Jun 10 17:39:29 1998 Doug Evans <devans@canuck.cygnus.com>
70
71 * traps.c: New file. Trap support moved here from sim-if.c.
72 * Makefile.in (SIM_OBJS): Add traps.o
73 * sim-if.c: Don't include targ-vals.h.
74 (sim_engine_illegal_insn): Moved to traps.c
75 * sim-main.h (SIM_CORE_SIGNAL): Define.
76 (m32r_core_signal): Declare.
77 * m32r-sim.h (m32r_trap): Declare.
78
79 * devices.c (device_io_read_buffer): Handle cache purging via MCCR
80 register.
81
82 * m32r-sim.h (M32R_MISC_PROFILE): Move here from sim-main.h.
83 (PROFILE_COUNT_SHORTINSNS,PROFILE_COUNT_LONGINSNS): New macros.
84 (TRAP_SYSCALL,TRAP_BREAKPOINT): New macros.
85
86 * extract.c,sem-switch.c,sem.c: Regenerate.
87 start-sanitize-m32rx
88 * cpux.h,readx.c,semx.c: Regenerate.
89 end-sanitize-m32rx
90
91 Wed May 20 00:10:40 1998 Doug Evans <devans@seba.cygnus.com>
92
93 * m32r-sim.h (PROFILE_COUNT_PARINSNS): New macro.
94 * mloopx.in (extract): Set abuf.addr for proper fill nop counting.
95 (execute): Count parallel insns.
96 * sim-if.c (print_m32r_misc_cpu): Print count.
97 * sim-main.h (M32R_MISC_PROFILE): New member parallel_count.
98
99 Zero bottom two bits of pc in jmp,jl insns.
100 * sem.c,sem-switch.c: Regenerate.
101 start-sanitize-m32rx
102 * semx.c: Regenerate.
103 end-sanitize-m32rx
104
105 Tue May 19 16:45:33 1998 Doug Evans <devans@seba.cygnus.com>
106
107 * sim-if.c (do_trap): Treat traps 2-15 as hardware does.
108
109 Sat May 16 13:04:30 1998 Doug Evans <devans@seba.cygnus.com>
110
111 * sim-if.c (sim_stop): Update call to @cpu@_engine_stop.
112 (sim_sync_stop): New function.
113
114 Fri May 15 16:43:27 1998 Doug Evans <devans@seba.cygnus.com>
115
116 * Makefile.in (devices.o): Add dependencies.
117
118 * arch.h,cpu.c,cpu.h,cpuall.h: Regenerate.
119 * sem-switch.c,sem.c: Regenerate.
120 * mloop.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
121 start-sanitize-m32rx
122 * cpux.c,cpux.h,modelx.c,semx.c: Regenerate.
123 * m32rx.c (m32rx_model_mark_{busy,unbusy}_reg): New functions.
124 * mloopx.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
125 Fix pc value passed to TRACE_INSN for second parallel insn.
126 end-sanitize-m32rx
127
128 Thu May 7 02:51:35 1998 Doug Evans <devans@seba.cygnus.com>
129
130 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
131
132 Wed May 6 14:51:39 1998 Doug Evans <devans@seba.cygnus.com>
133
134 * arch.h,arch.c,cpu.h,cpuall.h: Regenerate, tweaks mostly.
135 * model.c: Ditto. Reorganize model/mach data.
136 start-sanitize-m32rx
137 * cpux.h: Ditto.
138 * modelx.c: Ditto.
139 end-sanitize-m32rx
140
141 * Makefile.in (m32r.o,mloop.o,cpu.o,model.o): Add decode.h dependency.
142 start-sanitize-m32rx
143 (m32rx.o,mloopx.o,cpux.o,modelx.o): Add decodex.h dependency.
144 end-sanitize-m32rx
145 * decode.c,decode.h: Regenerate, introduces IDESC table.
146 * mloop.in (extract16,extract32): Add IDESC support.
147 Update names of semantic handler member names.
148 (execute): Ditto. Delete call to PROFILE_COUNT_INSN.
149 start-sanitize-m32rx
150 * decodex.c,decodex.h: Regenerate, introduces IDESC table.
151 * mloopx.in: Add IDESC support.
152 Update names of semantic handler member names.
153 Delete call to PROFILE_COUNT_INSN.
154 end-sanitize-m32rx
155
156 * sem-switch.c: Regenerate. Redo computed goto label handling.
157 * sem.c: Regenerate. Call PROFILE_COUNT_INSN.
158 start-sanitize-m32rx
159 * readx.c: Regenerate. Redo computed goto label handling.
160 * semx.c: Regenerate. Call PROFILE_COUNT_INSN. Finish profiling
161 support.
162 * Makefile.in (stamp-xcpu): Turn on profiling support.
163 end-sanitize-m32rx
164
165 * m32r.c (m32r_fetch_register): Change result type and args to
166 conform to sim_fetch_register interface.
167 (m32r_store_register): Ditto for sim_store_register interface.
168 start-sanitize-m32rx
169 * m32rx.c (m32rx_fetch_register): Change result type and args to
170 conform to sim_fetch_register interface.
171 (m32rx_store_register): Ditto for sim_store_register interface.
172 end-sanitize-m32rx
173
174 * sim-if.c (alloc_cpu): Delete.
175 (free_state): Uninstall modules here ...
176 (sim_open): ... and not here. Call sim_cpu_alloc_all.
177 Set default architecture/model if not specified.
178 (sim_fetch_register,sim_store_register): Rewrite.
179
180 * sim-if.c (h_pc_get,h_pc_set): Delete. Renamed to sim_pc_[gs]et
181 and moved to common/sim-cpu.c.
182 (sim_create_inferior): Update.
183 (do_trap): Update.
184 * sim-main.h (h_pc_get,h_pc_set): Delete.
185
186 * sim-main.h (sim_cia): Change to USI.
187 (sim_cpu): Move m32r_misc_profile before machine generated part.
188
189 Fri May 1 18:25:41 1998 Doug Evans <devans@seba.cygnus.com>
190
191 * Makefile.in: Replace @MAINT@ with $(CGEN_MAINT).
192 (CGEN_MAINT): New variable.
193 * configure.in: Add support for --enable-cgen-maint.
194 * configure: Regenerate.
195
196 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
197
198 * configure: Regenerated to track ../common/aclocal.m4 changes.
199
200 Tue Apr 28 18:05:53 1998 Nick Clifton <nickc@cygnus.com>
201
202 * model.c: Rebuilt.
203 start-sanitize-m32rx
204 * modelx.c: Rebuilt.
205 end-sanitize-m32rx
206
207 Mon Apr 27 15:36:30 1998 Doug Evans <devans@seba.cygnus.com>
208
209 * cpu.h,model.c,sem-switch.c,sem.c: Regenerated. Mostly comment
210 and variable renaming due to macro insn additions.
211 * mloop.in: Update to use CGEN_INSN_NUM.
212 start-sanitize-m32rx
213 * cpux.h,modelx.c,readx.c,semx.c: Regenerated.
214 * mloopx.in: Update to use CGEN_INSN_NUM.
215 end-sanitize-m32rx
216
217 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
218
219 * configure: Regenerated to track ../common/aclocal.m4 changes.
220 * config.in: Ditto.
221
222 Sun Apr 26 15:20:05 1998 Tom Tromey <tromey@cygnus.com>
223
224 * acconfig.h: New file.
225 * configure.in: Reverted change of Apr 24; use sinclude again.
226
227 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
228
229 * configure: Regenerated to track ../common/aclocal.m4 changes.
230 * config.in: Ditto.
231
232 Fri Apr 24 11:19:26 1998 Tom Tromey <tromey@cygnus.com>
233
234 * configure.in: Don't call sinclude.
235
236 Mon Apr 20 16:12:35 1998 Doug Evans <devans@canuck.cygnus.com>
237
238 * cpu.c,sem.c,sem-switch.c: Regenerate. From
239 - cgen/m32r.cpu (h-accum): Add attribute FUN-ACCESS.
240 * m32r.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
241 #include cgen-ops.h.
242 start-sanitize-m32rx
243 * cpux.c,readx.c,semx.c: Regenerate.
244 * m32rx.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
245 #include cgen-ops.h. Delete inclusion of several unnecessary headers.
246 (m32r_h_accums_get): Sign extend top 8 bits.
247 end-sanitize-m32rx
248
249 start-sanitize-m32rx
250 Tue Apr 14 14:04:07 1998 Doug Evans <devans@canuck.cygnus.com>
251
252 * semx.c: Regenerate.
253
254 end-sanitize-m32rx
255 Fri Apr 10 18:22:41 1998 Doug Evans <devans@canuck.cygnus.com>
256
257 * cpu.h,decode.c,decode.h,extract.c,sem.c,sem-switch.c: Regenerate.
258 start-sanitize-m32rx
259 * cpux.h,decodex.c,decodex.h,readx.c,semx.c: Regenerate.
260 end-sanitize-m32rx
261
262 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
263
264 * configure: Regenerated to track ../common/aclocal.m4 changes.
265
266 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
267
268 * configure: Regenerated to track ../common/aclocal.m4 changes.
269
270 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
271
272 * configure: Regenerated to track ../common/aclocal.m4 changes.
273
274 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
275
276 * configure: Regenerated to track ../common/aclocal.m4 changes.
277
278 Sat Mar 14 20:53:36 1998 Doug Evans <devans@seba.cygnus.com>
279
280 * config.in (HAVE_FCNTL_H): Add.
281 * configure: Regenerate.
282 * Makefile.in (SIM_OBJS): Add devices.o.
283 * m32r-sim.h (m32r_devices): Renamed from m32r_mspr_device.
284 (UART_*): Define m32r serial port parameters.
285 (M32R_DEVICE_ADDR,M32R_DEVICE_LEN): Define.
286 * m32r.c (device_io_{read,write}_buffer,device_error): Move from here,
287 * devices.c: To here.
288 * sim-if.c: Don't include signal.h,sim-core.h.
289 (sim_open): Use M32R_DEVICE_{ADDR,LEN} in sim_core_attach call.
290 (sim_resume): Call sim_module_{resume,suspend}.
291 * m32r.c (m32r_h_cr_{get,set}): Use register number enums.
292
293 * tconfig.in (SIM_HANDLES_LMA): Define.
294
295 * sim-if.c (do_trap): Result is new pc.
296 Handle --environment=operating.
297 * sem-switch.c,sem.c: Regenerate.
298 start-sanitize-m32rx
299 * semx.c: Regenerate.
300 end-sanitize-m32rx
301
302 Wed Mar 11 14:07:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
303
304 * sim-if.c (syscall_read_mem, syscall_write_mem): Replace
305 sim_core_*_map with read_map, write_map, exec_map resp.
306
307 Wed Mar 4 11:36:51 1998 Doug Evans <devans@seba.cygnus.com>
308
309 * Makefile.in (SIM_EXTRA_DEPS): Add cpu-opc.h.
310 (arch.o): Delete cpu-opc.h dependency.
311 (decode.o,model.o): Likewise.
312 start-sanitize-m32rx
313 (decodex.o,modelx.o): Likewise.
314 end-sanitize-m32rx
315
316 * cpu.h,model.c,sem-switch.c,sem.c: Regenerate.
317 start-sanitize-m32rx
318 * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
319 end-sanitize-m32rx
320
321 Thu Feb 26 18:38:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
322
323 * sim-if.c (sim_open): Initialize PROFILE_INFO_CPU_CALLBACK.
324
325 * sim-if.c (sim_info): Delete.
326
327 start-sanitize-m32rx
328 Fri Feb 27 10:14:29 1998 Doug Evans <devans@canuck.cygnus.com>
329
330 * mloopx.in: Fix handling of branch in parallel with another insn.
331 * semx.c: Regenerate.
332
333 end-sanitize-m32rx
334 Mon Feb 23 13:30:46 1998 Doug Evans <devans@seba.cygnus.com>
335
336 * sim-main.h: #include symcat.h.
337 * m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg.
338 (NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros.
339 * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
340 * sem.c,sem-switch.c: Regenerate.
341 start-sanitize-m32rx
342 * m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec.
343 * mloopx.in: Rewrite.
344 * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
345 end-sanitize-m32rx
346
347 Mon Feb 23 12:27:52 1998 Nick Clifton <nickc@cygnus.com>
348
349 * m32r.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
350 in the backup PC register.
351 start-sanitize-m32rx
352 * m32rx.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
353 in the backup PC register.
354 end-sanitize-m32rx
355
356 Thu Feb 19 16:39:35 1998 Doug Evans <devans@canuck.cygnus.com>
357
358 * m32r.c (do_lock,do_unlock): Delete.
359 * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
360 * sem.c,sem-switch.c: Regenerate.
361 start-sanitize-m32rx
362 * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
363 end-sanitize-m32rx
364
365 Tue Feb 17 18:18:10 1998 Doug Evans <devans@seba.cygnus.com>
366
367 * Makefile.in (M32R_OBJS): Add cpu.o.
368 (cpu.o): Add rule for.
369 (NL_TARGET): Define.
370 * configure.in: Add AC_CHECK_PROG(SCHEME).
371 * cpu.c: New file.
372 * cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
373 * sem-switch.c,sem.c: Regenerate.
374 * mloop.in (execute): Update call to semantic fn.
375 start-sanitize-m32rx
376 (M32RX_OBJS): Add cpux.o.
377 (cpux.o): Add rule for.
378 cpux.c: New file.
379 * cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
380 * m32rx.c (m32rx_h_accums_{get,set}): Rewrite.
381 (m32rx_h_cr_{get,set}): New functions.
382 (m32rx_h_accums_{get,set}): New functions.
383 * mloopx.in: Rewrite main loop.
384 end-sanitize-m32rx
385
386 * m32r.c (do_trap): Move from here.
387 * sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support.
388 (sim_create_inferior): Use h_pc_set.
389 (h_pc_{get,set}): New functions.
390 (h_gr_{get,set}): New functions.
391 (syscall_{read,write}_mem): New functions.
392 * sim-main.h (h_{gr,pc}_{get,set}): Declare.
393
394 Tue Feb 17 12:44:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
395
396 * sim-if.c (sim_store_register, sim_fetch_register): Pass in
397 length parameter. Return -1.
398 (sim_create_inferior): Pass 4 sim_store_register.
399
400 Wed Feb 11 19:53:48 1998 Doug Evans <devans@canuck.cygnus.com>
401
402 * sim-main.h (CIA_GET,CIA_SET): Provide dummy definitions for now.
403
404 * decode.c, decode.h, sem.c, sem-switch.c, model.c: Regenerate.
405 start-sanitize-m32rx
406 * cpux.c, decodex.c, decodex.h, readx.c, semx.c, modelx.c: Regenerate.
407 end-sanitize-m32rx
408
409 Mon Feb 9 19:41:54 1998 Doug Evans <devans@canuck.cygnus.com>
410
411 * decode.c, sem.c: Regenerate.
412 start-sanitize-m32rx
413 * cpux.h, decodex.c, readx.c, semx.c: Regenerate.
414 * m32rx.c (m32rx_h_accums_set): New function.
415 (m32rx_model_mark_[gs]et_h_gr): New function.
416 * mloopx.in: Rewrite.
417 * Makefile.in (mloopx.o): Build with -parallel.
418 * sim-main.h (_sim_cpu): Delete member `par_exec'.
419 * tconfig.in (WITH_SEM_SWITCH_FULL): Define as 0 for m32rx.
420 end-sanitize-m32rx
421
422 Thu Feb 5 12:44:31 1998 Doug Evans <devans@seba.cygnus.com>
423
424 * Makefile.in (m32r.o): Depend on cpu.h
425 (extract.o): Pass -DSCACHE_P.
426 * mloop.in (extract{16,32}): Update call to m32r_decode.
427 * arch.h,cpu.h,cpuall.h,decode.[ch]: Regenerate.
428 * extract.c,model.c,sem-switch.c,sem.c: Regenerate.
429 * sim-main.h: #include "ansidecl.h".
430 Don't include cpu-opc.h, done by arch.h.
431 start-sanitize-m32rx
432 * Makefile.in (M32RX_OBJS): Build m32rx support now.
433 (m32rx.o): New rule.
434 * m32r-sim.h (m32rx_h_cr_[gs]et): Define.
435 * m32rx.c (m32rx_{fetch,store}_register): Update {get,set} of PC.
436 (m32rx_h_accums_get): New function.
437 * mloopx.in: Update call to m32rx_decode. Rewrite exec loop.
438 * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
439 end-sanitize-m32rx
440
441 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
442
443 * configure: Regenerated to track ../common/aclocal.m4 changes.
444
445 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
446
447 * configure: Regenerated to track ../common/aclocal.m4 changes.
448
449 start-sanitize-m32rx
450 Thu Jan 29 11:22:00 1998 Doug Evans <devans@canuck.cygnus.com>
451
452 * Makefile.in (M32RX_OBJS): Comment out until m32rx port working.
453 * arch.h (HAVE_CPU_M32R{,X}): Delete, moved to m32r-opc.h.
454 * arch.c (machs): Check ifdef HAVE_CPU_FOO for each entry.
455
456 end-sanitize-m32rx
457 Tue Jan 20 14:16:02 1998 Nick Clifton <nickc@cygnus.com>
458
459 * cpux.h: Fix duplicate definition of h_accums field for
460 fmt_53_sadd structure.
461
462 start-sanitize-m32rx
463 Tue Jan 20 01:42:17 1998 Doug Evans <devans@seba.cygnus.com>
464
465 * Makefile.in: Add m32rx objs, and rules to build them.
466 * cpux.h, decodex.h, decodex.c, readx.c, semx.c, modelx.c: New files.
467 * m32rx.c, mloopx.in: New files.
468
469 end-sanitize-m32rx
470 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
471
472 * configure: Regenerated to track ../common/aclocal.m4 changes.
473
474 Mon Jan 19 14:13:40 1998 Doug Evans <devans@seba.cygnus.com>
475
476 * arch.c, arch.h, cpuall.h: New files.
477 * arch-defs.h: Deleted.
478 * mloop.in: Renamed from mainloop.in.
479 * Makefile.in: Update.
480 * sem-ops.h: Deleted.
481 * mem-ops.h: Deleted.
482 start-sanitize-cygnus
483 Add cgen support for generating files.
484 end-sanitize-cygnus
485 (arch): Renamed from CPU.
486 * cpu.h: New file.
487 * decode.c: Redone.
488 * decode.h: Redone.
489 * extract.c: Redone.
490 * model.c: Redone.
491 * sem-switch.c: Redone.
492 * sem.c: Renamed from semantics.c, and redone.
493 * m32r-sim.h (PROFILE_COUNT_FILLNOPS): Update.
494 (GETTWI,SETTWI,BRANCH_NEW_PC): Define.
495 * m32r.c (WANT_CPU,WANT_CPU_M32R): Define.
496 (m32r_{fetch,store}_register): New functions.
497 (model_mark_{get,set}_h_gr): Prefix with m32r_.
498 (m32r_model_mark_{busy,unbusy}_reg): Prefix with m32r_.
499 (h_cr_{get,set}): Prefix with m32r_.
500 (do_trap): Fetch state from current_cpu, not current_state.
501 Call sim_engine_halt instead of engine_halt.
502 * sim-if.c (alloc_cpu): New function.
503 (free_state): New function.
504 (sim_open): Call sim_state_alloc, and malloc space for selected cpu
505 type. Call sim_analyze_program.
506 (sim_create_inferior): Handle selected cpu type when setting PC.
507 start-sanitize-m32rx
508 (sim_resume): Handle m32rx.
509 end-sanitize-m32rx
510 (sim_stop_reason): Deleted.
511 (print_m32r_misc_cpu): Update.
512 start-sanitize-m32rx
513 (sim_{fetch,store}_register): Handle m32rx.
514 end-sanitize-m32rx
515 (sim_{read,write}): Deleted.
516 (sim_engine_illegal_insn): New function.
517 * sim-main.h: Don't include arch-defs.h,sim-core.h,sim-events.h.
518 Include arch.h,cpuall.h. Include cpu.h,decode.h if m32r.
519 start-sanitize-m32rx
520 Include cpux.h,decodex.h if m32rx.
521 end-sanitize-m32rx
522 (_sim_cpu): Include member appropriate cpu_data member for the cpu.
523 (M32R_MISC_PROFILE): Renamed from M32R_PROFILE.
524 (sim_state): Delete members core,events,halt_jmp_buf.
525 Change `cpu' member to be a pointer to the cpu's struct, rather than
526 record inside the state struct.
527 * tconfig.in (WITH_DEVICES): Define here.
528 (WITH_FAST,WITH_SEM_SWITCH_{FULL,FAST}): Define for the cpu.
529
530 Fri Jan 16 12:16:56 1998 Nick Clifton <nickc@cygnus.com>
531
532 * arch-defs.h (INSN_NAME): Fix typo.
533
534 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
535
536 * configure: Regenerated to track ../common/aclocal.m4 changes.
537 * config.in: Ditto.
538
539 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
540
541 * m32r-sim.h (MSPR_ADDR): New macro.
542 (m32r_mspr_device): Declare.
543 (struct _device): Define.
544 * m32r.c (m32r_mspr_device): New global.
545 (device_{io_{read,write}_buffer,error}): New functions.
546 * mem-ops.h (SETMEM*): Use sim_core_write_map, not read map.
547 * sim-if.c: Delete redundant inclusion of cpu-sim.h.
548 (sim_open): Attach device to handle MSPR register.
549 * sim-main.h (WITH_DEVICES): Define as 1.
550 Include cpu-sim.h.
551
552 * configure: Regenerated to track ../common/aclocal.m4 changes.
553
554 Wed Dec 3 18:08:44 1997 Doug Evans <devans@canuck.cygnus.com>
555
556 * configure.in (SIM_AC_OPTION_ENVIRONMENT): Call.
557 * configure: Regenerated.
558
559 Wed Nov 19 12:17:08 1997 Doug Evans <devans@canuck.cygnus.com>
560
561 * mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}.
562 * sim-if.c (sim_open): Call sim_config.
563 (sim_stop_reason): Update call to sim_signal_to_host.
564
565 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
566
567 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
568
569 Fri Oct 31 18:46:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
570
571 * sim-if.c (sim_open): Delete dead call to sim_core_attach.
572
573 Mon Oct 27 12:43:54 1997 Doug Evans <devans@canuck.cygnus.com>
574
575 * sem-ops.h (U{DIV,MOD}[BHSD]I): Use unsigned division.
576
577 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
578
579 * configure: Regenerated to track ../common/aclocal.m4 changes.
580
581 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
582
583 * configure: Regenerated to track ../common/aclocal.m4 changes.
584
585 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
586
587 * configure: Regenerated to track ../common/aclocal.m4 changes.
588
589 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
590
591 * Makefile.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_SCACHE,
592 SIM_DEFAULT_MODEL): Delete, moved to common.
593 (SIM_EXTRA_CFLAGS): Update.
594
595 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
596
597 * configure.in (sim_link_links): Configure non-strict memory
598 alignment.
599
600 * configure: Regenerated to track ../common/aclocal.m4 changes.
601
602 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
603
604 * configure: Regenerated to track ../common/aclocal.m4 changes.
605
606 Wed Sep 17 17:44:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
607
608 * sim-if.c (sim_open): Allocate memory under sim-memopt module
609 using sim_do_commandf.
610 (sim_open): Set magic-number at the start.
611 (sim_do_command): Implement.
612
613 * sim-main.h (sim_engine_halt): Map onto engine_halt.
614
615 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
616
617 * configure: Regenerated to track ../common/aclocal.m4 changes.
618
619 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
620
621 * configure: Regenerated to track ../common/aclocal.m4 changes.
622
623 Fri Sep 5 10:21:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
624
625 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
626
627 Thu Sep 4 10:30:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
628
629 * sim-if.c (sim_open): Pass zero modulo arg to sim_core_attach.
630
631 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
632
633 * configure: Regenerated to track ../common/aclocal.m4 changes.
634 * config.in: Ditto.
635
636 Tue Aug 26 10:39:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
637
638 * sim-if.c (sim_kill): Delete.
639 (sim_create_inferior): Add ABFD argument.
640 (sim_load): Move setting of PC from here.
641 (sim_create_inferior): To here.
642 (sim_load): Delete, use sim-hload.c instead.
643
644 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
645
646 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
647
648 * configure: Regenerated to track ../common/aclocal.m4 changes.
649 * config.in: Ditto.
650
651 Mon Aug 25 15:54:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
652
653 * sim-if.c (sim_open): Add ABFD argument.
654
655 Tue Jul 22 10:16:16 1997 Doug Evans <dje@canuck.cygnus.com>
656
657 * sim-main.h (M32R_DEFAULT_MEM_SIZE): New macro.
658 * sim-if.c (sim_open): Use it.
659
660 Wed Jun 4 12:48:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
661
662 * sim-main.h (WITH_ENGINE): Disable the common engine for now.
663
664 Tue May 27 14:15:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
665
666 * sim-if.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
667 (sim_write): Ditto for write.
668
669 * m32r.c (do_trap): Ditto for read/write.
670
671 Tue May 20 10:18:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
672
673 * sim-if.c (sim_open): Add callback argument.
674 (sim_set_callbacks, sim_callback): Delete.
675 (sim_load): Set STATE_LOADED_P.
676
677 Mon May 19 12:55:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
678
679 * Makefile.in (SIM_OBJS): Link in sim-abort.o as a stub for
680 sim_engine_abort.
681
682 Mon May 5 12:45:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
683
684 * sim-if.c (sim_open): Update to reflect changes to core in
685 ../common/.
686 * mem-ops.h (GETMEMQI, GETMEMHI, GETMEMSI, GETMEMDI, GETMEMUQI,
687 GETMEMUHI, GETMEMUSI, GETMEMUDI, SETMEMQI, SETMEMHI, SETMEMSI,
688 SETMEMDI, SETMEMUQI, SETMEMUHI, SETMEMUSI, SETMEMUDI): Ditto.
689
690 Sat May 3 08:38:55 1997 Doug Evans <dje@seba.cygnus.com>
691
692 * decode.c (decode): Add computed goto support.
693
694 Fri May 2 16:30:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
695
696 * mem-ops.h: Stub additional core read/write arguments.
697
698 * sim-main.h: Declare sim_cia - type SI.
699 (struct _sim_cpu): Move base type to end per common.
700 (struct _sim_state): Ditto.
701
702 Thu May 1 11:15:34 1997 Doug Evans <dje@canuck.cygnus.com>
703
704 Merge from branch into devo. CGEN generic files moved to common
705 directory. K&R C support is no longer provided.
706
707 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
708
709 * configure: Regenerated to track ../common/aclocal.m4 changes.
710
711 Sat Apr 12 12:57:33 1997 Felix Lee <flee@yin.cygnus.com>
712
713 * Makefile.in, seman-cache.c: new file, for wingdb build.
714 * sim-alloca.h: fixed for wingdb.
715
716 Mon Apr 7 13:33:29 1997 Doug Evans <dje@seba.cygnus.com>
717
718 * decode.c (*): m32r_cgen_insn_table renamed to ..._entries.
719 * mainloop.in: Use CGEN_INSN_INDEX instead of CGEN_INSN_TYPE.
720 * simdefs.h (INSN_NAME): m32r_cgen_insn_table renamed to ..._entries.
721
722 Fri Apr 4 19:23:12 1997 Doug Evans <dje@canuck.cygnus.com>
723
724 * cgen-utils.in (ex_illegal): Fill in abuf->length, abuf->addr.
725 (exc_illegal): Likewise.
726 * decode.c (decode_vars): Add decode_illegal.
727 * genmloop.sh: #include "cpu-opc.h".
728 * sem-switch.c (case_INSN_ILLEGAL): Declare.
729 (labels): Add case_INSN_ILLEGAL.
730 (SWITCH): Add INSN_ILLEGAL case.
731
732 Wed Mar 26 12:34:00 1997 Doug Evans <dje@canuck.cygnus.com>
733
734 * model.c (model_module): Use 0 not NULL.
735
736 * genmloop.sh (sim_main_loop): Handle k&r c.
737
738 * sem-switch.c: Regenerate to get k&r c support.
739 * semantics.c: Likewise.
740
741 * m32r.c (ADD_{OV,CA}_SI,SUB_{OV,CA}_SI): Renamed to {ADD,SUB}[OC]FSI.
742 (ADDCSI,SUBCSI): New functions.
743 * sem-switch.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
744 * semantics.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
745
746 * simcache.c (simcache_{install,init,uninstall}): Use
747 DECLARE_MODULE_INSTALL_HANDLER.
748 (simcache_option_handler): Use DECLARE_OPTION_HANDLER.
749
750 * utils.c: #include "semops.h".
751
752 Tue Mar 11 14:30:26 1997 Doug Evans <dje@seba.cygnus.com>
753
754 * profile.c (profile_print_simcache): Fix thinko in printf text.
755
756 * simdefs.h (struct argbuf): Add member to fmt_20 so it's not empty.
757
758 Mon Mar 10 11:06:29 1997 Doug Evans <dje@seba.cygnus.com>
759
760 * m32r.c (h_cr_get): Rewrite.
761 (h_cr_set): Rewrite.
762 * sem-switch.c (rte): bcarry renamed to bcond.
763 * semantics.c (rte): Likewise.
764 * simdefs.h (CPU_STATE): Likewise.
765
766 * config.in (HAVE_SYS_TIME_H): Add.
767 * configure.in: Check for sys/time.h.
768 * configure: Regenerated.
769 * utils.c: Include sys/time.h if present.
770
771 * common.c (sim_parse_args): Account for NULL terminating entry
772 in long_options table.
773
774 * genmloop.sh (RUN_FAST_P): Don't run fast if tracing.
775 Always use cache if configured in.
776 * mainloop.in (do_extract_insn{16,32}): New functions.
777 (normal,fast): Call them. Handle starting in left slot.
778 * simcache.c (simcache_option_handler): Disallow -c0.
779 * sem-switch.c (TRACE_RESULT): Redefine so no tracing.
780
781 * profile.c (profile_print_simcache): Fix percentage calc.
782
783 * Makefile.in (INCLUDE_DEPS): Delete simcommon.h.
784
785 Sun Mar 9 20:42:17 1997 Doug Evans <dje@seba.cygnus.com>
786
787 * Makefile.in (COMMON_{PRE,POST}_CONFIG_FRAG): Add delimiters for.
788 (M32R_INCLUDE_DEPS): Use cpu-sim.h instead of m32r-sim.h.
789 Add mod-list.h.
790 (mrun.o): Don't depend on M32R_INCLUDE_DEPS.
791 (sim-if.o,m32r.o,utils.o): Likewise.
792 (common.o): Don't explicitly depend on mod-list.h.
793 (mainloop.c): Pass CPU to genmloop.sh.
794 (stamp-modules): Depend on configure.
795 (decode.o): Depend on decode,h, memops.h, semops.h, cpu-opc.h.
796 (extract.o): Depend on decode.h, memops.h, semops.h.
797 (semantics.o,seman-cache.o): Likewise.
798 (model.o,ops.o): Depend on memops.h.
799 (extr-cache.o): Disable building for the moment.
800
801 * simcommon.h: Delete, move contents into cgen-sim.h.
802 * cgen-sim.h: Don't include ansidecl.h,bfd.h,simfns.h.
803 (UINT,CGEN_CAT3): Define.
804 ({extract,semantic}_fn_t): Renamed to {EXTRACT,SEMANTIC}_FN.
805 (decode_t): Renamed to DECODE.
806
807 * simfns.h: Delete, contents moved to memops.h,semops.h.
808 * memops.h: New file.
809 * semops.h: New file.
810 * decode.h: Renamed from semantics.h.
811
812 * sim-argv.h: New file.
813 * Makefile.in (memory.o,trace.o,profile.o,simcache.o,common): Add
814 dependency of sim-argv.h.
815
816 * sim-alloca.h: New file.
817 * common.c: Include it.
818 * Makefile.in (common.o): Add dependency.
819
820 * config.in (HAVE_TIME_H,HAVE_SYS_RESOURCE_H): Add.
821 (HAVE_GETRUSAGE,HAVE_TIME): Add.
822 * configure.in: sinclude ../common/aclocal.m4.
823 Check for headers time.h, sys/resource.h.
824 Check for functions time, getrusage.
825 (sim_link_{files,links}): Add link cpu-opc.h.
826 (sim_profile): Add simcache.
827 (SIM_AC_PROFILE): Add simcache, profile.o.
828 (simcache module): Delete extr-cache.o for now.
829 (--enable-sim-cache): Allow specification of default cache size.
830 * configure: Regenerated.
831
832 * decode.c: #include cgen-sim.h,memops.h,semops.h,decode.h,
833 cpu-sim.h,cpu-opc.h. Don't include m32r-sim.h.
834 Regenerate.
835
836 * extract.c: #include cgen-sim.h,decode.h,cpu-sim.h.
837 Don't include m32r-sim.h.
838 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
839 Simplify profiling test with PROFILE_MODEL_P.
840 (mvfc,mvtc): Fix access of control registers.
841 * semantic.c: #include cgen-sim.h,memops.h,semops.h,decode.h,cpu-sim.h.
842 Don't include m32r-sim.h.
843 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
844 Simplify profiling test with PROFILE_MODEL_P.
845 (mvfc,mvtc): Fix access of control registers.
846
847 * sem-switch.c: New file, for GCC computed goto support.
848
849 * genmloop.sh: Add #include's of bfd.h,callback.h,cgen-sim.h,
850 memops.h,semops.h,trace.h,cpu-sim.h.
851 (RUN_FAST_P): Change default to run fast if cache size > 0
852 and not profiling.
853 (sim_main_loop): Record execution time.
854 Record instruction count even in fast mode.
855 (init): Allow cpu to provide init code in mainloop.in.
856 (FAST): Define as 0 or 1 depending on fast mode.
857 * mainloop.in (normal): Combine with fast case.
858 Add support for GCC computed gotos. Count simcache hits/misses.
859 (init): Initialize "switch" labels if GNUC.
860
861 * cgen-utils.in: Don't include opcode/cgen.h.
862 Include cgen-sim.h, cpu-opc.h.
863 * common.c: Don't include simcommon.h,mod-list.h. Include cgen-sim.h.
864 * m32r-sim.h: Don't include mod-list.h
865 (RUN_FAST_P): Delete.
866 * m32r.c: Don't include profile.h. #include ansidecl.h,cgen-sim.h,
867 semops.h,memory.h,trace.h
868 (h_cr_get,h_cr_set): New functions.
869 * memory.c: #include cgen-sim.h,callback.h.
870 * ops.c: Don't include profile.h,m32r-sim.h.
871 Include cgen-sim.h,memops.h,cpu-sim.h.
872 (MEMOPS_DEFINE_INLINE): Renamed from SIMFNS_DEFINE_INLINE.
873 * trace.c: Include cgen-sim.h,cpu-opc.h.
874 * trace.h (trace_insn_{init,fini}): Declare.
875
876 * model.c: Don't include signal.h,stdlib.h,m32r-sim.h.
877 Include cgen-sim.h,cpu-sim.h,cpu-opc.h.
878 Regenerate to get new insn aliases.
879
880 * mrun.c: #include "ansidecl.h".
881 (STATE): Use struct sim_state instead.
882
883 * profile.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
884 Don't include simcommon.h. Include cgen-sim.h,cpu-opc.h.
885 (PROFILE_{READ,WRITE}_MASK): Replace with PROFILE_MEMORY_MASK.
886 (profile_print_simcache): New function.
887 (profile_print): Call it. Print simulator speed stats.
888 * profile.h (PROFILE_{READ,WRITE}_MASK): Replace with
889 PROFILE_MEMORY_MASK.
890 (MODULE_PROFILE_SIMCACHE_P): Define.
891 (PROFILE_SIMCACHE_MASK): Define.
892 (PROFILE_COUNT): New members total_insn_count,exec_time.
893 New members simcache_hits,simcache_misses.
894 (PROFILE_SIMCACHE_{HITS,MISSES}): Define.
895 (PROFILE_MODEL_P): New macro.
896 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): New macros.
897
898 * sim-if.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
899 Don't include simcommon.h,m32r-sim.h. Include cgen-sim.h,cpu-sim.h.
900 (sim_resume): Use USING_SIMCACHE_P instead of RUN_FAST_P.
901 (sim_info): Pass verbose to profile_print.
902
903 * simcache.c: Include cgen-sim.h,callback.h.
904 (USING_SIMCACHE_P): Replace with SIMCACHE_P.
905 (simcache_option_handler): Ensure cache size at least 2.
906 Allow config time specification of default cache size.
907 * simcache.h (struct simcache): Support GCC computed gotos.
908 (SIMCACHE_DEFAULT_CACHE_SIZE): USe CONFIG_SIM_CACHE_SIZE if defined.
909 (USING_SIMCACHE_P): New macro.
910
911 * simdefs.h: Don't include m32r-opc.h.
912 (CGEN_MAX_SIM_INSNS): Define.
913 (CPU_STATE): Regenerate.
914 (ARGBUF): Regenerate.
915 (extract,semantic handler decls): Delete, moved to decode.h.
916
917 * tconfig.in: Don't include cgen-sim.h,m32r-sim.h.
918 (USE_SEM_SWITCH): Define.
919
920 * utils.c: Include bfd.h,time.h,sys/resource.h.
921 (sim_time_get,sim_time_elapsed): New functions.
922 * cgen-sim.h (SIM_TIME,sim_time_get,sim_time_elapsed): Declare.
923
924 Fri Jan 31 20:25:06 1997 Doug Evans <dje@canuck.cygnus.com>
925
926 * configure.in (AC_CHECK_HEADERS): Handle i386-windows.
927 * configure: Regenerated.
928 * model.c: #include <stdlib.h>.
929 * simcache.c: #include "libiberty.h".
930 * simcommon.h (alloca): Handle i386-windows.
931
932 * common.c: #include libiberty.h.
933 (sim_signal_to_host): Return 5 if wingdb.
934
935 Mon Jan 27 15:22:49 1997 Doug Evans <dje@seba.cygnus.com>
936
937 * configure.in (sim_cache): Enabled by default now, pass default
938 cache size to --enable-sim-cache.
939 * simcache.c (simcache_option_handler): Allow -c 0.
940
941 * simdefs.h,simfns.h: Regenerate
942 * decode.c,extract.c,model.c,ops.c,semantics.c: Regenerate.
943
944 Tue Jan 21 16:21:01 1997 Doug Evans <dje@seba.cygnus.com>
945
946 Add model profiling support.
947 * configure.in: Handle --enable-sim-model.
948 (sim_profile): Add model.
949 * Makefile.in (model.o): Add rule.
950 * cgen-sim.h (UNIT,INSN_TIMING,MACH,MODEL): New types.
951 * extract.c (*): Add model profiling support.
952 * m32r.c (model_mark_{get,set}_h_gr): New functions.
953 (model_mark_{busy,unbusy}_reg): New functions.
954 * profile.c (profile_option_handler): Recognize --profile model.
955 (profile_print_model): New function.
956 (profile_print): Call it.
957 * profile.h (MODULE_profile_model,MODULE_PROFILE_MODEL_P): Define.
958 (PROFILE_MODEL_MASK,PROFILE_LABEL_WIDTH): Define.
959 (PROFILE_COUNT): New members cycle_count,cti_stall_count,
960 load_stall_count,taken_count,untaken_count.
961 * semantics.c (*): Add model profiling support.
962 * simcommon.h (struct sim_state): New members mach,model.
963 * simdefs.h (CPU_PROFILE,MODEL_TYPE,UNIT_TYPE): New type.
964 (MAX_MODELS,MAX_UNITS): Define.
965 * tconfig.in (STATE_EXTRA_MEMBERS): Add cpu_profile.
966
967 * Makefile.in (INCLUDE_DEPS): Add $(SIM_MODULES_HDRS).
968 (stamp-modules): Depend on genmodlist.sh.
969 * common.c (standard_options): Add --max-insns.
970 (copy_argv): New function.
971 * tconfig.in (SIM_HAVE_MAX_INSNS): Define.
972 * genmloop.sh: Allow mainloop.in to contain support code.
973 * mainloop.in: Move do_insn16,do_insn32 here.
974 * m32r.c (do_trap): Handle SYS_argvlen,SYS_argv,SYS_read.
975 * sim-if.c (sim_open): Don't set max insn count.
976 (sim_create_inferior): Save argv,envp.
977 * simcommon.h (struct sim_state): New members argv,envp.
978 * simdefs.h ([GS]ETTWI,[GS]ETTUWI,[GS]ETTAI): Define.
979 ([GS]ETMEMWI,[GS]ETMEMUWI,[GS]ETMEMAI): Define.
980 (ARGBUF): New members h_gr_get, h_gr_set.
981 * trace.c (trace_insn_init,trace_insn_fini): New functions.
982 (trace_printf): Print to buffer, output later by trace_insn_fini.
983 * trace.h (TRACE_INSN_{INIT,FINI}): Define.
984
985 Thu Dec 19 16:01:59 1996 Doug Evans <dje@canuck.cygnus.com>
986
987 * configure.in (AC_FUNC_ALLOCA): Call.
988 * configure: Regenerate.
989 * config.h (HAVE_ALLOCA_H): Add.
990 * simcommon.h: Add alloca support.
991 (DECLARE_MODULE_INSTALL_HANDLER): Define.
992 (DECLARE_OPTION_HANDLER): Define.
993 (MEM_FN): Declare using PARAMS.
994 (DECLARE_MEM_FN): Define.
995 * trace.c (trace_result): Tweak for !STDC.
996 * cgen-sim.h (UDI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
997 * cgen-utils.in (disasm_sprintf): Fix va_arg call in !STDC case.
998 * common.c (sim_print_help_fn): Use PARAMS.
999 (standard_option_handler): Fix decl for !STDC systems.
1000 * memory.c: #include <stdio.h>
1001 (mem_flat_{install,init,uninstall}): Fix decl for !STDC systems.
1002 (mem_flat_{read,write},mem_flat_option_handler): Likewise.
1003 * profile.c (profile_install): Likewise.
1004 (profile_option_handler): Likewise.
1005
1006 Thu Dec 19 11:06:19 1996 Doug Evans <dje@seba.cygnus.com>
1007
1008 * semantics.c (*): Don't suffix big unsigned numbers with "U".
1009 Prefix them with 0x instead.
1010
1011 * cgen-sim.h (DI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
1012 (SLADI,SRADI,CONVSIDI,CONVDISI): Delete, moved to simfns.h.
1013 * semantics.c (machi,maclo,macwhi,macwlo,mulhi,mullo): Implement.
1014 (mulwhi,mulwlo,mvtachi,mvtaclo,rac,rach): Implement.
1015 * simfns.h: Add decls for functional DI,UDI,SF,DF,XF,TF support.
1016 Add support for boolean and/or.
1017 * utils.c: Redo naming of DI functional support.
1018 (ANDDI,ORDI,ADDDI,MULDI,GEDI,LEDI,CONVHIDI): New functions.
1019
1020 Tue Dec 17 12:57:48 1996 Doug Evans <dje@seba.cygnus.com>
1021
1022 * Directory created.