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