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