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