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