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