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