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