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