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