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