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