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