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