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