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