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