* configure: Regenerated to track ../common/aclocal.m4 changes.
[platform/upstream/binutils.git] / sim / m32r / ChangeLog
1 Sun Apr 26 15:31:55 1998  Tom Tromey  <tromey@creche>
2
3         * configure: Regenerated to track ../common/aclocal.m4 changes.
4         * config.in: Ditto.
5
6 Sun Apr 26 15:20:05 1998  Tom Tromey  <tromey@cygnus.com>
7
8         * acconfig.h: New file.
9         * configure.in: Reverted change of Apr 24; use sinclude again.
10
11 Fri Apr 24 14:16:40 1998  Tom Tromey  <tromey@creche>
12
13         * configure: Regenerated to track ../common/aclocal.m4 changes.
14         * config.in: Ditto.
15
16 Fri Apr 24 11:19:26 1998  Tom Tromey  <tromey@cygnus.com>
17
18         * configure.in: Don't call sinclude.
19
20 Mon Apr 20 16:12:35 1998  Doug Evans  <devans@canuck.cygnus.com>
21
22         * cpu.c,sem.c,sem-switch.c: Regenerate.  From
23         - cgen/m32r.cpu (h-accum): Add attribute FUN-ACCESS.
24         * m32r.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
25         #include cgen-ops.h.
26 start-sanitize-m32rx
27         * cpux.c,readx.c,semx.c: Regenerate.
28         * m32rx.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
29         #include cgen-ops.h.  Delete inclusion of several unnecessary headers.
30         (m32r_h_accums_get): Sign extend top 8 bits.
31 end-sanitize-m32rx
32
33 start-sanitize-m32rx
34 Tue Apr 14 14:04:07 1998  Doug Evans  <devans@canuck.cygnus.com>
35
36         * semx.c: Regenerate.
37
38 end-sanitize-m32rx
39 Fri Apr 10 18:22:41 1998  Doug Evans  <devans@canuck.cygnus.com>
40
41         * cpu.h,decode.c,decode.h,extract.c,sem.c,sem-switch.c: Regenerate.
42 start-sanitize-m32rx
43         * cpux.h,decodex.c,decodex.h,readx.c,semx.c: Regenerate.
44 end-sanitize-m32rx
45
46 Sat Apr  4 20:36:25 1998  Andrew Cagney  <cagney@b1.cygnus.com>
47
48         * configure: Regenerated to track ../common/aclocal.m4 changes.
49
50 Fri Mar 27 16:15:52 1998  Andrew Cagney  <cagney@b1.cygnus.com>
51
52         * configure: Regenerated to track ../common/aclocal.m4 changes.
53
54 Wed Mar 25 12:35:29 1998  Andrew Cagney  <cagney@b1.cygnus.com>
55
56         * configure: Regenerated to track ../common/aclocal.m4 changes.
57
58 Wed Mar 18 12:38:12 1998  Andrew Cagney  <cagney@b1.cygnus.com>
59
60         * configure: Regenerated to track ../common/aclocal.m4 changes.
61
62 Sat Mar 14 20:53:36 1998  Doug Evans  <devans@seba.cygnus.com>
63
64         * config.in (HAVE_FCNTL_H): Add.
65         * configure: Regenerate.
66         * Makefile.in (SIM_OBJS): Add devices.o.
67         * m32r-sim.h (m32r_devices): Renamed from m32r_mspr_device.
68         (UART_*): Define m32r serial port parameters.
69         (M32R_DEVICE_ADDR,M32R_DEVICE_LEN): Define.
70         * m32r.c (device_io_{read,write}_buffer,device_error): Move from here,
71         * devices.c: To here.
72         * sim-if.c: Don't include signal.h,sim-core.h.
73         (sim_open): Use M32R_DEVICE_{ADDR,LEN} in sim_core_attach call.
74         (sim_resume): Call sim_module_{resume,suspend}.
75         * m32r.c (m32r_h_cr_{get,set}): Use register number enums.
76
77         * tconfig.in (SIM_HANDLES_LMA): Define.
78
79         * sim-if.c (do_trap): Result is new pc.
80         Handle --environment=operating.
81         * sem-switch.c,sem.c: Regenerate.
82 start-sanitize-m32rx
83         * semx.c: Regenerate.
84 end-sanitize-m32rx
85
86 Wed Mar 11 14:07:39 1998  Andrew Cagney  <cagney@b1.cygnus.com>
87
88         * sim-if.c (syscall_read_mem, syscall_write_mem): Replace
89         sim_core_*_map with read_map, write_map, exec_map resp.
90
91 Wed Mar  4 11:36:51 1998  Doug Evans  <devans@seba.cygnus.com>
92
93         * Makefile.in (SIM_EXTRA_DEPS): Add cpu-opc.h.
94         (arch.o): Delete cpu-opc.h dependency.
95         (decode.o,model.o): Likewise.
96 start-sanitize-m32rx
97         (decodex.o,modelx.o): Likewise.
98 end-sanitize-m32rx
99
100         * cpu.h,model.c,sem-switch.c,sem.c: Regenerate.
101 start-sanitize-m32rx
102         * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
103 end-sanitize-m32rx
104
105 Thu Feb 26 18:38:35 1998  Andrew Cagney  <cagney@b1.cygnus.com>
106
107         * sim-if.c (sim_open): Initialize PROFILE_INFO_CPU_CALLBACK.
108
109         * sim-if.c (sim_info): Delete.
110
111 start-sanitize-m32rx
112 Fri Feb 27 10:14:29 1998  Doug Evans  <devans@canuck.cygnus.com>
113
114         * mloopx.in: Fix handling of branch in parallel with another insn.
115         * semx.c: Regenerate.
116
117 end-sanitize-m32rx
118 Mon Feb 23 13:30:46 1998  Doug Evans  <devans@seba.cygnus.com>
119
120         * sim-main.h: #include symcat.h.
121         * m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg.
122         (NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros.
123         * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
124         * sem.c,sem-switch.c: Regenerate.
125 start-sanitize-m32rx
126         * m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec.
127         * mloopx.in: Rewrite.
128         * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
129 end-sanitize-m32rx
130
131 Mon Feb 23 12:27:52 1998  Nick Clifton  <nickc@cygnus.com>
132
133         * m32r.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
134         in the backup PC register.
135 start-sanitize-m32rx
136         * m32rx.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
137         in the backup PC register.
138 end-sanitize-m32rx
139
140 Thu Feb 19 16:39:35 1998  Doug Evans  <devans@canuck.cygnus.com>
141
142         * m32r.c (do_lock,do_unlock): Delete.
143         * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
144         * sem.c,sem-switch.c: Regenerate.
145 start-sanitize-m32rx
146         * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
147 end-sanitize-m32rx
148
149 Tue Feb 17 18:18:10 1998  Doug Evans  <devans@seba.cygnus.com>
150
151         * Makefile.in (M32R_OBJS): Add cpu.o.
152         (cpu.o): Add rule for.
153         (NL_TARGET): Define.
154         * configure.in: Add AC_CHECK_PROG(SCHEME).
155         * cpu.c: New file.
156         * cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
157         * sem-switch.c,sem.c: Regenerate.
158         * mloop.in (execute): Update call to semantic fn.
159 start-sanitize-m32rx
160         (M32RX_OBJS): Add cpux.o.
161         (cpux.o): Add rule for.
162         cpux.c: New file.
163         * cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
164         * m32rx.c (m32rx_h_accums_{get,set}): Rewrite.
165         (m32rx_h_cr_{get,set}): New functions.
166         (m32rx_h_accums_{get,set}): New functions.
167         * mloopx.in: Rewrite main loop.
168 end-sanitize-m32rx
169
170         * m32r.c (do_trap): Move from here.
171         * sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support.
172         (sim_create_inferior): Use h_pc_set.
173         (h_pc_{get,set}): New functions.
174         (h_gr_{get,set}): New functions.
175         (syscall_{read,write}_mem): New functions.
176         * sim-main.h (h_{gr,pc}_{get,set}): Declare.
177
178 Tue Feb 17 12:44:38 1998  Andrew Cagney  <cagney@b1.cygnus.com>
179
180         * sim-if.c (sim_store_register, sim_fetch_register): Pass in
181         length parameter.  Return -1.
182         (sim_create_inferior): Pass 4 sim_store_register.
183
184 Wed Feb 11 19:53:48 1998  Doug Evans  <devans@canuck.cygnus.com>
185
186         * sim-main.h (CIA_GET,CIA_SET): Provide dummy definitions for now.
187
188         * decode.c, decode.h, sem.c, sem-switch.c, model.c: Regenerate.
189 start-sanitize-m32rx
190         * cpux.c, decodex.c, decodex.h, readx.c, semx.c, modelx.c: Regenerate.
191 end-sanitize-m32rx
192
193 Mon Feb  9 19:41:54 1998  Doug Evans  <devans@canuck.cygnus.com>
194
195         * decode.c, sem.c: Regenerate.
196 start-sanitize-m32rx
197         * cpux.h, decodex.c, readx.c, semx.c: Regenerate.
198         * m32rx.c (m32rx_h_accums_set): New function.
199         (m32rx_model_mark_[gs]et_h_gr): New function.
200         * mloopx.in: Rewrite.
201         * Makefile.in (mloopx.o): Build with -parallel.
202         * sim-main.h (_sim_cpu): Delete member `par_exec'.
203         * tconfig.in (WITH_SEM_SWITCH_FULL): Define as 0 for m32rx.
204 end-sanitize-m32rx
205
206 Thu Feb  5 12:44:31 1998  Doug Evans  <devans@seba.cygnus.com>
207
208         * Makefile.in (m32r.o): Depend on cpu.h
209         (extract.o): Pass -DSCACHE_P.
210         * mloop.in (extract{16,32}): Update call to m32r_decode.
211         * arch.h,cpu.h,cpuall.h,decode.[ch]: Regenerate.
212         * extract.c,model.c,sem-switch.c,sem.c: Regenerate.
213         * sim-main.h: #include "ansidecl.h".
214         Don't include cpu-opc.h, done by arch.h.
215 start-sanitize-m32rx
216         * Makefile.in (M32RX_OBJS): Build m32rx support now.
217         (m32rx.o): New rule.
218         * m32r-sim.h (m32rx_h_cr_[gs]et): Define.
219         * m32rx.c (m32rx_{fetch,store}_register): Update {get,set} of PC.
220         (m32rx_h_accums_get): New function.
221         * mloopx.in: Update call to m32rx_decode.  Rewrite exec loop.
222         * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
223 end-sanitize-m32rx
224
225 Sun Feb  1 16:47:51 1998  Andrew Cagney  <cagney@b1.cygnus.com>
226
227         * configure: Regenerated to track ../common/aclocal.m4 changes.
228
229 Sat Jan 31 18:15:41 1998  Andrew Cagney  <cagney@b1.cygnus.com>
230
231         * configure: Regenerated to track ../common/aclocal.m4 changes.
232
233 start-sanitize-m32rx
234 Thu Jan 29 11:22:00 1998  Doug Evans  <devans@canuck.cygnus.com>
235
236         * Makefile.in (M32RX_OBJS): Comment out until m32rx port working.
237         * arch.h (HAVE_CPU_M32R{,X}): Delete, moved to m32r-opc.h.
238         * arch.c (machs): Check ifdef HAVE_CPU_FOO for each entry.
239
240 end-sanitize-m32rx
241 Tue Jan 20 14:16:02 1998  Nick Clifton  <nickc@cygnus.com>
242
243         * cpux.h: Fix duplicate definition of h_accums field for
244         fmt_53_sadd structure.
245
246 start-sanitize-m32rx
247 Tue Jan 20 01:42:17 1998  Doug Evans  <devans@seba.cygnus.com>
248
249         * Makefile.in: Add m32rx objs, and rules to build them.
250         * cpux.h, decodex.h, decodex.c, readx.c, semx.c, modelx.c: New files.
251         * m32rx.c, mloopx.in: New files.
252
253 end-sanitize-m32rx
254 Mon Jan 19 22:26:29 1998  Doug Evans  <devans@seba>
255
256         * configure: Regenerated to track ../common/aclocal.m4 changes.
257
258 Mon Jan 19 14:13:40 1998  Doug Evans  <devans@seba.cygnus.com>
259
260         * arch.c, arch.h, cpuall.h: New files.
261         * arch-defs.h: Deleted.
262         * mloop.in: Renamed from mainloop.in.
263         * Makefile.in: Update.
264         * sem-ops.h: Deleted.
265         * mem-ops.h: Deleted.
266 start-sanitize-cygnus
267         Add cgen support for generating files.
268 end-sanitize-cygnus
269         (arch): Renamed from CPU.
270         * cpu.h: New file.
271         * decode.c: Redone.
272         * decode.h: Redone.
273         * extract.c: Redone.
274         * model.c: Redone.
275         * sem-switch.c: Redone.
276         * sem.c: Renamed from semantics.c, and redone.
277         * m32r-sim.h (PROFILE_COUNT_FILLNOPS): Update.
278         (GETTWI,SETTWI,BRANCH_NEW_PC): Define.
279         * m32r.c (WANT_CPU,WANT_CPU_M32R): Define.
280         (m32r_{fetch,store}_register): New functions.
281         (model_mark_{get,set}_h_gr): Prefix with m32r_.
282         (m32r_model_mark_{busy,unbusy}_reg): Prefix with m32r_.
283         (h_cr_{get,set}): Prefix with m32r_.
284         (do_trap): Fetch state from current_cpu, not current_state.
285         Call sim_engine_halt instead of engine_halt.
286         * sim-if.c (alloc_cpu): New function.
287         (free_state): New function.
288         (sim_open): Call sim_state_alloc, and malloc space for selected cpu
289         type.  Call sim_analyze_program.
290         (sim_create_inferior): Handle selected cpu type when setting PC.
291 start-sanitize-m32rx
292         (sim_resume): Handle m32rx.
293 end-sanitize-m32rx
294         (sim_stop_reason): Deleted.
295         (print_m32r_misc_cpu): Update.
296 start-sanitize-m32rx
297         (sim_{fetch,store}_register): Handle m32rx.
298 end-sanitize-m32rx
299         (sim_{read,write}): Deleted.
300         (sim_engine_illegal_insn): New function.
301         * sim-main.h: Don't include arch-defs.h,sim-core.h,sim-events.h.
302         Include arch.h,cpuall.h.  Include cpu.h,decode.h if m32r.
303 start-sanitize-m32rx
304         Include cpux.h,decodex.h if m32rx.
305 end-sanitize-m32rx
306         (_sim_cpu): Include member appropriate cpu_data member for the cpu.
307         (M32R_MISC_PROFILE): Renamed from M32R_PROFILE.
308         (sim_state): Delete members core,events,halt_jmp_buf.
309         Change `cpu' member to be a pointer to the cpu's struct, rather than
310         record inside the state struct.
311         * tconfig.in (WITH_DEVICES): Define here.
312         (WITH_FAST,WITH_SEM_SWITCH_{FULL,FAST}): Define for the cpu.
313
314 Fri Jan 16 12:16:56 1998  Nick Clifton  <nickc@cygnus.com>
315
316         * arch-defs.h (INSN_NAME): Fix typo.
317
318 Mon Dec 15 23:17:11 1997  Andrew Cagney  <cagney@b1.cygnus.com>
319
320         * configure: Regenerated to track ../common/aclocal.m4 changes.
321         * config.in: Ditto.
322
323 Thu Dec  4 09:21:05 1997  Doug Evans  <devans@canuck.cygnus.com>
324
325         * m32r-sim.h (MSPR_ADDR): New macro.
326         (m32r_mspr_device): Declare.
327         (struct _device): Define.
328         * m32r.c (m32r_mspr_device): New global.
329         (device_{io_{read,write}_buffer,error}): New functions.
330         * mem-ops.h (SETMEM*): Use sim_core_write_map, not read map.
331         * sim-if.c: Delete redundant inclusion of cpu-sim.h.
332         (sim_open): Attach device to handle MSPR register.
333         * sim-main.h (WITH_DEVICES): Define as 1.
334         Include cpu-sim.h.
335
336         * configure: Regenerated to track ../common/aclocal.m4 changes.
337
338 Wed Dec  3 18:08:44 1997  Doug Evans  <devans@canuck.cygnus.com>
339
340         * configure.in (SIM_AC_OPTION_ENVIRONMENT): Call.
341         * configure: Regenerated.
342
343 Wed Nov 19 12:17:08 1997  Doug Evans  <devans@canuck.cygnus.com>
344
345         * mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}.
346         * sim-if.c (sim_open): Call sim_config.
347         (sim_stop_reason): Update call to sim_signal_to_host.
348
349 Tue Nov 18 15:33:48 1997  Doug Evans  <devans@canuck.cygnus.com>
350
351         * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
352
353 Fri Oct 31 18:46:46 1997  Andrew Cagney  <cagney@b1.cygnus.com>
354
355         * sim-if.c (sim_open): Delete dead call to sim_core_attach.
356
357 Mon Oct 27 12:43:54 1997  Doug Evans  <devans@canuck.cygnus.com>
358
359         * sem-ops.h (U{DIV,MOD}[BHSD]I): Use unsigned division.
360
361 Fri Oct  3 09:28:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
362
363         * configure: Regenerated to track ../common/aclocal.m4 changes.
364
365 Wed Sep 24 17:38:57 1997  Andrew Cagney  <cagney@b1.cygnus.com>
366
367         * configure: Regenerated to track ../common/aclocal.m4 changes.
368
369 Tue Sep 23 11:04:38 1997  Andrew Cagney  <cagney@b1.cygnus.com>
370
371         * configure: Regenerated to track ../common/aclocal.m4 changes.
372
373 Tue Sep 23 10:19:51 1997  Andrew Cagney  <cagney@b1.cygnus.com>
374
375         * Makefile.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_SCACHE,
376         SIM_DEFAULT_MODEL): Delete, moved to common.
377         (SIM_EXTRA_CFLAGS): Update.
378         
379 Mon Sep 22 11:46:20 1997  Andrew Cagney  <cagney@b1.cygnus.com>
380
381         * configure.in (sim_link_links): Configure non-strict memory
382         alignment.
383
384         * configure: Regenerated to track ../common/aclocal.m4 changes.
385
386 Fri Sep 19 17:45:25 1997  Andrew Cagney  <cagney@b1.cygnus.com>
387
388         * configure: Regenerated to track ../common/aclocal.m4 changes.
389
390 Wed Sep 17 17:44:40 1997  Andrew Cagney  <cagney@b1.cygnus.com>
391
392         * sim-if.c (sim_open): Allocate memory under sim-memopt module
393         using sim_do_commandf.
394         (sim_open): Set magic-number at the start.
395         (sim_do_command): Implement.
396
397         * sim-main.h (sim_engine_halt): Map onto engine_halt.
398
399 Mon Sep 15 17:36:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
400
401         * configure: Regenerated to track ../common/aclocal.m4 changes.
402
403 Thu Sep  4 17:21:23 1997  Doug Evans  <dje@seba>
404
405         * configure: Regenerated to track ../common/aclocal.m4 changes.
406
407 Fri Sep  5 10:21:48 1997  Andrew Cagney  <cagney@b1.cygnus.com>
408
409         * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
410
411 Thu Sep  4 10:30:02 1997  Andrew Cagney  <cagney@b1.cygnus.com>
412
413         * sim-if.c (sim_open): Pass zero modulo arg to sim_core_attach.
414
415 Wed Aug 27 18:13:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
416
417         * configure: Regenerated to track ../common/aclocal.m4 changes.
418         * config.in: Ditto.
419
420 Tue Aug 26 10:39:42 1997  Andrew Cagney  <cagney@b1.cygnus.com>
421
422         * sim-if.c (sim_kill): Delete.
423         (sim_create_inferior): Add ABFD argument.
424         (sim_load): Move setting of PC from here.
425         (sim_create_inferior): To here.
426         (sim_load): Delete, use sim-hload.c instead.
427
428         * Makefile.in (SIM_OBJS): Add sim-hload.o module.
429
430 Mon Aug 25 17:50:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
431
432         * configure: Regenerated to track ../common/aclocal.m4 changes.
433         * config.in: Ditto.
434
435 Mon Aug 25 15:54:08 1997  Andrew Cagney  <cagney@b1.cygnus.com>
436
437         * sim-if.c (sim_open): Add ABFD argument.
438
439 Tue Jul 22 10:16:16 1997  Doug Evans  <dje@canuck.cygnus.com>
440
441         * sim-main.h (M32R_DEFAULT_MEM_SIZE): New macro.
442         * sim-if.c (sim_open): Use it.
443
444 Wed Jun  4 12:48:12 1997  Andrew Cagney  <cagney@b1.cygnus.com>
445
446         * sim-main.h (WITH_ENGINE): Disable the common engine for now.
447
448 Tue May 27 14:15:44 1997  Andrew Cagney  <cagney@b1.cygnus.com>
449
450         * sim-if.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
451         (sim_write): Ditto for write.
452
453         * m32r.c (do_trap): Ditto for read/write.
454
455 Tue May 20 10:18:25 1997  Andrew Cagney  <cagney@b1.cygnus.com>
456
457         * sim-if.c (sim_open): Add callback argument.
458         (sim_set_callbacks, sim_callback): Delete.
459         (sim_load): Set STATE_LOADED_P.
460
461 Mon May 19 12:55:42 1997  Andrew Cagney  <cagney@b1.cygnus.com>
462
463         * Makefile.in (SIM_OBJS): Link in sim-abort.o as a stub for
464         sim_engine_abort.
465
466 Mon May  5 12:45:28 1997  Andrew Cagney  <cagney@b1.cygnus.com>
467
468         * sim-if.c (sim_open): Update to reflect changes to core in
469         ../common/.
470         * mem-ops.h (GETMEMQI, GETMEMHI, GETMEMSI, GETMEMDI, GETMEMUQI,
471         GETMEMUHI, GETMEMUSI, GETMEMUDI, SETMEMQI, SETMEMHI, SETMEMSI,
472         SETMEMDI, SETMEMUQI, SETMEMUHI, SETMEMUSI, SETMEMUDI): Ditto.
473
474 Sat May  3 08:38:55 1997  Doug Evans  <dje@seba.cygnus.com>
475
476         * decode.c (decode): Add computed goto support.
477
478 Fri May  2 16:30:26 1997  Andrew Cagney  <cagney@b1.cygnus.com>
479
480         * mem-ops.h: Stub additional core read/write arguments.
481
482         * sim-main.h: Declare sim_cia - type SI.
483         (struct _sim_cpu): Move base type to end per common.
484         (struct _sim_state): Ditto.
485
486 Thu May  1 11:15:34 1997  Doug Evans  <dje@canuck.cygnus.com>
487
488         Merge from branch into devo.  CGEN generic files moved to common
489         directory.  K&R C support is no longer provided.
490
491 Thu Apr 24 00:39:51 1997  Doug Evans  <dje@canuck.cygnus.com>
492
493         * configure: Regenerated to track ../common/aclocal.m4 changes.
494
495 Sat Apr 12 12:57:33 1997  Felix Lee  <flee@yin.cygnus.com>
496
497         * Makefile.in, seman-cache.c: new file, for wingdb build.
498         * sim-alloca.h: fixed for wingdb.
499         
500 Mon Apr  7 13:33:29 1997  Doug Evans  <dje@seba.cygnus.com>
501
502         * decode.c (*): m32r_cgen_insn_table renamed to ..._entries.
503         * mainloop.in: Use CGEN_INSN_INDEX instead of CGEN_INSN_TYPE.
504         * simdefs.h (INSN_NAME): m32r_cgen_insn_table renamed to ..._entries.
505
506 Fri Apr  4 19:23:12 1997  Doug Evans  <dje@canuck.cygnus.com>
507
508         * cgen-utils.in (ex_illegal): Fill in abuf->length, abuf->addr.
509         (exc_illegal): Likewise.
510         * decode.c (decode_vars): Add decode_illegal.
511         * genmloop.sh: #include "cpu-opc.h".
512         * sem-switch.c (case_INSN_ILLEGAL): Declare.
513         (labels): Add case_INSN_ILLEGAL.
514         (SWITCH): Add INSN_ILLEGAL case.
515
516 Wed Mar 26 12:34:00 1997  Doug Evans  <dje@canuck.cygnus.com>
517
518         * model.c (model_module): Use 0 not NULL.
519
520         * genmloop.sh (sim_main_loop): Handle k&r c.
521
522         * sem-switch.c: Regenerate to get k&r c support.
523         * semantics.c: Likewise.
524
525         * m32r.c (ADD_{OV,CA}_SI,SUB_{OV,CA}_SI): Renamed to {ADD,SUB}[OC]FSI.
526         (ADDCSI,SUBCSI): New functions.
527         * sem-switch.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
528         * semantics.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
529
530         * simcache.c (simcache_{install,init,uninstall}): Use
531         DECLARE_MODULE_INSTALL_HANDLER.
532         (simcache_option_handler): Use DECLARE_OPTION_HANDLER.
533
534         * utils.c: #include "semops.h".
535
536 Tue Mar 11 14:30:26 1997  Doug Evans  <dje@seba.cygnus.com>
537
538         * profile.c (profile_print_simcache): Fix thinko in printf text.
539
540         * simdefs.h (struct argbuf): Add member to fmt_20 so it's not empty.
541
542 Mon Mar 10 11:06:29 1997  Doug Evans  <dje@seba.cygnus.com>
543
544         * m32r.c (h_cr_get): Rewrite.
545         (h_cr_set): Rewrite.
546         * sem-switch.c (rte): bcarry renamed to bcond.
547         * semantics.c (rte): Likewise.
548         * simdefs.h (CPU_STATE): Likewise.
549
550         * config.in (HAVE_SYS_TIME_H): Add.
551         * configure.in: Check for sys/time.h.
552         * configure: Regenerated.
553         * utils.c: Include sys/time.h if present.
554
555         * common.c (sim_parse_args): Account for NULL terminating entry
556         in long_options table.
557
558         * genmloop.sh (RUN_FAST_P): Don't run fast if tracing.
559         Always use cache if configured in.
560         * mainloop.in (do_extract_insn{16,32}): New functions.
561         (normal,fast): Call them.  Handle starting in left slot.
562         * simcache.c (simcache_option_handler): Disallow -c0.
563         * sem-switch.c (TRACE_RESULT): Redefine so no tracing.
564
565         * profile.c (profile_print_simcache): Fix percentage calc.
566
567         * Makefile.in (INCLUDE_DEPS): Delete simcommon.h.
568
569 Sun Mar  9 20:42:17 1997  Doug Evans  <dje@seba.cygnus.com>
570
571         * Makefile.in (COMMON_{PRE,POST}_CONFIG_FRAG): Add delimiters for.
572         (M32R_INCLUDE_DEPS): Use cpu-sim.h instead of m32r-sim.h.
573         Add mod-list.h.
574         (mrun.o): Don't depend on M32R_INCLUDE_DEPS.
575         (sim-if.o,m32r.o,utils.o): Likewise.
576         (common.o): Don't explicitly depend on mod-list.h.
577         (mainloop.c): Pass CPU to genmloop.sh.
578         (stamp-modules): Depend on configure.
579         (decode.o): Depend on decode,h, memops.h, semops.h, cpu-opc.h.
580         (extract.o): Depend on decode.h, memops.h, semops.h.
581         (semantics.o,seman-cache.o): Likewise.
582         (model.o,ops.o): Depend on memops.h.
583         (extr-cache.o): Disable building for the moment.
584
585         * simcommon.h: Delete, move contents into cgen-sim.h.
586         * cgen-sim.h: Don't include ansidecl.h,bfd.h,simfns.h.
587         (UINT,CGEN_CAT3): Define.
588         ({extract,semantic}_fn_t): Renamed to {EXTRACT,SEMANTIC}_FN.
589         (decode_t): Renamed to DECODE.
590
591         * simfns.h: Delete, contents moved to memops.h,semops.h.
592         * memops.h: New file.
593         * semops.h: New file.
594         * decode.h: Renamed from semantics.h.
595
596         * sim-argv.h: New file.
597         * Makefile.in (memory.o,trace.o,profile.o,simcache.o,common): Add
598         dependency of sim-argv.h.
599
600         * sim-alloca.h: New file.
601         * common.c: Include it.
602         * Makefile.in (common.o): Add dependency.
603
604         * config.in (HAVE_TIME_H,HAVE_SYS_RESOURCE_H): Add.
605         (HAVE_GETRUSAGE,HAVE_TIME): Add.
606         * configure.in: sinclude ../common/aclocal.m4.
607         Check for headers time.h, sys/resource.h.
608         Check for functions time, getrusage.
609         (sim_link_{files,links}): Add link cpu-opc.h.
610         (sim_profile): Add simcache.
611         (SIM_AC_PROFILE): Add simcache, profile.o.
612         (simcache module): Delete extr-cache.o for now.
613         (--enable-sim-cache): Allow specification of default cache size.
614         * configure: Regenerated.
615
616         * decode.c: #include cgen-sim.h,memops.h,semops.h,decode.h,
617         cpu-sim.h,cpu-opc.h.  Don't include m32r-sim.h.
618         Regenerate.
619
620         * extract.c: #include cgen-sim.h,decode.h,cpu-sim.h.
621         Don't include m32r-sim.h.
622         (*): Define/Undef FLD macro.  Use it to reference ARGBUF.
623         Simplify profiling test with PROFILE_MODEL_P.
624         (mvfc,mvtc): Fix access of control registers.
625         * semantic.c: #include cgen-sim.h,memops.h,semops.h,decode.h,cpu-sim.h.
626         Don't include m32r-sim.h.
627         (*): Define/Undef FLD macro.  Use it to reference ARGBUF.
628         Simplify profiling test with PROFILE_MODEL_P.
629         (mvfc,mvtc): Fix access of control registers.
630
631         * sem-switch.c: New file, for GCC computed goto support.
632
633         * genmloop.sh: Add #include's of bfd.h,callback.h,cgen-sim.h,
634         memops.h,semops.h,trace.h,cpu-sim.h.
635         (RUN_FAST_P): Change default to run fast if cache size > 0
636         and not profiling.
637         (sim_main_loop): Record execution time.
638         Record instruction count even in fast mode.
639         (init): Allow cpu to provide init code in mainloop.in.
640         (FAST): Define as 0 or 1 depending on fast mode.
641         * mainloop.in (normal): Combine with fast case.
642         Add support for GCC computed gotos.  Count simcache hits/misses.
643         (init): Initialize "switch" labels if GNUC.
644
645         * cgen-utils.in: Don't include opcode/cgen.h.
646         Include cgen-sim.h, cpu-opc.h.
647         * common.c: Don't include simcommon.h,mod-list.h.  Include cgen-sim.h.
648         * m32r-sim.h: Don't include mod-list.h
649         (RUN_FAST_P): Delete.
650         * m32r.c: Don't include profile.h.  #include ansidecl.h,cgen-sim.h,
651         semops.h,memory.h,trace.h
652         (h_cr_get,h_cr_set): New functions.
653         * memory.c: #include cgen-sim.h,callback.h.
654         * ops.c: Don't include profile.h,m32r-sim.h.
655         Include cgen-sim.h,memops.h,cpu-sim.h.
656         (MEMOPS_DEFINE_INLINE): Renamed from SIMFNS_DEFINE_INLINE.
657         * trace.c: Include cgen-sim.h,cpu-opc.h.
658         * trace.h (trace_insn_{init,fini}): Declare.
659
660         * model.c: Don't include signal.h,stdlib.h,m32r-sim.h.
661         Include cgen-sim.h,cpu-sim.h,cpu-opc.h.
662         Regenerate to get new insn aliases.
663
664         * mrun.c: #include "ansidecl.h".
665         (STATE): Use struct sim_state instead.
666
667         * profile.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
668         Don't include simcommon.h.  Include cgen-sim.h,cpu-opc.h.
669         (PROFILE_{READ,WRITE}_MASK): Replace with PROFILE_MEMORY_MASK.
670         (profile_print_simcache): New function.
671         (profile_print): Call it.  Print simulator speed stats.
672         * profile.h (PROFILE_{READ,WRITE}_MASK): Replace with
673         PROFILE_MEMORY_MASK.
674         (MODULE_PROFILE_SIMCACHE_P): Define.
675         (PROFILE_SIMCACHE_MASK): Define.
676         (PROFILE_COUNT): New members total_insn_count,exec_time.
677         New members simcache_hits,simcache_misses.
678         (PROFILE_SIMCACHE_{HITS,MISSES}): Define.
679         (PROFILE_MODEL_P): New macro.
680         (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): New macros.
681
682         * sim-if.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
683         Don't include simcommon.h,m32r-sim.h.  Include cgen-sim.h,cpu-sim.h.
684         (sim_resume): Use USING_SIMCACHE_P instead of RUN_FAST_P.
685         (sim_info): Pass verbose to profile_print.
686
687         * simcache.c: Include cgen-sim.h,callback.h.
688         (USING_SIMCACHE_P): Replace with SIMCACHE_P.
689         (simcache_option_handler): Ensure cache size at least 2.
690         Allow config time specification of default cache size.
691         * simcache.h (struct simcache): Support GCC computed gotos.
692         (SIMCACHE_DEFAULT_CACHE_SIZE): USe CONFIG_SIM_CACHE_SIZE if defined.
693         (USING_SIMCACHE_P): New macro.
694
695         * simdefs.h: Don't include m32r-opc.h.
696         (CGEN_MAX_SIM_INSNS): Define.
697         (CPU_STATE): Regenerate.
698         (ARGBUF): Regenerate.
699         (extract,semantic handler decls): Delete, moved to decode.h.
700
701         * tconfig.in: Don't include cgen-sim.h,m32r-sim.h.
702         (USE_SEM_SWITCH): Define.
703
704         * utils.c: Include bfd.h,time.h,sys/resource.h.
705         (sim_time_get,sim_time_elapsed): New functions.
706         * cgen-sim.h (SIM_TIME,sim_time_get,sim_time_elapsed): Declare.
707
708 Fri Jan 31 20:25:06 1997  Doug Evans  <dje@canuck.cygnus.com>
709
710         * configure.in (AC_CHECK_HEADERS): Handle i386-windows.
711         * configure: Regenerated.
712         * model.c: #include <stdlib.h>.
713         * simcache.c: #include "libiberty.h".
714         * simcommon.h (alloca): Handle i386-windows.
715
716         * common.c: #include libiberty.h.
717         (sim_signal_to_host): Return 5 if wingdb.
718
719 Mon Jan 27 15:22:49 1997  Doug Evans  <dje@seba.cygnus.com>
720
721         * configure.in (sim_cache): Enabled by default now, pass default
722         cache size to --enable-sim-cache.
723         * simcache.c (simcache_option_handler): Allow -c 0.
724
725         * simdefs.h,simfns.h: Regenerate
726         * decode.c,extract.c,model.c,ops.c,semantics.c: Regenerate.
727
728 Tue Jan 21 16:21:01 1997  Doug Evans  <dje@seba.cygnus.com>
729
730         Add model profiling support.
731         * configure.in: Handle --enable-sim-model.
732         (sim_profile): Add model.
733         * Makefile.in (model.o): Add rule.
734         * cgen-sim.h (UNIT,INSN_TIMING,MACH,MODEL): New types.
735         * extract.c (*): Add model profiling support.
736         * m32r.c (model_mark_{get,set}_h_gr): New functions.
737         (model_mark_{busy,unbusy}_reg): New functions.
738         * profile.c (profile_option_handler): Recognize --profile model.
739         (profile_print_model): New function.
740         (profile_print): Call it.
741         * profile.h (MODULE_profile_model,MODULE_PROFILE_MODEL_P): Define.
742         (PROFILE_MODEL_MASK,PROFILE_LABEL_WIDTH): Define.
743         (PROFILE_COUNT): New members cycle_count,cti_stall_count,
744         load_stall_count,taken_count,untaken_count.
745         * semantics.c (*): Add model profiling support.
746         * simcommon.h (struct sim_state): New members mach,model.
747         * simdefs.h (CPU_PROFILE,MODEL_TYPE,UNIT_TYPE): New type.
748         (MAX_MODELS,MAX_UNITS): Define.
749         * tconfig.in (STATE_EXTRA_MEMBERS): Add cpu_profile.
750
751         * Makefile.in (INCLUDE_DEPS): Add $(SIM_MODULES_HDRS).
752         (stamp-modules): Depend on genmodlist.sh.
753         * common.c (standard_options): Add --max-insns.
754         (copy_argv): New function.
755         * tconfig.in (SIM_HAVE_MAX_INSNS): Define.
756         * genmloop.sh: Allow mainloop.in to contain support code.
757         * mainloop.in: Move do_insn16,do_insn32 here.
758         * m32r.c (do_trap): Handle SYS_argvlen,SYS_argv,SYS_read.
759         * sim-if.c (sim_open): Don't set max insn count.
760         (sim_create_inferior): Save argv,envp.
761         * simcommon.h (struct sim_state): New members argv,envp.
762         * simdefs.h ([GS]ETTWI,[GS]ETTUWI,[GS]ETTAI): Define.
763         ([GS]ETMEMWI,[GS]ETMEMUWI,[GS]ETMEMAI): Define.
764         (ARGBUF): New members h_gr_get, h_gr_set.
765         * trace.c (trace_insn_init,trace_insn_fini): New functions.
766         (trace_printf): Print to buffer, output later by trace_insn_fini.
767         * trace.h (TRACE_INSN_{INIT,FINI}): Define.
768
769 Thu Dec 19 16:01:59 1996  Doug Evans  <dje@canuck.cygnus.com>
770
771         * configure.in (AC_FUNC_ALLOCA): Call.
772         * configure: Regenerate.
773         * config.h (HAVE_ALLOCA_H): Add.
774         * simcommon.h: Add alloca support.
775         (DECLARE_MODULE_INSTALL_HANDLER): Define.
776         (DECLARE_OPTION_HANDLER): Define.
777         (MEM_FN): Declare using PARAMS.
778         (DECLARE_MEM_FN): Define.
779         * trace.c (trace_result): Tweak for !STDC.
780         * cgen-sim.h (UDI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
781         * cgen-utils.in (disasm_sprintf): Fix va_arg call in !STDC case.
782         * common.c (sim_print_help_fn): Use PARAMS.
783         (standard_option_handler): Fix decl for !STDC systems.
784         * memory.c: #include <stdio.h>
785         (mem_flat_{install,init,uninstall}): Fix decl for !STDC systems.
786         (mem_flat_{read,write},mem_flat_option_handler): Likewise.
787         * profile.c (profile_install): Likewise.
788         (profile_option_handler): Likewise.
789
790 Thu Dec 19 11:06:19 1996  Doug Evans  <dje@seba.cygnus.com>
791
792         * semantics.c (*): Don't suffix big unsigned numbers with "U".
793         Prefix them with 0x instead.
794
795         * cgen-sim.h (DI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
796         (SLADI,SRADI,CONVSIDI,CONVDISI): Delete, moved to simfns.h.
797         * semantics.c (machi,maclo,macwhi,macwlo,mulhi,mullo): Implement.
798         (mulwhi,mulwlo,mvtachi,mvtaclo,rac,rach): Implement.
799         * simfns.h: Add decls for functional DI,UDI,SF,DF,XF,TF support.
800         Add support for boolean and/or.
801         * utils.c: Redo naming of DI functional support.
802         (ANDDI,ORDI,ADDDI,MULDI,GEDI,LEDI,CONVHIDI): New functions.
803
804 Tue Dec 17 12:57:48 1996  Doug Evans  <dje@seba.cygnus.com>
805
806         * Directory created.