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