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