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