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