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