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