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