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