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