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