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