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