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