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