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