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