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