Fix doco on enable-sim-inline.
[platform/upstream/binutils.git] / sim / m32r / ChangeLog
1 Wed Aug 27 18:13:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
2
3         * configure: Regenerated to track ../common/aclocal.m4 changes.
4         * config.in: Ditto.
5
6 Tue Aug 26 10:39:42 1997  Andrew Cagney  <cagney@b1.cygnus.com>
7
8         * sim-if.c (sim_kill): Delete.
9         (sim_create_inferior): Add ABFD argument.
10         (sim_load): Move setting of PC from here.
11         (sim_create_inferior): To here.
12         (sim_load): Delete, use sim-hload.c instead.
13
14         * Makefile.in (SIM_OBJS): Add sim-hload.o module.
15
16 Mon Aug 25 17:50:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
17
18         * configure: Regenerated to track ../common/aclocal.m4 changes.
19         * config.in: Ditto.
20
21 Mon Aug 25 15:54:08 1997  Andrew Cagney  <cagney@b1.cygnus.com>
22
23         * sim-if.c (sim_open): Add ABFD argument.
24
25 Tue Jul 22 10:16:16 1997  Doug Evans  <dje@canuck.cygnus.com>
26
27         * sim-main.h (M32R_DEFAULT_MEM_SIZE): New macro.
28         * sim-if.c (sim_open): Use it.
29
30 Wed Jun  4 12:48:12 1997  Andrew Cagney  <cagney@b1.cygnus.com>
31
32         * sim-main.h (WITH_ENGINE): Disable the common engine for now.
33
34 Tue May 27 14:15:44 1997  Andrew Cagney  <cagney@b1.cygnus.com>
35
36         * sim-if.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
37         (sim_write): Ditto for write.
38
39         * m32r.c (do_trap): Ditto for read/write.
40
41 Tue May 20 10:18:25 1997  Andrew Cagney  <cagney@b1.cygnus.com>
42
43         * sim-if.c (sim_open): Add callback argument.
44         (sim_set_callbacks, sim_callback): Delete.
45         (sim_load): Set STATE_LOADED_P.
46
47 Mon May 19 12:55:42 1997  Andrew Cagney  <cagney@b1.cygnus.com>
48
49         * Makefile.in (SIM_OBJS): Link in sim-abort.o as a stub for
50         sim_engine_abort.
51
52 Mon May  5 12:45:28 1997  Andrew Cagney  <cagney@b1.cygnus.com>
53
54         * sim-if.c (sim_open): Update to reflect changes to core in
55         ../common/.
56         * mem-ops.h (GETMEMQI, GETMEMHI, GETMEMSI, GETMEMDI, GETMEMUQI,
57         GETMEMUHI, GETMEMUSI, GETMEMUDI, SETMEMQI, SETMEMHI, SETMEMSI,
58         SETMEMDI, SETMEMUQI, SETMEMUHI, SETMEMUSI, SETMEMUDI): Ditto.
59
60 Sat May  3 08:38:55 1997  Doug Evans  <dje@seba.cygnus.com>
61
62         * decode.c (decode): Add computed goto support.
63
64 Fri May  2 16:30:26 1997  Andrew Cagney  <cagney@b1.cygnus.com>
65
66         * mem-ops.h: Stub additional core read/write arguments.
67
68         * sim-main.h: Declare sim_cia - type SI.
69         (struct _sim_cpu): Move base type to end per common.
70         (struct _sim_state): Ditto.
71
72 Thu May  1 11:15:34 1997  Doug Evans  <dje@canuck.cygnus.com>
73
74         Merge from branch into devo.  CGEN generic files moved to common
75         directory.  K&R C support is no longer provided.
76
77 Thu Apr 24 00:39:51 1997  Doug Evans  <dje@canuck.cygnus.com>
78
79         * configure: Regenerated to track ../common/aclocal.m4 changes.
80
81 Sat Apr 12 12:57:33 1997  Felix Lee  <flee@yin.cygnus.com>
82
83         * Makefile.in, seman-cache.c: new file, for wingdb build.
84         * sim-alloca.h: fixed for wingdb.
85         
86 Mon Apr  7 13:33:29 1997  Doug Evans  <dje@seba.cygnus.com>
87
88         * decode.c (*): m32r_cgen_insn_table renamed to ..._entries.
89         * mainloop.in: Use CGEN_INSN_INDEX instead of CGEN_INSN_TYPE.
90         * simdefs.h (INSN_NAME): m32r_cgen_insn_table renamed to ..._entries.
91
92 Fri Apr  4 19:23:12 1997  Doug Evans  <dje@canuck.cygnus.com>
93
94         * cgen-utils.in (ex_illegal): Fill in abuf->length, abuf->addr.
95         (exc_illegal): Likewise.
96         * decode.c (decode_vars): Add decode_illegal.
97         * genmloop.sh: #include "cpu-opc.h".
98         * sem-switch.c (case_INSN_ILLEGAL): Declare.
99         (labels): Add case_INSN_ILLEGAL.
100         (SWITCH): Add INSN_ILLEGAL case.
101
102 Wed Mar 26 12:34:00 1997  Doug Evans  <dje@canuck.cygnus.com>
103
104         * model.c (model_module): Use 0 not NULL.
105
106         * genmloop.sh (sim_main_loop): Handle k&r c.
107
108         * sem-switch.c: Regenerate to get k&r c support.
109         * semantics.c: Likewise.
110
111         * m32r.c (ADD_{OV,CA}_SI,SUB_{OV,CA}_SI): Renamed to {ADD,SUB}[OC]FSI.
112         (ADDCSI,SUBCSI): New functions.
113         * sem-switch.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
114         * semantics.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
115
116         * simcache.c (simcache_{install,init,uninstall}): Use
117         DECLARE_MODULE_INSTALL_HANDLER.
118         (simcache_option_handler): Use DECLARE_OPTION_HANDLER.
119
120         * utils.c: #include "semops.h".
121
122 Tue Mar 11 14:30:26 1997  Doug Evans  <dje@seba.cygnus.com>
123
124         * profile.c (profile_print_simcache): Fix thinko in printf text.
125
126         * simdefs.h (struct argbuf): Add member to fmt_20 so it's not empty.
127
128 Mon Mar 10 11:06:29 1997  Doug Evans  <dje@seba.cygnus.com>
129
130         * m32r.c (h_cr_get): Rewrite.
131         (h_cr_set): Rewrite.
132         * sem-switch.c (rte): bcarry renamed to bcond.
133         * semantics.c (rte): Likewise.
134         * simdefs.h (CPU_STATE): Likewise.
135
136         * config.in (HAVE_SYS_TIME_H): Add.
137         * configure.in: Check for sys/time.h.
138         * configure: Regenerated.
139         * utils.c: Include sys/time.h if present.
140
141         * common.c (sim_parse_args): Account for NULL terminating entry
142         in long_options table.
143
144         * genmloop.sh (RUN_FAST_P): Don't run fast if tracing.
145         Always use cache if configured in.
146         * mainloop.in (do_extract_insn{16,32}): New functions.
147         (normal,fast): Call them.  Handle starting in left slot.
148         * simcache.c (simcache_option_handler): Disallow -c0.
149         * sem-switch.c (TRACE_RESULT): Redefine so no tracing.
150
151         * profile.c (profile_print_simcache): Fix percentage calc.
152
153         * Makefile.in (INCLUDE_DEPS): Delete simcommon.h.
154
155 Sun Mar  9 20:42:17 1997  Doug Evans  <dje@seba.cygnus.com>
156
157         * Makefile.in (COMMON_{PRE,POST}_CONFIG_FRAG): Add delimiters for.
158         (M32R_INCLUDE_DEPS): Use cpu-sim.h instead of m32r-sim.h.
159         Add mod-list.h.
160         (mrun.o): Don't depend on M32R_INCLUDE_DEPS.
161         (sim-if.o,m32r.o,utils.o): Likewise.
162         (common.o): Don't explicitly depend on mod-list.h.
163         (mainloop.c): Pass CPU to genmloop.sh.
164         (stamp-modules): Depend on configure.
165         (decode.o): Depend on decode,h, memops.h, semops.h, cpu-opc.h.
166         (extract.o): Depend on decode.h, memops.h, semops.h.
167         (semantics.o,seman-cache.o): Likewise.
168         (model.o,ops.o): Depend on memops.h.
169         (extr-cache.o): Disable building for the moment.
170
171         * simcommon.h: Delete, move contents into cgen-sim.h.
172         * cgen-sim.h: Don't include ansidecl.h,bfd.h,simfns.h.
173         (UINT,CGEN_CAT3): Define.
174         ({extract,semantic}_fn_t): Renamed to {EXTRACT,SEMANTIC}_FN.
175         (decode_t): Renamed to DECODE.
176
177         * simfns.h: Delete, contents moved to memops.h,semops.h.
178         * memops.h: New file.
179         * semops.h: New file.
180         * decode.h: Renamed from semantics.h.
181
182         * sim-argv.h: New file.
183         * Makefile.in (memory.o,trace.o,profile.o,simcache.o,common): Add
184         dependency of sim-argv.h.
185
186         * sim-alloca.h: New file.
187         * common.c: Include it.
188         * Makefile.in (common.o): Add dependency.
189
190         * config.in (HAVE_TIME_H,HAVE_SYS_RESOURCE_H): Add.
191         (HAVE_GETRUSAGE,HAVE_TIME): Add.
192         * configure.in: sinclude ../common/aclocal.m4.
193         Check for headers time.h, sys/resource.h.
194         Check for functions time, getrusage.
195         (sim_link_{files,links}): Add link cpu-opc.h.
196         (sim_profile): Add simcache.
197         (SIM_AC_PROFILE): Add simcache, profile.o.
198         (simcache module): Delete extr-cache.o for now.
199         (--enable-sim-cache): Allow specification of default cache size.
200         * configure: Regenerated.
201
202         * decode.c: #include cgen-sim.h,memops.h,semops.h,decode.h,
203         cpu-sim.h,cpu-opc.h.  Don't include m32r-sim.h.
204         Regenerate.
205
206         * extract.c: #include cgen-sim.h,decode.h,cpu-sim.h.
207         Don't include m32r-sim.h.
208         (*): Define/Undef FLD macro.  Use it to reference ARGBUF.
209         Simplify profiling test with PROFILE_MODEL_P.
210         (mvfc,mvtc): Fix access of control registers.
211         * semantic.c: #include cgen-sim.h,memops.h,semops.h,decode.h,cpu-sim.h.
212         Don't include m32r-sim.h.
213         (*): Define/Undef FLD macro.  Use it to reference ARGBUF.
214         Simplify profiling test with PROFILE_MODEL_P.
215         (mvfc,mvtc): Fix access of control registers.
216
217         * sem-switch.c: New file, for GCC computed goto support.
218
219         * genmloop.sh: Add #include's of bfd.h,callback.h,cgen-sim.h,
220         memops.h,semops.h,trace.h,cpu-sim.h.
221         (RUN_FAST_P): Change default to run fast if cache size > 0
222         and not profiling.
223         (sim_main_loop): Record execution time.
224         Record instruction count even in fast mode.
225         (init): Allow cpu to provide init code in mainloop.in.
226         (FAST): Define as 0 or 1 depending on fast mode.
227         * mainloop.in (normal): Combine with fast case.
228         Add support for GCC computed gotos.  Count simcache hits/misses.
229         (init): Initialize "switch" labels if GNUC.
230
231         * cgen-utils.in: Don't include opcode/cgen.h.
232         Include cgen-sim.h, cpu-opc.h.
233         * common.c: Don't include simcommon.h,mod-list.h.  Include cgen-sim.h.
234         * m32r-sim.h: Don't include mod-list.h
235         (RUN_FAST_P): Delete.
236         * m32r.c: Don't include profile.h.  #include ansidecl.h,cgen-sim.h,
237         semops.h,memory.h,trace.h
238         (h_cr_get,h_cr_set): New functions.
239         * memory.c: #include cgen-sim.h,callback.h.
240         * ops.c: Don't include profile.h,m32r-sim.h.
241         Include cgen-sim.h,memops.h,cpu-sim.h.
242         (MEMOPS_DEFINE_INLINE): Renamed from SIMFNS_DEFINE_INLINE.
243         * trace.c: Include cgen-sim.h,cpu-opc.h.
244         * trace.h (trace_insn_{init,fini}): Declare.
245
246         * model.c: Don't include signal.h,stdlib.h,m32r-sim.h.
247         Include cgen-sim.h,cpu-sim.h,cpu-opc.h.
248         Regenerate to get new insn aliases.
249
250         * mrun.c: #include "ansidecl.h".
251         (STATE): Use struct sim_state instead.
252
253         * profile.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
254         Don't include simcommon.h.  Include cgen-sim.h,cpu-opc.h.
255         (PROFILE_{READ,WRITE}_MASK): Replace with PROFILE_MEMORY_MASK.
256         (profile_print_simcache): New function.
257         (profile_print): Call it.  Print simulator speed stats.
258         * profile.h (PROFILE_{READ,WRITE}_MASK): Replace with
259         PROFILE_MEMORY_MASK.
260         (MODULE_PROFILE_SIMCACHE_P): Define.
261         (PROFILE_SIMCACHE_MASK): Define.
262         (PROFILE_COUNT): New members total_insn_count,exec_time.
263         New members simcache_hits,simcache_misses.
264         (PROFILE_SIMCACHE_{HITS,MISSES}): Define.
265         (PROFILE_MODEL_P): New macro.
266         (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): New macros.
267
268         * sim-if.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
269         Don't include simcommon.h,m32r-sim.h.  Include cgen-sim.h,cpu-sim.h.
270         (sim_resume): Use USING_SIMCACHE_P instead of RUN_FAST_P.
271         (sim_info): Pass verbose to profile_print.
272
273         * simcache.c: Include cgen-sim.h,callback.h.
274         (USING_SIMCACHE_P): Replace with SIMCACHE_P.
275         (simcache_option_handler): Ensure cache size at least 2.
276         Allow config time specification of default cache size.
277         * simcache.h (struct simcache): Support GCC computed gotos.
278         (SIMCACHE_DEFAULT_CACHE_SIZE): USe CONFIG_SIM_CACHE_SIZE if defined.
279         (USING_SIMCACHE_P): New macro.
280
281         * simdefs.h: Don't include m32r-opc.h.
282         (CGEN_MAX_SIM_INSNS): Define.
283         (CPU_STATE): Regenerate.
284         (ARGBUF): Regenerate.
285         (extract,semantic handler decls): Delete, moved to decode.h.
286
287         * tconfig.in: Don't include cgen-sim.h,m32r-sim.h.
288         (USE_SEM_SWITCH): Define.
289
290         * utils.c: Include bfd.h,time.h,sys/resource.h.
291         (sim_time_get,sim_time_elapsed): New functions.
292         * cgen-sim.h (SIM_TIME,sim_time_get,sim_time_elapsed): Declare.
293
294 Fri Jan 31 20:25:06 1997  Doug Evans  <dje@canuck.cygnus.com>
295
296         * configure.in (AC_CHECK_HEADERS): Handle i386-windows.
297         * configure: Regenerated.
298         * model.c: #include <stdlib.h>.
299         * simcache.c: #include "libiberty.h".
300         * simcommon.h (alloca): Handle i386-windows.
301
302         * common.c: #include libiberty.h.
303         (sim_signal_to_host): Return 5 if wingdb.
304
305 Mon Jan 27 15:22:49 1997  Doug Evans  <dje@seba.cygnus.com>
306
307         * configure.in (sim_cache): Enabled by default now, pass default
308         cache size to --enable-sim-cache.
309         * simcache.c (simcache_option_handler): Allow -c 0.
310
311         * simdefs.h,simfns.h: Regenerate
312         * decode.c,extract.c,model.c,ops.c,semantics.c: Regenerate.
313
314 Tue Jan 21 16:21:01 1997  Doug Evans  <dje@seba.cygnus.com>
315
316         Add model profiling support.
317         * configure.in: Handle --enable-sim-model.
318         (sim_profile): Add model.
319         * Makefile.in (model.o): Add rule.
320         * cgen-sim.h (UNIT,INSN_TIMING,MACH,MODEL): New types.
321         * extract.c (*): Add model profiling support.
322         * m32r.c (model_mark_{get,set}_h_gr): New functions.
323         (model_mark_{busy,unbusy}_reg): New functions.
324         * profile.c (profile_option_handler): Recognize --profile model.
325         (profile_print_model): New function.
326         (profile_print): Call it.
327         * profile.h (MODULE_profile_model,MODULE_PROFILE_MODEL_P): Define.
328         (PROFILE_MODEL_MASK,PROFILE_LABEL_WIDTH): Define.
329         (PROFILE_COUNT): New members cycle_count,cti_stall_count,
330         load_stall_count,taken_count,untaken_count.
331         * semantics.c (*): Add model profiling support.
332         * simcommon.h (struct sim_state): New members mach,model.
333         * simdefs.h (CPU_PROFILE,MODEL_TYPE,UNIT_TYPE): New type.
334         (MAX_MODELS,MAX_UNITS): Define.
335         * tconfig.in (STATE_EXTRA_MEMBERS): Add cpu_profile.
336
337         * Makefile.in (INCLUDE_DEPS): Add $(SIM_MODULES_HDRS).
338         (stamp-modules): Depend on genmodlist.sh.
339         * common.c (standard_options): Add --max-insns.
340         (copy_argv): New function.
341         * tconfig.in (SIM_HAVE_MAX_INSNS): Define.
342         * genmloop.sh: Allow mainloop.in to contain support code.
343         * mainloop.in: Move do_insn16,do_insn32 here.
344         * m32r.c (do_trap): Handle SYS_argvlen,SYS_argv,SYS_read.
345         * sim-if.c (sim_open): Don't set max insn count.
346         (sim_create_inferior): Save argv,envp.
347         * simcommon.h (struct sim_state): New members argv,envp.
348         * simdefs.h ([GS]ETTWI,[GS]ETTUWI,[GS]ETTAI): Define.
349         ([GS]ETMEMWI,[GS]ETMEMUWI,[GS]ETMEMAI): Define.
350         (ARGBUF): New members h_gr_get, h_gr_set.
351         * trace.c (trace_insn_init,trace_insn_fini): New functions.
352         (trace_printf): Print to buffer, output later by trace_insn_fini.
353         * trace.h (TRACE_INSN_{INIT,FINI}): Define.
354
355 Thu Dec 19 16:01:59 1996  Doug Evans  <dje@canuck.cygnus.com>
356
357         * configure.in (AC_FUNC_ALLOCA): Call.
358         * configure: Regenerate.
359         * config.h (HAVE_ALLOCA_H): Add.
360         * simcommon.h: Add alloca support.
361         (DECLARE_MODULE_INSTALL_HANDLER): Define.
362         (DECLARE_OPTION_HANDLER): Define.
363         (MEM_FN): Declare using PARAMS.
364         (DECLARE_MEM_FN): Define.
365         * trace.c (trace_result): Tweak for !STDC.
366         * cgen-sim.h (UDI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
367         * cgen-utils.in (disasm_sprintf): Fix va_arg call in !STDC case.
368         * common.c (sim_print_help_fn): Use PARAMS.
369         (standard_option_handler): Fix decl for !STDC systems.
370         * memory.c: #include <stdio.h>
371         (mem_flat_{install,init,uninstall}): Fix decl for !STDC systems.
372         (mem_flat_{read,write},mem_flat_option_handler): Likewise.
373         * profile.c (profile_install): Likewise.
374         (profile_option_handler): Likewise.
375
376 Thu Dec 19 11:06:19 1996  Doug Evans  <dje@seba.cygnus.com>
377
378         * semantics.c (*): Don't suffix big unsigned numbers with "U".
379         Prefix them with 0x instead.
380
381         * cgen-sim.h (DI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
382         (SLADI,SRADI,CONVSIDI,CONVDISI): Delete, moved to simfns.h.
383         * semantics.c (machi,maclo,macwhi,macwlo,mulhi,mullo): Implement.
384         (mulwhi,mulwlo,mvtachi,mvtaclo,rac,rach): Implement.
385         * simfns.h: Add decls for functional DI,UDI,SF,DF,XF,TF support.
386         Add support for boolean and/or.
387         * utils.c: Redo naming of DI functional support.
388         (ANDDI,ORDI,ADDDI,MULDI,GEDI,LEDI,CONVHIDI): New functions.
389
390 Tue Dec 17 12:57:48 1996  Doug Evans  <dje@seba.cygnus.com>
391
392         * Directory created.