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