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