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