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