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