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