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