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