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