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