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