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