OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [m32r/] [ChangeLog] - Blame information for rev 452

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
2006-12-21  Hans-Peter Nilsson  
2
 
3
        * acconfig.h: Remove.
4
        * config.in: Regenerate.
5
 
6
2006-06-13  Richard Earnshaw  
7
 
8
        * configure: Regenerated.
9
 
10
2006-06-05  Daniel Jacobowitz  
11
 
12
        * configure: Regenerated.
13
 
14
2006-05-31  Daniel Jacobowitz  
15
 
16
        * configure: Regenerated.
17
 
18
2005-03-23  Mark Kettenis  
19
 
20
        * configure: Regenerate.
21
 
22
2005-01-14  Andrew Cagney  
23
 
24
        * configure.ac: Sinclude aclocal.m4 before common.m4.  Add
25
        explicit call to AC_CONFIG_HEADER.
26
        * configure: Regenerate.
27
 
28
2005-01-12  Andrew Cagney  
29
 
30
        * configure.ac: Update to use ../common/common.m4.
31
        * configure: Re-generate.
32
 
33
2005-01-11  Andrew Cagney  
34
 
35
        * configure: Regenerated to track ../common/aclocal.m4 changes.
36
 
37
2005-01-07  Andrew Cagney  
38
 
39
        * configure.ac: Rename configure.in, require autoconf 2.59.
40
        * configure: Re-generate.
41
 
42
2004-12-09  Kazuhiro Inaoka 
43
 
44
        Committed by Kei Sakamoto.
45
        * traps-linux.c (m32r_trap): Add entries of the following dummy system
46
        calls: __NR_mmap2, __NR_lchown32, __NR_getuid32, __NR_getgid32,
47
        __NR_geteuid32, __NR_getegid32, __NR_getgroups32, __NR_fchown32,
48
        __NR_setfsuid32, __NR_setfsgid32, __NR_getresuid32,
49
        __NR_getresgid32 and __NR_chown32.
50
        * syscall.h: Add new definitions of system call number.
51
 
52
2004-12-08  Hans-Peter Nilsson  
53
 
54
        * configure: Regenerate for ../common/aclocal.m4 update.
55
 
56
2004-10-07  Kazuhiro Inaoka 
57
 
58
        Committed by Andrew Cagney.
59
        * traps-linux.c: Don't include linux/module.h.
60
        (m32r_trap): Remove dummy systemcall's entry of __NR_ustat and
61
        __NR_get_kernel_syms.
62
 
63
2004-05-18  Daniel Jacobowitz  
64
 
65
        * Makefile.in (stamp-xmloop, stamp-2mloop): Use -outfile-suffix.
66
 
67
2004-02-04  Andrew Cagney  
68
 
69
        Committed by Andrew Cagney.
70
        * mloopx.in: Update copyright.
71
        (xextract-pbb): Fixed trap for system calls operation in parallel.
72
        * mloop2.in (xextract-pbb): Ditto.
73
 
74
2003-12-19  Kazuhiro Inaoka  
75
 
76
        * configure.in: Changed for dummy simulator of m32r-linux.
77
        * configure: Regenerate.
78
        * Makefile.in: Added traps-linux.o for dummy simulator of m32r-linux.
79
        * traps-linux.c: Added for dummy simulator of m32r-linux.
80
        * syscall.h: Ditto.
81
        * sim-if.c (sim_create_inferior): Changed to setup SP for dummy
82
        simulator for m32r-linux.
83
        * sim-main.h (M32R_DEFAULT_MEM_SIZE): Changed for dummy simulator of
84
        m32r-linux.
85
 
86
2003-12-11  Kazuhiro Inaoka  
87
 
88
        * Makefile.in: Add support for new machine m32r2.
89
        * cpu2.c: New file for m32r2 support.
90
        * cpu2.h: Likewise.
91
        * decode2.c: Likewise.
92
        * decode2.h: Likewise.
93
        * m32r2.c: Likewise.
94
        * mloop2.in: Likewise.
95
        * model2.c: Likewise.
96
        * sem2-switch.c: Likewise.
97
        * arch.c: Regenerate.
98
        * arch.h: Regenerate.
99
        * cpu.c: Regenerate.
100
        * arch.c: Regenerate.
101
        * cpuall.c: Regenerate.
102
        * cpux.c: Regenerate.
103
        * cpux.h: Regenerate.
104
        * decode.c: Regenerate.
105
        * decode.h: Regenerate.
106
        * decodex.c: Regenerate.
107
        * decodex.h: Regenerate.
108
        * model.c: Regenerate.
109
        * modelx.c: Regenerate.
110
        * sem-switch.c: Regenerate.
111
        * sem.c: Regenerate.
112
        * semx-switch.c: Regenerate.
113
        * m32r-sim.h: Add EVB register support.
114
        * sim-if.c: Likewise.
115
        * sim-main.h: Likewise.
116
        * traps.c: Likewise.
117
 
118
2003-09-08  Dave Brolley  
119
 
120
        On behalf of Doug Evans 
121
        * Makefile.in (stamp-arch,stamp-cpu,stamp-xcpu): Pass archfile to cgen.
122
 
123
2003-02-27  Andrew Cagney  
124
 
125
        * sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
126
 
127
2002-12-19  Doug Evans  
128
 
129
        * arch.c,arch.h,cpuall.h: Regenerate.
130
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Regenerate.
131
        * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Regenerate.
132
 
133
2002-06-16  Andrew Cagney  
134
 
135
        * configure: Regenerated to track ../common/aclocal.m4 changes.
136
 
137
2001-11-14  Dave Brolley  
138
 
139
        * arch.c: Regenerate.
140
        * arch.h: Regenerate.
141
        * cpu.c: Regenerate.
142
        * cpu.h: Regenerate.
143
        * cpuall.h: Regenerate.
144
        * cpux.c: Regenerate.
145
        * cpux.h: Regenerate.
146
        * decode.c: Regenerate.
147
        * decode.h: Regenerate.
148
        * decodex.c: Regenerate.
149
        * decodex.h: Regenerate.
150
        * model.c: Regenerate.
151
        * modelx.c: Regenerate.
152
        * sem-switch.c: Regenerate.
153
        * sem.c: Regenerate.
154
        * semx-switch.c: Regenerate.
155
 
156
2001-07-05  Ben Elliston  
157
 
158
        * Makefile.in (stamp-arch): Use $(CGEN_CPU_DIR).
159
        (stamp-cpu): Likewise.
160
        (stamp-xcpu): Likewise.
161
 
162
2001-03-05  Dave Brolley  
163
 
164
        * arch.c: Regenerate.
165
        * arch.h: Regenerate.
166
        * cpu.c: Regenerate.
167
        * cpu.h: Regenerate.
168
        * cpuall.h: Regenerate.
169
        * cpux.c: Regenerate.
170
        * cpux.h: Regenerate.
171
        * decode.c: Regenerate.
172
        * decode.h: Regenerate.
173
        * decodex.c: Regenerate.
174
        * decodex.h: Regenerate.
175
        * model.c: Regenerate.
176
        * modelx.c: Regenerate.
177
        * sem-switch.c: Regenerate.
178
        * sem.c: Regenerate.
179
        * semx-switch.c: Regenerate.
180
 
181
2001-01-12  Frank Ch. Eigler  
182
 
183
        * configure: Regenerated with sim_scache fix.
184
 
185
2000-11-18  Greg McGary  
186
 
187
        * Makefile.in: remove `@true' commands for rules that have
188
        $(CGEN_MAINT) as a prerequisite.
189
 
190
2000-10-06  Dave Brolley  
191
 
192
        * sem.c: Regenerated.
193
        * sem-switch.c: Regenerated.
194
        * semx-switch.c: Regenerated.
195
 
196
2000-08-28  Dave Brolley  
197
 
198
        * Makefile.in: Use of @true confuses VPATH. Remove it.
199
        * cpu.h: Regenerated.
200
        * cpux.h: Regenerated.
201
        * decode.c: Regenerated.
202
        * decodex.c: Regenerated.
203
        * model.c: Regenerated.
204
        * modelx.c: Regenerated.
205
        * sem-switch.c: Regenerated.
206
        * sem.c: Regenerated.
207
        * semx-switch.c: Regenerated.
208
 
209
2000-08-21  Frank Ch. Eigler  
210
 
211
        * Makefile.in (m32r-clean): Add stamp-arch, stamp-cpu.
212
        (stamp-arch, stamp-cpu): New targets.
213
 
214
Tue May 23 21:39:23 2000  Andrew Cagney  
215
 
216
        * configure: Regenerated to track ../common/aclocal.m4 changes.
217
 
218
2000-03-30  Dave Brolley  
219
 
220
        * configure: Regenerated.
221
 
222
1999-10-04  Doug Evans  
223
 
224
        * arch.c,arch.h,cpuall.h: Rebuild.
225
        * cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Rebuild.
226
 
227
1999-09-29  Doug Evans  
228
 
229
        * mloop.in: Update call to sim_engine_invalid_insn.
230
        * sem.c,sem-switch.c: Rebuild.
231
        * traps.c (sim_engine_invalid_insn): New arg `vpc'.  Change type of
232
        result to SEM_PC.  Return vpc.
233
        * mloopx.in: Ditto.
234
        * semx-switch.c: Rebuild.
235
 
236
Wed Sep 29 14:47:20 1999  Dave Brolley  
237
 
238
        * traps.c (sim_engine_invalid_insn): Return PC.
239
 
240
Thu Sep  2 18:15:53 1999  Andrew Cagney  
241
 
242
        * configure: Regenerated to track ../common/aclocal.m4 changes.
243
 
244
1999-09-01  Doug Evans  
245
 
246
        * decodex.c: Rebuild.
247
 
248
1999-08-28  Doug Evans  
249
 
250
        * sem.c: Rebuild
251
 
252
        * cpux.h: Rebuild.
253
 
254
1999-08-09  Doug Evans  
255
 
256
        * cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Rebuild.
257
        * cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Rebuild.
258
 
259
1999-08-04  Doug Evans  
260
 
261
        * m32r-sim.h (SEM_SKIP_INSN): Delete.
262
        * cpu.h,cpuall.h,decode.c,model.c,sem-switch.c,sem.c: Rebuild.
263
        * cpux.h,decodex.c,modelx.c,semx-switch.c: Rebuild.
264
        * mloopx.in (emit_parallel): Call SEM_SKIP_COMPILE.
265
        (emit_full_parallel): Ditto.
266
 
267
1999-05-08  Felix Lee  
268
 
269
        * configure: Regenerated to track ../common/aclocal.m4 changes.
270
 
271
Fri Apr 16 16:47:43 1999  Doug Evans  
272
 
273
        * devices.c (device_io_read_buffer): New arg `sd'.
274
        (device_io_write_buffer): New arg `sd'.
275
        (device_error): Give proper arg spec.
276
 
277
1999-04-10  Doug Evans  
278
 
279
        * sem-switch.c,sem.c: Rebuild.
280
        * cpux.h,semx-switch.c: Rebuild.
281
 
282
1999-03-27  Doug Evans  
283
 
284
        * decode.c: Rebuild.
285
        * decodex.c: Rebuild.
286
 
287
1999-03-26  Doug Evans  
288
 
289
        * m32r-sim.h (M32R_DEVICE_LEN): Fix off by one error.
290
 
291
1999-03-22  Doug Evans  
292
 
293
        * arch.c,arch.h,model.c: Rebuild.
294
        * modelx.c: Rebuild.
295
        * m32r-sim.h (a_m32r_h_gr_get,a_m32r_h_gr_set): Declare.
296
        (a_m32r_h_cr_get,a_m32r_h_cr_set): Declare.
297
        * m32r.c (m32rbf_fetch_register): Replace calls to a_m32r_h_pc_get,
298
        a_m32r_h_accum_get with appropriate calls to m32rbf_*.
299
        (m32rbf_store_register): Ditto.
300
        (a_m32r_h_gr_get,a_m32r_h_gr_set): New functions.
301
        (a_m32r_h_cr_get,a_m32r_h_cr_set): Ditto.
302
        * sim-if.c (sim_open): Update call to m32r_cgen_cpu_open.
303
        * traps.c (m32r_core_signal): Replace calls to a_m32r_h_*,
304
        with appropriate calls to m32rbf_*.
305
 
306
1999-03-11  Doug Evans  
307
 
308
        * arch.c,arch.h,cpu.c,cpu.h,sem.c,sem-switch.c: Rebuild.
309
        * cpux.c,cpux.h,semx-switch.c: Rebuild.
310
        * m32r-sim.h (GET_H_*,SET_H_*, except GET_H_SM): Delete.
311
        * sim-if.c (sim_open): Update call to m32r_cgen_cpu_open.
312
 
313
1999-02-25  Doug Evans  
314
 
315
        * cpu.c,cpu.h: Rebuild.
316
 
317
1999-02-09  Doug Evans  
318
 
319
        * Makefile.in (SIM_EXTRA_DEPS): Add m32r-desc.h, delete cpu-opc.h.
320
        (stamp-xmloop): s/-parallel/-parallel-write/.
321
        * configure.in (sim_link_files,sim_link_links): Delete.
322
        * configure: Rebuild.
323
        * decode.c,decode.h,model.c,sem-switch.c,sem.c: Rebuild.
324
        * decodex.c,decodex.h,modelx.c,semx-switch.c: Rebuild.
325
        * mloop.in (execute): CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
326
        * sim-if.c (sim_open): m32r_cgen_cpu_open renamed from
327
        m32r_cgen_opcode_open.  Set disassembler.
328
        (sim_close): m32r_cgen_cpu_open renamed from m32r_cgen_opcode_open.
329
        * sim-main.h: Don't include cpu-opc.h,cpu-sim.h. Include
330
        m32r-desc.h,m32r-opc.h,m32r-sim.h.
331
 
332
Thu Feb  4 16:04:26 1999  Doug Evans  
333
 
334
        * cpux.h,decodex.c,modelx.c,semx-switch.c: Regenerate.
335
 
336
1999-01-27  Doug Evans  
337
 
338
        * cpu.h,decode.c,model.c,sem-switch.c,sem.c: Rebuild.
339
        * cpux.h,decodex.c,modelx.c,semx-switch.c: Rebuild.
340
 
341
1999-01-15  Doug Evans  
342
 
343
        * decode.h,model.c: Regenerate.
344
        * decodex.h,modelx.c: Regenerate.
345
 
346
1999-01-14  Doug Evans  
347
 
348
        * arch.c,arch.h,cpuall.h: Regenerate.
349
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Regenerate.
350
        * traps.c (sim_engine_invalid_insn): PCADDR->IADDR.
351
        * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Regenerate.
352
 
353
1999-01-11  Doug Evans  
354
 
355
        * Makefile.in (m32r-clean): rm eng.h.
356
        * sim-main.h: Delete inclusion of ansidecl.h.
357
        * cpu.h: Regenerate.
358
        * cpux.h: Regenerate.
359
 
360
1999-01-06  Doug Evans  
361
 
362
        * cpu.h: Regenerate.
363
        * cpux.h: Regenerate.
364
 
365
1999-01-05  Doug Evans  
366
 
367
        * Makefile.in (MAIN_INCLUDE_DEPS): Delete.
368
        (INCLUDE_DEPS,OPS_INCLUDE_DEPS): Delete.
369
        (sim-if.o): Use SIM_MAIN_DEPS.
370
        (arch.o,traps.o,devices.o): Ditto.
371
        (M32RBF_INCLUDE_DEPS): Use CGEN_MAIN_CPU_DEPS.
372
        (m32r.o,mloop.o,cpu.o,decode.o,sem.o,model.o): Simplify dependencies.
373
        (m32rx.o,mloopx.o,cpux.o,decodex.o,semx.o,modelx.o): Ditto.
374
        * cpu.c,cpu.h,decode.c,model.c,sem-switch.c,sem.c: Regenerate.
375
        * m32r-sim.h (m32rbf_h_cr_[gs]et_handler): Declare.
376
        ([GS]ET_H_CR): Define.
377
        (m32rbf_h_psw_[gs]et_handler): Declare.
378
        ([GS]ET_H_PSW): Define.
379
        (m32rbf_h_accum_[gs]et_handler): Declare.
380
        ([GS]ET_H_ACCUM): Define.
381
        (m32rxf_h_{cr,psw,accum}_[gs]et_handler): Declare.
382
        (m32rxf_h_accums_[gs]et_handler): Declare.
383
        ([GS]ET_H_ACCUMS): Define.
384
        * sim-if.c (sim_open): Model probing code moved to sim-model.c.
385
        * m32r.c (WANT_CPU): Define as m32rbf.
386
        (all register access fns): Rename to ..._handler.
387
        * cpux.c,cpux.h,decodex.c,modelx.c,semx.c: Regenerate.
388
        * m32rx.c (WANT_CPU): Define as m32rxf.
389
        (all register access fns): Rename to ..._handler.
390
 
391
1998-12-14  Doug Evans  
392
 
393
        * configure.in: --enable-cgen-maint support moved to common/aclocal.m4.
394
        (SIM_AC_OPTION_ALIGNMENT): Make strict.
395
        * configure: Regenerate.
396
 
397
        * sem-switch.c,sem.c,semx-switch.c: Regenerate.
398
        * sim-main.h (SIM_ENGINE_HALT_HOOK,SIM_ENGINE_RESTART_HOOK): Define.
399
        * traps.c (m32r_core_signal): Handle --environment=operating.
400
 
401
1998-12-09  Doug Evans  
402
 
403
        * cpu.h,decode.c,sem-switch.c,sem.c: Regenerate.
404
        * cpux.h,decodex.c,semx-switch.c: Regenerate.
405
 
406
        * sim-if.c: Include string.h or strings.h if present.
407
 
408
1998-12-04  Doug Evans  
409
 
410
        * configure.in: Call SIM_AC_OPTION_INLINE.
411
        * configure: Regenerate.
412
        * sim-main.h: Protect against multiple inclusion.
413
        Don't include cgen-scache.h,cgen-cpu.h,cgen-trace.h,cpuall.h.
414
        Done by cgen-sim.h now.
415
        * tconfig.in (SIM_HAVE_MODEL): Delete, moved to cgen-types.h.
416
        * cpuall.h: Regenerate.
417
        * cpu.h,decode.c,sem-switch.c,sem.c: Regenerate.
418
        * mloop.in (extract16): Make static inline again.
419
        Simplify with call to @cpu@_fill_argbuf,@cpu@_fill_argbuf_tp.
420
        (extract32): Ditto.
421
        Simplify with call to @cpu@_fill_argbuf,@cpu@_fill_argbuf_tp.
422
        (execute): Test ARGBUF_PROFILE_P before profiling.
423
        Update calls to TRACE_INSN_INIT,TRACE_INSN_FINI.
424
        * cpux.h,decodex.c,modelx.c,semx-switch.c: Regenerate.
425
        * mloopx.in: Rewrite.
426
 
427
1998-11-22  Doug Evans  
428
 
429
        * devices.c (device_io_write_buffer): Fix typo.
430
        * sim-if.c (sim_open): Hack in call to dv_sockser_install.
431
        * tconfig.in (HAVE_DV_SOCKSER): Add but comment out.
432
 
433
1998-11-18  Doug Evans  
434
 
435
        * Makefile.in (M32R_OBJS): Delete extract.o.
436
        (extract.o): Delete.
437
        * cpu.c,cpu.h,decode.c,decode.h,sem-switch.c,sem.c: Rebuild.
438
        * mloop.in (extract16): Update type of `insn' arg.
439
        Delete call to d->extract.
440
        (extract32): Ditto.
441
        * cpux.c,cpux.h,decodex.c,decodex.h,semx-switch.c: Rebuild.
442
        * mloopx.in (extractx16): Update type of `insn' arg.
443
        Delete call to d->extract.  Delete arg pbb_p.  All callers updated.
444
        (extract-simple,full-exec-simple,fast-exec-simple): Delete.
445
        (extractx32): Ditto.
446
 
447
Wed Nov  4 23:55:37 1998  Doug Evans  
448
 
449
        * sim-main.h: Delete inclusion of config.h, include sim-basics.h
450
        before cgen-types.h.
451
        * tconfig.in: Guard against multiple inclusion.
452
        * cpu.h: Delete decls moved to genmloop.sh.
453
        * cpux.h: Ditto.
454
 
455
Mon Oct 19 14:13:05 1998  Doug Evans  
456
 
457
        * sim-main.h: #include cpu-opc.h.
458
        * arch.c,arch.h,decode.c,extract.c,model.c,sem.c: Regenerate
459
        to get #include cleanup.
460
        * decodex.c,extractx.c,modelx.c: Ditto.
461
 
462
        * Makefile.in (SIM_EXTRA_DEPS): Replace cgen headers with
463
        CGEN_INCLUDE_DEPS.
464
        (M32RBF_INCLUDE_DEPS): Define.
465
        (m32r .o's): Depend on it.
466
        (mloop.c): Update call to genmloop.sh.
467
        * cpu.h,cpuall.h: Regenerate.
468
        * sim-main.h: Delete inclusion of cpu.h,decode.h, moved to cpuall.h.
469
        #include cgen-scache.h,cgen-cpu.h.
470
        * tconfig.in (WITH_FOO semantic macros): Delete.
471
        * Makefile.in (M32RXF_INCLUDE_DEPS): Define.
472
        (m32rx .o's): Depend on it.
473
        (mloopx.c): Update call to genmloop.sh.
474
        * cpux.h: Regenerate.
475
 
476
Fri Oct 16 09:15:29 1998  Doug Evans  
477
 
478
        * sim-if.c (sim_do_command): Handle "sim info reg {bbpsw,bbpc}".
479
 
480
Fri Oct  9 16:11:58 1998  Doug Evans  
481
 
482
        Add pseudo-basic-block execution support.
483
        * Makefile.in (SIM_OBJS): Add sim-reg.o, cgen-run.o, sim-stop.o.
484
        (SIM_EXTRA_DEPS): Add include/opcode/cgen.h.
485
        (INCLUDE_DEPS): Delete cpu-sim.h, include/opcode/cgen.h.
486
        (mloop.c): Build pseudo-basic-block version.  Depend on stamp-cpu.
487
        * arch.c,arch.h,cpuall.h: Regenerate.
488
        * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
489
        * sem-switch.c,sem.c: Regenerate.
490
        * m32r-sim.h (M32R_MISC_PROFILE): New members load_regs,
491
        load_regs_pending.
492
        * m32r.c (m32rbf_fetch_register): Renamed from m32rb_fetch_register.
493
        (m32rbf_store_register,m32rbf_h_cr_get,m32rbf_h_cr_set,
494
        m32rbf_h_psw_get,m32rbf_h_psw_set,m32rbf_h_accum_get,
495
        m32rbf_h_accum_set): Likewise.
496
        (m32r_model_{init,update}_insn_cycles): Delete.
497
        (m32rbf_model_insn_{before,after}): New fns.
498
        (m32r_model_record_cti,m32r_model_record_cycles): Delete.
499
        (m32rb_model_mark_get_h_gr,m32rb_model_mark_set_h_gr): Delete.
500
        (m32rb_model_mark_busy_reg,m32rb_model_mark_unbusy_reg): Delete.
501
        (check_load_stall): New fn.
502
        (m32rbf_model_m32r_d_u_{exec,cmp,mac,cti,load,store}): New fns.
503
        (m32rbf_model_test_u_exec): New fn.
504
        * mloop.in: Rewrite, use pbb support.
505
        * sim-if.c (sim_stop,sim_sync_stop,sim_resume): Delete.
506
        (sim_fetch_register,sim_store_register): Delete.
507
        * sim-main.h (CIA_GET,CIA_SET): Fix.
508
        (SIM_ENGINE_HALT_HOOK,SIM_ENGINE_RESTART_HOOK): Delete.
509
        * tconfig.in (WITH_SCACHE_PBB): Define.
510
        (WITH_SCACHE_PBB_M32RBF): Define.
511
        * traps.c (sim_engine_invalid_insn): Renamed from ..._illegal_....
512
        (m32r_trap): Pass pc to sim_engine_halt.
513
        * configure.in (SIM_AC_OPTION_SCACHE): Change 1024 to 16384.
514
        * configure: Regenerate.
515
        * Makefile.in (M32RX_OBJS): Delete semx.o, add extract.o.
516
        (mloopx.c): Build pseudo-basic-block version.
517
        (semx.o): Delete.
518
        (extractx.o): Add.
519
        * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c: Regenerate.
520
        * readx.c: Delete.
521
        * semx.c: Delete.
522
        * extractx.c: New file.
523
        * semx-switch.c: New file.
524
        * m32r-sim.h (BRANCH_NEW_PC): Delete.
525
        (SEM_SKIP_INSN): New macro.
526
        * m32rx.c (m32rxf_fetch_register): Renamed from m32rx_fetch_register.
527
        (m32rxf_store_register,m32rxf_h_cr_get,m32rxf_h_cr_set,
528
        m32rxf_h_psw_get,m32rxf_h_psw_set,m32rxf_h_accum_get,
529
        m32rxf_h_accum_set,m32rxf_h_accums_get,m32rxf_h_accums_set): Likewise.
530
        (m32rxf_model_insn_{before,after}): New fns.
531
        (m32rx_model_mark_get_h_gr,m32rx_model_mark_set_h_gr): Delete.
532
        (m32rx_model_mark_busy_reg,m32rx_model_mark_unbusy_reg): Delete.
533
        (check_load_stall): New fn.
534
        (m32rxf_model_m32rx_u_{exec,cmp,mac,cti,load,store}): New fns.
535
        * mloopx.in: Rewrite, use pbb support.
536
        * tconfig.in (WITH_SCACHE_PBB_M32RXF): Define.
537
        (WITH_SEM_SWITCH_FULL): Change from 0 to 1.
538
 
539
Wed Sep 16 18:22:27 1998  Doug Evans  
540
 
541
        * m32r-sim.h ({PSW,CBR,SPI,SPU,BPC,BBPSW,BBPC}_REGNUM): New macros.
542
        ({ACC1L,ACC1H}_REGNUM): New macros.
543
        (m32r_decode_gdb_ctrl_regnum): Add prototype.
544
        * m32r.c (m32r_decode_gdb_ctrl_regnum): New function.
545
        (m32r_fetch_register,m32r_store_register): Rewrite.
546
        * m32rx.c (m32rx_fetch_register,m32rx_store_register): Rewrite.
547
 
548
Tue Sep 15 15:01:14 1998  Doug Evans  
549
 
550
        * m32r-sim.h (GET_H_SM): New macro.
551
        (UART params): Update to msa2000.
552
        * devices.c (device_io_read_buffer): Update to msa2000.
553
        * m32r.c (m32rb_h_cr_get,m32rb_h_cr_set): Handle bbpc,bbpsw.
554
        (m32rb_h_psw_get,m32rb_h_psw_set): New functions.
555
        * arch.c,arch.h,cpu.c,cpu.h,sem-switch.c,sem.c: Regenerate.
556
        * m32rx.c (m32rx_h_cr_get,m32rx_h_cr_set): Handle bbpc,bbpsw.
557
        (m32rx_h_psw_get,m32rx_h_psw_set): New functions.
558
        * cpux.c,cpux.h,readx.c,semx.c: Regenerate.
559
 
560
Wed Sep  9 15:29:36 1998  Doug Evans  
561
 
562
        * m32r-sim.h (m32r_trap): Update prototype.
563
        * traps.c (m32r_trap): New arg `pc'.
564
        * sem.c,sem-switch.c: Regenerated.
565
        * cpux.h,readx.c,semx.c: Regenerated.
566
 
567
Mon Aug  3 12:59:17 1998  Doug Evans  
568
 
569
        Rename cpu m32r to m32rb to distinguish from architecture name.
570
        * Makefile.in (mloop.c): cpu m32r renamed to m32rb.
571
        * sim-main.h (WANT_CPU_M32RB): Renamed from WANT_CPU_M32R.
572
        * tconfig.in (WANT_CPU_M32RB): Ditto.
573
        * m32r.c (WANT_CPU_M32RB): Ditto.
574
        (*): m32r_ cpu fns renamed to m32rb_.
575
        * sim-if.c (sim_stop,sim_sync_stop,sim_resume): Update.
576
        * arch.h,arch.c: Regenerate.
577
        * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
578
        * sem-switch.c,sem.c: Regenerate.
579
 
580
        * sim-if.c (sim_open): Don't allocate memory on top of any user
581
        specified memory.
582
        (h_gr_get,h_gr_set): Delete.
583
        * sim-main.h (h_gr_get,h_gr_set): Delete.
584
        * traps.c (m32r_trap): Replace calls to h_gr_[gs]et with
585
        a_m32r_h_gr_[gs]et.
586
 
587
        * Makefile.in (INCLUDE_DEPS): Add include/opcode/cgen.h.
588
 
589
        * sim-if.c (sim_open): Open opcode table.
590
        (sim_close): Close it.
591
 
592
Tue Jul 28 13:06:19 1998  Doug Evans  
593
 
594
        Add support for new versions of mulwhi,mulwlo,macwhi,macwlo that
595
        accept an accumulator choice.
596
        * cpux.c,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
597
 
598
Fri Jul 24 13:00:29 1998  Doug Evans  
599
 
600
        * m32r.c: Include cgen-mem.h.
601
        * traps.c (m32r_trap): Tweak for -Wall.
602
        * m32rx.c: Include cgen-mem.h.
603
        * semx.c: Regenerate, get -Wall cleanups.
604
 
605
Tue Jul 21 16:53:10 1998  Doug Evans  
606
 
607
        * cpu.h,extract.c: Regenerate.  pc-rel calcs done on f_dispNN now.
608
        * cpux.h,readx.c,semx.c: Ditto.
609
 
610
Wed Jul  1 16:51:15 1998  Doug Evans  
611
 
612
        * Makefile.in: cgen_maint -> CGEN_MAINT.
613
        * configure.in: AC_SUBST cgen,cgendir.  No longer look for guile.
614
        * configure: Regenerate.
615
        * arch.c,arch.h,cpuall.h: Regenerate.
616
        * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
617
        * sem-switch.c,sem.c: Regenerate.
618
        * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
619
        * semx.c: Regenerate.
620
        * mloopx.in (icount): Moved here from genmloop.sh.
621
 
622
Sat Jun 13 07:49:23 1998  Doug Evans  
623
 
624
        * m32r-sim.h (M32R_MISC_PROFILE): New members insn_cycles, cti_stall,
625
        load_stall,biggest_cycles.
626
        * m32r.c (m32r_model_mark_get_h_gr): Update.
627
        (m32r_model_init_insn_cycles,m32r_model_update_insn_cycles): New fns.
628
        (m32r_model_record_cti,m32r_model_record_cycles): New functions.
629
        * mloop.in: Call cycle init/update fns.
630
        * model.c: Regenerate.
631
        * m32rx.c (m32rx_model_mark_get_h_gr): Update.
632
        * mloopx.in: Call cycle init/update fns.
633
        * modelx.c: Regenerate.
634
 
635
Wed Jun 10 17:39:29 1998  Doug Evans  
636
 
637
        * traps.c: New file.  Trap support moved here from sim-if.c.
638
        * Makefile.in (SIM_OBJS): Add traps.o
639
        * sim-if.c: Don't include targ-vals.h.
640
        (sim_engine_illegal_insn): Moved to traps.c
641
        * sim-main.h (SIM_CORE_SIGNAL): Define.
642
        (m32r_core_signal): Declare.
643
        * m32r-sim.h (m32r_trap): Declare.
644
 
645
        * devices.c (device_io_read_buffer): Handle cache purging via MCCR
646
        register.
647
 
648
        * m32r-sim.h (M32R_MISC_PROFILE): Move here from sim-main.h.
649
        (PROFILE_COUNT_SHORTINSNS,PROFILE_COUNT_LONGINSNS): New macros.
650
        (TRAP_SYSCALL,TRAP_BREAKPOINT): New macros.
651
 
652
        * extract.c,sem-switch.c,sem.c: Regenerate.
653
        * cpux.h,readx.c,semx.c: Regenerate.
654
 
655
Wed May 20 00:10:40 1998  Doug Evans  
656
 
657
        * m32r-sim.h (PROFILE_COUNT_PARINSNS): New macro.
658
        * mloopx.in (extract): Set abuf.addr for proper fill nop counting.
659
        (execute): Count parallel insns.
660
        * sim-if.c (print_m32r_misc_cpu): Print count.
661
        * sim-main.h (M32R_MISC_PROFILE): New member parallel_count.
662
 
663
        Zero bottom two bits of pc in jmp,jl insns.
664
        * sem.c,sem-switch.c: Regenerate.
665
        * semx.c: Regenerate.
666
 
667
Tue May 19 16:45:33 1998  Doug Evans  
668
 
669
        * sim-if.c (do_trap): Treat traps 2-15 as hardware does.
670
 
671
Sat May 16 13:04:30 1998  Doug Evans  
672
 
673
        * sim-if.c (sim_stop): Update call to @cpu@_engine_stop.
674
        (sim_sync_stop): New function.
675
 
676
Fri May 15 16:43:27 1998  Doug Evans  
677
 
678
        * Makefile.in (devices.o): Add dependencies.
679
 
680
        * arch.h,cpu.c,cpu.h,cpuall.h: Regenerate.
681
        * sem-switch.c,sem.c: Regenerate.
682
        * mloop.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
683
        * cpux.c,cpux.h,modelx.c,semx.c: Regenerate.
684
        * m32rx.c (m32rx_model_mark_{busy,unbusy}_reg): New functions.
685
        * mloopx.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
686
        Fix pc value passed to TRACE_INSN for second parallel insn.
687
 
688
Thu May  7 02:51:35 1998  Doug Evans  
689
 
690
        * Makefile.in (SIM_OBJS): Add sim-cpu.o.
691
 
692
Wed May  6 14:51:39 1998  Doug Evans  
693
 
694
        * arch.h,arch.c,cpu.h,cpuall.h: Regenerate, tweaks mostly.
695
        * model.c: Ditto.  Reorganize model/mach data.
696
        * cpux.h: Ditto.
697
        * modelx.c: Ditto.
698
 
699
        * Makefile.in (m32r.o,mloop.o,cpu.o,model.o): Add decode.h dependency.
700
        (m32rx.o,mloopx.o,cpux.o,modelx.o): Add decodex.h dependency.
701
        * decode.c,decode.h: Regenerate, introduces IDESC table.
702
        * mloop.in (extract16,extract32): Add IDESC support.
703
        Update names of semantic handler member names.
704
        (execute): Ditto.  Delete call to PROFILE_COUNT_INSN.
705
        * decodex.c,decodex.h: Regenerate, introduces IDESC table.
706
        * mloopx.in: Add IDESC support.
707
        Update names of semantic handler member names.
708
        Delete call to PROFILE_COUNT_INSN.
709
 
710
        * sem-switch.c: Regenerate.  Redo computed goto label handling.
711
        * sem.c: Regenerate.  Call PROFILE_COUNT_INSN.
712
        * readx.c: Regenerate.  Redo computed goto label handling.
713
        * semx.c: Regenerate.  Call PROFILE_COUNT_INSN.  Finish profiling
714
        support.
715
 
716
        * m32r.c (m32r_fetch_register): Change result type and args to
717
        conform to sim_fetch_register interface.
718
        (m32r_store_register): Ditto for sim_store_register interface.
719
        * m32rx.c (m32rx_fetch_register): Change result type and args to
720
        conform to sim_fetch_register interface.
721
        (m32rx_store_register): Ditto for sim_store_register interface.
722
 
723
        * sim-if.c (alloc_cpu): Delete.
724
        (free_state): Uninstall modules here ...
725
        (sim_open): ... and not here.  Call sim_cpu_alloc_all.
726
        Set default architecture/model if not specified.
727
        (sim_fetch_register,sim_store_register): Rewrite.
728
 
729
        * sim-if.c (h_pc_get,h_pc_set): Delete.  Renamed to sim_pc_[gs]et
730
        and moved to common/sim-cpu.c.
731
        (sim_create_inferior): Update.
732
        (do_trap): Update.
733
        * sim-main.h (h_pc_get,h_pc_set): Delete.
734
 
735
        * sim-main.h (sim_cia): Change to USI.
736
        (sim_cpu): Move m32r_misc_profile before machine generated part.
737
 
738
Tue Apr 28 18:33:31 1998  Geoffrey Noer  
739
 
740
        * configure: Regenerated to track ../common/aclocal.m4 changes.
741
 
742
Tue Apr 28 18:05:53 1998  Nick Clifton  
743
 
744
        * model.c: Rebuilt.
745
        * modelx.c: Rebuilt.
746
 
747
Mon Apr 27 15:36:30 1998  Doug Evans  
748
 
749
        * cpu.h,model.c,sem-switch.c,sem.c: Regenerated.  Mostly comment
750
        and variable renaming due to macro insn additions.
751
        * mloop.in: Update to use CGEN_INSN_NUM.
752
        * cpux.h,modelx.c,readx.c,semx.c: Regenerated.
753
        * mloopx.in: Update to use CGEN_INSN_NUM.
754
 
755
Sun Apr 26 15:31:55 1998  Tom Tromey  
756
 
757
        * configure: Regenerated to track ../common/aclocal.m4 changes.
758
        * config.in: Ditto.
759
 
760
Sun Apr 26 15:20:05 1998  Tom Tromey  
761
 
762
        * acconfig.h: New file.
763
        * configure.in: Reverted change of Apr 24; use sinclude again.
764
 
765
Fri Apr 24 14:16:40 1998  Tom Tromey  
766
 
767
        * configure: Regenerated to track ../common/aclocal.m4 changes.
768
        * config.in: Ditto.
769
 
770
Fri Apr 24 11:19:26 1998  Tom Tromey  
771
 
772
        * configure.in: Don't call sinclude.
773
 
774
Mon Apr 20 16:12:35 1998  Doug Evans  
775
 
776
        * cpu.c,sem.c,sem-switch.c: Regenerate.  From
777
        - cgen/m32r.cpu (h-accum): Add attribute FUN-ACCESS.
778
        * m32r.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
779
        #include cgen-ops.h.
780
        * cpux.c,readx.c,semx.c: Regenerate.
781
        * m32rx.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
782
        #include cgen-ops.h.  Delete inclusion of several unnecessary headers.
783
        (m32r_h_accums_get): Sign extend top 8 bits.
784
 
785
Tue Apr 14 14:04:07 1998  Doug Evans  
786
 
787
        * semx.c: Regenerate.
788
 
789
Fri Apr 10 18:22:41 1998  Doug Evans  
790
 
791
        * cpu.h,decode.c,decode.h,extract.c,sem.c,sem-switch.c: Regenerate.
792
        * cpux.h,decodex.c,decodex.h,readx.c,semx.c: Regenerate.
793
 
794
Sat Apr  4 20:36:25 1998  Andrew Cagney  
795
 
796
        * configure: Regenerated to track ../common/aclocal.m4 changes.
797
 
798
Fri Mar 27 16:15:52 1998  Andrew Cagney  
799
 
800
        * configure: Regenerated to track ../common/aclocal.m4 changes.
801
 
802
Wed Mar 25 12:35:29 1998  Andrew Cagney  
803
 
804
        * configure: Regenerated to track ../common/aclocal.m4 changes.
805
 
806
Wed Mar 18 12:38:12 1998  Andrew Cagney  
807
 
808
        * configure: Regenerated to track ../common/aclocal.m4 changes.
809
 
810
Sat Mar 14 20:53:36 1998  Doug Evans  
811
 
812
        * config.in (HAVE_FCNTL_H): Add.
813
        * configure: Regenerate.
814
        * Makefile.in (SIM_OBJS): Add devices.o.
815
        * m32r-sim.h (m32r_devices): Renamed from m32r_mspr_device.
816
        (UART_*): Define m32r serial port parameters.
817
        (M32R_DEVICE_ADDR,M32R_DEVICE_LEN): Define.
818
        * m32r.c (device_io_{read,write}_buffer,device_error): Move from here,
819
        * devices.c: To here.
820
        * sim-if.c: Don't include signal.h,sim-core.h.
821
        (sim_open): Use M32R_DEVICE_{ADDR,LEN} in sim_core_attach call.
822
        (sim_resume): Call sim_module_{resume,suspend}.
823
        * m32r.c (m32r_h_cr_{get,set}): Use register number enums.
824
 
825
        * tconfig.in (SIM_HANDLES_LMA): Define.
826
 
827
        * sim-if.c (do_trap): Result is new pc.
828
        Handle --environment=operating.
829
        * sem-switch.c,sem.c: Regenerate.
830
        * semx.c: Regenerate.
831
 
832
Wed Mar 11 14:07:39 1998  Andrew Cagney  
833
 
834
        * sim-if.c (syscall_read_mem, syscall_write_mem): Replace
835
        sim_core_*_map with read_map, write_map, exec_map resp.
836
 
837
Wed Mar  4 11:36:51 1998  Doug Evans  
838
 
839
        * Makefile.in (SIM_EXTRA_DEPS): Add cpu-opc.h.
840
        (arch.o): Delete cpu-opc.h dependency.
841
        (decode.o,model.o): Likewise.
842
        (decodex.o,modelx.o): Likewise.
843
 
844
        * cpu.h,model.c,sem-switch.c,sem.c: Regenerate.
845
        * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
846
 
847
Thu Feb 26 18:38:35 1998  Andrew Cagney  
848
 
849
        * sim-if.c (sim_open): Initialize PROFILE_INFO_CPU_CALLBACK.
850
 
851
        * sim-if.c (sim_info): Delete.
852
 
853
Fri Feb 27 10:14:29 1998  Doug Evans  
854
 
855
        * mloopx.in: Fix handling of branch in parallel with another insn.
856
        * semx.c: Regenerate.
857
 
858
Mon Feb 23 13:30:46 1998  Doug Evans  
859
 
860
        * sim-main.h: #include symcat.h.
861
        * m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg.
862
        (NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros.
863
        * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
864
        * sem.c,sem-switch.c: Regenerate.
865
        * m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec.
866
        * mloopx.in: Rewrite.
867
        * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
868
 
869
Mon Feb 23 12:27:52 1998  Nick Clifton  
870
 
871
        * m32r.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
872
        in the backup PC register.
873
        * m32rx.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
874
        in the backup PC register.
875
 
876
Thu Feb 19 16:39:35 1998  Doug Evans  
877
 
878
        * m32r.c (do_lock,do_unlock): Delete.
879
        * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
880
        * sem.c,sem-switch.c: Regenerate.
881
        * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
882
 
883
Tue Feb 17 18:18:10 1998  Doug Evans  
884
 
885
        * Makefile.in (M32R_OBJS): Add cpu.o.
886
        (cpu.o): Add rule for.
887
        (NL_TARGET): Define.
888
        * configure.in: Add AC_CHECK_PROG(SCHEME).
889
        * cpu.c: New file.
890
        * cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
891
        * sem-switch.c,sem.c: Regenerate.
892
        * mloop.in (execute): Update call to semantic fn.
893
        (M32RX_OBJS): Add cpux.o.
894
        (cpux.o): Add rule for.
895
        cpux.c: New file.
896
        * cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
897
        * m32rx.c (m32rx_h_accums_{get,set}): Rewrite.
898
        (m32rx_h_cr_{get,set}): New functions.
899
        (m32rx_h_accums_{get,set}): New functions.
900
        * mloopx.in: Rewrite main loop.
901
 
902
        * m32r.c (do_trap): Move from here.
903
        * sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support.
904
        (sim_create_inferior): Use h_pc_set.
905
        (h_pc_{get,set}): New functions.
906
        (h_gr_{get,set}): New functions.
907
        (syscall_{read,write}_mem): New functions.
908
        * sim-main.h (h_{gr,pc}_{get,set}): Declare.
909
 
910
Tue Feb 17 12:44:38 1998  Andrew Cagney  
911
 
912
        * sim-if.c (sim_store_register, sim_fetch_register): Pass in
913
        length parameter.  Return -1.
914
        (sim_create_inferior): Pass 4 sim_store_register.
915
 
916
Wed Feb 11 19:53:48 1998  Doug Evans  
917
 
918
        * sim-main.h (CIA_GET,CIA_SET): Provide dummy definitions for now.
919
 
920
        * decode.c, decode.h, sem.c, sem-switch.c, model.c: Regenerate.
921
        * cpux.c, decodex.c, decodex.h, readx.c, semx.c, modelx.c: Regenerate.
922
 
923
Mon Feb  9 19:41:54 1998  Doug Evans  
924
 
925
        * decode.c, sem.c: Regenerate.
926
        * cpux.h, decodex.c, readx.c, semx.c: Regenerate.
927
        * m32rx.c (m32rx_h_accums_set): New function.
928
        (m32rx_model_mark_[gs]et_h_gr): New function.
929
        * mloopx.in: Rewrite.
930
        * Makefile.in (mloopx.o): Build with -parallel.
931
        * sim-main.h (_sim_cpu): Delete member `par_exec'.
932
        * tconfig.in (WITH_SEM_SWITCH_FULL): Define as 0 for m32rx.
933
 
934
Thu Feb  5 12:44:31 1998  Doug Evans  
935
 
936
        * Makefile.in (m32r.o): Depend on cpu.h
937
        (extract.o): Pass -DSCACHE_P.
938
        * mloop.in (extract{16,32}): Update call to m32r_decode.
939
        * arch.h,cpu.h,cpuall.h,decode.[ch]: Regenerate.
940
        * extract.c,model.c,sem-switch.c,sem.c: Regenerate.
941
        * sim-main.h: #include "ansidecl.h".
942
        Don't include cpu-opc.h, done by arch.h.
943
        * Makefile.in (M32RX_OBJS): Build m32rx support now.
944
        (m32rx.o): New rule.
945
        * m32r-sim.h (m32rx_h_cr_[gs]et): Define.
946
        * m32rx.c (m32rx_{fetch,store}_register): Update {get,set} of PC.
947
        (m32rx_h_accums_get): New function.
948
        * mloopx.in: Update call to m32rx_decode.  Rewrite exec loop.
949
        * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
950
 
951
Sun Feb  1 16:47:51 1998  Andrew Cagney  
952
 
953
        * configure: Regenerated to track ../common/aclocal.m4 changes.
954
 
955
Sat Jan 31 18:15:41 1998  Andrew Cagney  
956
 
957
        * configure: Regenerated to track ../common/aclocal.m4 changes.
958
 
959
Thu Jan 29 11:22:00 1998  Doug Evans  
960
 
961
        * Makefile.in (M32RX_OBJS): Comment out until m32rx port working.
962
        * arch.h (HAVE_CPU_M32R{,X}): Delete, moved to m32r-opc.h.
963
        * arch.c (machs): Check ifdef HAVE_CPU_FOO for each entry.
964
 
965
Tue Jan 20 14:16:02 1998  Nick Clifton  
966
 
967
        * cpux.h: Fix duplicate definition of h_accums field for
968
        fmt_53_sadd structure.
969
 
970
Tue Jan 20 01:42:17 1998  Doug Evans  
971
 
972
        * Makefile.in: Add m32rx objs, and rules to build them.
973
        * cpux.h, decodex.h, decodex.c, readx.c, semx.c, modelx.c: New files.
974
        * m32rx.c, mloopx.in: New files.
975
 
976
Mon Jan 19 22:26:29 1998  Doug Evans  
977
 
978
        * configure: Regenerated to track ../common/aclocal.m4 changes.
979
 
980
Mon Jan 19 14:13:40 1998  Doug Evans  
981
 
982
        * arch.c, arch.h, cpuall.h: New files.
983
        * arch-defs.h: Deleted.
984
        * mloop.in: Renamed from mainloop.in.
985
        * Makefile.in: Update.
986
        * sem-ops.h: Deleted.
987
        * mem-ops.h: Deleted.
988
        (arch): Renamed from CPU.
989
        * cpu.h: New file.
990
        * decode.c: Redone.
991
        * decode.h: Redone.
992
        * extract.c: Redone.
993
        * model.c: Redone.
994
        * sem-switch.c: Redone.
995
        * sem.c: Renamed from semantics.c, and redone.
996
        * m32r-sim.h (PROFILE_COUNT_FILLNOPS): Update.
997
        (GETTWI,SETTWI,BRANCH_NEW_PC): Define.
998
        * m32r.c (WANT_CPU,WANT_CPU_M32R): Define.
999
        (m32r_{fetch,store}_register): New functions.
1000
        (model_mark_{get,set}_h_gr): Prefix with m32r_.
1001
        (m32r_model_mark_{busy,unbusy}_reg): Prefix with m32r_.
1002
        (h_cr_{get,set}): Prefix with m32r_.
1003
        (do_trap): Fetch state from current_cpu, not current_state.
1004
        Call sim_engine_halt instead of engine_halt.
1005
        * sim-if.c (alloc_cpu): New function.
1006
        (free_state): New function.
1007
        (sim_open): Call sim_state_alloc, and malloc space for selected cpu
1008
        type.  Call sim_analyze_program.
1009
        (sim_create_inferior): Handle selected cpu type when setting PC.
1010
        (sim_resume): Handle m32rx.
1011
        (sim_stop_reason): Deleted.
1012
        (print_m32r_misc_cpu): Update.
1013
        (sim_{fetch,store}_register): Handle m32rx.
1014
        (sim_{read,write}): Deleted.
1015
        (sim_engine_illegal_insn): New function.
1016
        * sim-main.h: Don't include arch-defs.h,sim-core.h,sim-events.h.
1017
        Include arch.h,cpuall.h.  Include cpu.h,decode.h if m32r.
1018
        Include cpux.h,decodex.h if m32rx.
1019
        (_sim_cpu): Include member appropriate cpu_data member for the cpu.
1020
        (M32R_MISC_PROFILE): Renamed from M32R_PROFILE.
1021
        (sim_state): Delete members core,events,halt_jmp_buf.
1022
        Change `cpu' member to be a pointer to the cpu's struct, rather than
1023
        record inside the state struct.
1024
        * tconfig.in (WITH_DEVICES): Define here.
1025
        (WITH_FAST,WITH_SEM_SWITCH_{FULL,FAST}): Define for the cpu.
1026
 
1027
Fri Jan 16 12:16:56 1998  Nick Clifton  
1028
 
1029
        * arch-defs.h (INSN_NAME): Fix typo.
1030
 
1031
Mon Dec 15 23:17:11 1997  Andrew Cagney  
1032
 
1033
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1034
        * config.in: Ditto.
1035
 
1036
Thu Dec  4 09:21:05 1997  Doug Evans  
1037
 
1038
        * m32r-sim.h (MSPR_ADDR): New macro.
1039
        (m32r_mspr_device): Declare.
1040
        (struct _device): Define.
1041
        * m32r.c (m32r_mspr_device): New global.
1042
        (device_{io_{read,write}_buffer,error}): New functions.
1043
        * mem-ops.h (SETMEM*): Use sim_core_write_map, not read map.
1044
        * sim-if.c: Delete redundant inclusion of cpu-sim.h.
1045
        (sim_open): Attach device to handle MSPR register.
1046
        * sim-main.h (WITH_DEVICES): Define as 1.
1047
        Include cpu-sim.h.
1048
 
1049
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1050
 
1051
Wed Dec  3 18:08:44 1997  Doug Evans  
1052
 
1053
        * configure.in (SIM_AC_OPTION_ENVIRONMENT): Call.
1054
        * configure: Regenerated.
1055
 
1056
Wed Nov 19 12:17:08 1997  Doug Evans  
1057
 
1058
        * mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}.
1059
        * sim-if.c (sim_open): Call sim_config.
1060
        (sim_stop_reason): Update call to sim_signal_to_host.
1061
 
1062
Tue Nov 18 15:33:48 1997  Doug Evans  
1063
 
1064
        * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
1065
 
1066
Fri Oct 31 18:46:46 1997  Andrew Cagney  
1067
 
1068
        * sim-if.c (sim_open): Delete dead call to sim_core_attach.
1069
 
1070
Mon Oct 27 12:43:54 1997  Doug Evans  
1071
 
1072
        * sem-ops.h (U{DIV,MOD}[BHSD]I): Use unsigned division.
1073
 
1074
Fri Oct  3 09:28:00 1997  Andrew Cagney  
1075
 
1076
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1077
 
1078
Wed Sep 24 17:38:57 1997  Andrew Cagney  
1079
 
1080
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1081
 
1082
Tue Sep 23 11:04:38 1997  Andrew Cagney  
1083
 
1084
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1085
 
1086
Tue Sep 23 10:19:51 1997  Andrew Cagney  
1087
 
1088
        * Makefile.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_SCACHE,
1089
        SIM_DEFAULT_MODEL): Delete, moved to common.
1090
        (SIM_EXTRA_CFLAGS): Update.
1091
 
1092
Mon Sep 22 11:46:20 1997  Andrew Cagney  
1093
 
1094
        * configure.in (sim_link_links): Configure non-strict memory
1095
        alignment.
1096
 
1097
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1098
 
1099
Fri Sep 19 17:45:25 1997  Andrew Cagney  
1100
 
1101
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1102
 
1103
Wed Sep 17 17:44:40 1997  Andrew Cagney  
1104
 
1105
        * sim-if.c (sim_open): Allocate memory under sim-memopt module
1106
        using sim_do_commandf.
1107
        (sim_open): Set magic-number at the start.
1108
        (sim_do_command): Implement.
1109
 
1110
        * sim-main.h (sim_engine_halt): Map onto engine_halt.
1111
 
1112
Mon Sep 15 17:36:15 1997  Andrew Cagney  
1113
 
1114
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1115
 
1116
Thu Sep  4 17:21:23 1997  Doug Evans  
1117
 
1118
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1119
 
1120
Fri Sep  5 10:21:48 1997  Andrew Cagney  
1121
 
1122
        * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
1123
 
1124
Thu Sep  4 10:30:02 1997  Andrew Cagney  
1125
 
1126
        * sim-if.c (sim_open): Pass zero modulo arg to sim_core_attach.
1127
 
1128
Wed Aug 27 18:13:22 1997  Andrew Cagney  
1129
 
1130
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1131
        * config.in: Ditto.
1132
 
1133
Tue Aug 26 10:39:42 1997  Andrew Cagney  
1134
 
1135
        * sim-if.c (sim_kill): Delete.
1136
        (sim_create_inferior): Add ABFD argument.
1137
        (sim_load): Move setting of PC from here.
1138
        (sim_create_inferior): To here.
1139
        (sim_load): Delete, use sim-hload.c instead.
1140
 
1141
        * Makefile.in (SIM_OBJS): Add sim-hload.o module.
1142
 
1143
Mon Aug 25 17:50:22 1997  Andrew Cagney  
1144
 
1145
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1146
        * config.in: Ditto.
1147
 
1148
Mon Aug 25 15:54:08 1997  Andrew Cagney  
1149
 
1150
        * sim-if.c (sim_open): Add ABFD argument.
1151
 
1152
Tue Jul 22 10:16:16 1997  Doug Evans  
1153
 
1154
        * sim-main.h (M32R_DEFAULT_MEM_SIZE): New macro.
1155
        * sim-if.c (sim_open): Use it.
1156
 
1157
Wed Jun  4 12:48:12 1997  Andrew Cagney  
1158
 
1159
        * sim-main.h (WITH_ENGINE): Disable the common engine for now.
1160
 
1161
Tue May 27 14:15:44 1997  Andrew Cagney  
1162
 
1163
        * sim-if.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
1164
        (sim_write): Ditto for write.
1165
 
1166
        * m32r.c (do_trap): Ditto for read/write.
1167
 
1168
Tue May 20 10:18:25 1997  Andrew Cagney  
1169
 
1170
        * sim-if.c (sim_open): Add callback argument.
1171
        (sim_set_callbacks, sim_callback): Delete.
1172
        (sim_load): Set STATE_LOADED_P.
1173
 
1174
Mon May 19 12:55:42 1997  Andrew Cagney  
1175
 
1176
        * Makefile.in (SIM_OBJS): Link in sim-abort.o as a stub for
1177
        sim_engine_abort.
1178
 
1179
Mon May  5 12:45:28 1997  Andrew Cagney  
1180
 
1181
        * sim-if.c (sim_open): Update to reflect changes to core in
1182
        ../common/.
1183
        * mem-ops.h (GETMEMQI, GETMEMHI, GETMEMSI, GETMEMDI, GETMEMUQI,
1184
        GETMEMUHI, GETMEMUSI, GETMEMUDI, SETMEMQI, SETMEMHI, SETMEMSI,
1185
        SETMEMDI, SETMEMUQI, SETMEMUHI, SETMEMUSI, SETMEMUDI): Ditto.
1186
 
1187
Sat May  3 08:38:55 1997  Doug Evans  
1188
 
1189
        * decode.c (decode): Add computed goto support.
1190
 
1191
Fri May  2 16:30:26 1997  Andrew Cagney  
1192
 
1193
        * mem-ops.h: Stub additional core read/write arguments.
1194
 
1195
        * sim-main.h: Declare sim_cia - type SI.
1196
        (struct _sim_cpu): Move base type to end per common.
1197
        (struct _sim_state): Ditto.
1198
 
1199
Thu May  1 11:15:34 1997  Doug Evans  
1200
 
1201
        Merge from branch into devo.  CGEN generic files moved to common
1202
        directory.  K&R C support is no longer provided.
1203
 
1204
Thu Apr 24 00:39:51 1997  Doug Evans  
1205
 
1206
        * configure: Regenerated to track ../common/aclocal.m4 changes.
1207
 
1208
Sat Apr 12 12:57:33 1997  Felix Lee  
1209
 
1210
        * Makefile.in, seman-cache.c: new file, for wingdb build.
1211
        * sim-alloca.h: fixed for wingdb.
1212
 
1213
Mon Apr  7 13:33:29 1997  Doug Evans  
1214
 
1215
        * decode.c (*): m32r_cgen_insn_table renamed to ..._entries.
1216
        * mainloop.in: Use CGEN_INSN_INDEX instead of CGEN_INSN_TYPE.
1217
        * simdefs.h (INSN_NAME): m32r_cgen_insn_table renamed to ..._entries.
1218
 
1219
Fri Apr  4 19:23:12 1997  Doug Evans  
1220
 
1221
        * cgen-utils.in (ex_illegal): Fill in abuf->length, abuf->addr.
1222
        (exc_illegal): Likewise.
1223
        * decode.c (decode_vars): Add decode_illegal.
1224
        * genmloop.sh: #include "cpu-opc.h".
1225
        * sem-switch.c (case_INSN_ILLEGAL): Declare.
1226
        (labels): Add case_INSN_ILLEGAL.
1227
        (SWITCH): Add INSN_ILLEGAL case.
1228
 
1229
Wed Mar 26 12:34:00 1997  Doug Evans  
1230
 
1231
        * model.c (model_module): Use 0 not NULL.
1232
 
1233
        * genmloop.sh (sim_main_loop): Handle k&r c.
1234
 
1235
        * sem-switch.c: Regenerate to get k&r c support.
1236
        * semantics.c: Likewise.
1237
 
1238
        * m32r.c (ADD_{OV,CA}_SI,SUB_{OV,CA}_SI): Renamed to {ADD,SUB}[OC]FSI.
1239
        (ADDCSI,SUBCSI): New functions.
1240
        * sem-switch.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
1241
        * semantics.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
1242
 
1243
        * simcache.c (simcache_{install,init,uninstall}): Use
1244
        DECLARE_MODULE_INSTALL_HANDLER.
1245
        (simcache_option_handler): Use DECLARE_OPTION_HANDLER.
1246
 
1247
        * utils.c: #include "semops.h".
1248
 
1249
Tue Mar 11 14:30:26 1997  Doug Evans  
1250
 
1251
        * profile.c (profile_print_simcache): Fix thinko in printf text.
1252
 
1253
        * simdefs.h (struct argbuf): Add member to fmt_20 so it's not empty.
1254
 
1255
Mon Mar 10 11:06:29 1997  Doug Evans  
1256
 
1257
        * m32r.c (h_cr_get): Rewrite.
1258
        (h_cr_set): Rewrite.
1259
        * sem-switch.c (rte): bcarry renamed to bcond.
1260
        * semantics.c (rte): Likewise.
1261
        * simdefs.h (CPU_STATE): Likewise.
1262
 
1263
        * config.in (HAVE_SYS_TIME_H): Add.
1264
        * configure.in: Check for sys/time.h.
1265
        * configure: Regenerated.
1266
        * utils.c: Include sys/time.h if present.
1267
 
1268
        * common.c (sim_parse_args): Account for NULL terminating entry
1269
        in long_options table.
1270
 
1271
        * genmloop.sh (RUN_FAST_P): Don't run fast if tracing.
1272
        Always use cache if configured in.
1273
        * mainloop.in (do_extract_insn{16,32}): New functions.
1274
        (normal,fast): Call them.  Handle starting in left slot.
1275
        * simcache.c (simcache_option_handler): Disallow -c0.
1276
        * sem-switch.c (TRACE_RESULT): Redefine so no tracing.
1277
 
1278
        * profile.c (profile_print_simcache): Fix percentage calc.
1279
 
1280
        * Makefile.in (INCLUDE_DEPS): Delete simcommon.h.
1281
 
1282
Sun Mar  9 20:42:17 1997  Doug Evans  
1283
 
1284
        * Makefile.in (COMMON_{PRE,POST}_CONFIG_FRAG): Add delimiters for.
1285
        (M32R_INCLUDE_DEPS): Use cpu-sim.h instead of m32r-sim.h.
1286
        Add mod-list.h.
1287
        (mrun.o): Don't depend on M32R_INCLUDE_DEPS.
1288
        (sim-if.o,m32r.o,utils.o): Likewise.
1289
        (common.o): Don't explicitly depend on mod-list.h.
1290
        (mainloop.c): Pass CPU to genmloop.sh.
1291
        (stamp-modules): Depend on configure.
1292
        (decode.o): Depend on decode,h, memops.h, semops.h, cpu-opc.h.
1293
        (extract.o): Depend on decode.h, memops.h, semops.h.
1294
        (semantics.o,seman-cache.o): Likewise.
1295
        (model.o,ops.o): Depend on memops.h.
1296
        (extr-cache.o): Disable building for the moment.
1297
 
1298
        * simcommon.h: Delete, move contents into cgen-sim.h.
1299
        * cgen-sim.h: Don't include ansidecl.h,bfd.h,simfns.h.
1300
        (UINT,CGEN_CAT3): Define.
1301
        ({extract,semantic}_fn_t): Renamed to {EXTRACT,SEMANTIC}_FN.
1302
        (decode_t): Renamed to DECODE.
1303
 
1304
        * simfns.h: Delete, contents moved to memops.h,semops.h.
1305
        * memops.h: New file.
1306
        * semops.h: New file.
1307
        * decode.h: Renamed from semantics.h.
1308
 
1309
        * sim-argv.h: New file.
1310
        * Makefile.in (memory.o,trace.o,profile.o,simcache.o,common): Add
1311
        dependency of sim-argv.h.
1312
 
1313
        * sim-alloca.h: New file.
1314
        * common.c: Include it.
1315
        * Makefile.in (common.o): Add dependency.
1316
 
1317
        * config.in (HAVE_TIME_H,HAVE_SYS_RESOURCE_H): Add.
1318
        (HAVE_GETRUSAGE,HAVE_TIME): Add.
1319
        * configure.in: sinclude ../common/aclocal.m4.
1320
        Check for headers time.h, sys/resource.h.
1321
        Check for functions time, getrusage.
1322
        (sim_link_{files,links}): Add link cpu-opc.h.
1323
        (sim_profile): Add simcache.
1324
        (SIM_AC_PROFILE): Add simcache, profile.o.
1325
        (simcache module): Delete extr-cache.o for now.
1326
        (--enable-sim-cache): Allow specification of default cache size.
1327
        * configure: Regenerated.
1328
 
1329
        * decode.c: #include cgen-sim.h,memops.h,semops.h,decode.h,
1330
        cpu-sim.h,cpu-opc.h.  Don't include m32r-sim.h.
1331
        Regenerate.
1332
 
1333
        * extract.c: #include cgen-sim.h,decode.h,cpu-sim.h.
1334
        Don't include m32r-sim.h.
1335
        (*): Define/Undef FLD macro.  Use it to reference ARGBUF.
1336
        Simplify profiling test with PROFILE_MODEL_P.
1337
        (mvfc,mvtc): Fix access of control registers.
1338
        * semantic.c: #include cgen-sim.h,memops.h,semops.h,decode.h,cpu-sim.h.
1339
        Don't include m32r-sim.h.
1340
        (*): Define/Undef FLD macro.  Use it to reference ARGBUF.
1341
        Simplify profiling test with PROFILE_MODEL_P.
1342
        (mvfc,mvtc): Fix access of control registers.
1343
 
1344
        * sem-switch.c: New file, for GCC computed goto support.
1345
 
1346
        * genmloop.sh: Add #include's of bfd.h,callback.h,cgen-sim.h,
1347
        memops.h,semops.h,trace.h,cpu-sim.h.
1348
        (RUN_FAST_P): Change default to run fast if cache size > 0
1349
        and not profiling.
1350
        (sim_main_loop): Record execution time.
1351
        Record instruction count even in fast mode.
1352
        (init): Allow cpu to provide init code in mainloop.in.
1353
        (FAST): Define as 0 or 1 depending on fast mode.
1354
        * mainloop.in (normal): Combine with fast case.
1355
        Add support for GCC computed gotos.  Count simcache hits/misses.
1356
        (init): Initialize "switch" labels if GNUC.
1357
 
1358
        * cgen-utils.in: Don't include opcode/cgen.h.
1359
        Include cgen-sim.h, cpu-opc.h.
1360
        * common.c: Don't include simcommon.h,mod-list.h.  Include cgen-sim.h.
1361
        * m32r-sim.h: Don't include mod-list.h
1362
        (RUN_FAST_P): Delete.
1363
        * m32r.c: Don't include profile.h.  #include ansidecl.h,cgen-sim.h,
1364
        semops.h,memory.h,trace.h
1365
        (h_cr_get,h_cr_set): New functions.
1366
        * memory.c: #include cgen-sim.h,callback.h.
1367
        * ops.c: Don't include profile.h,m32r-sim.h.
1368
        Include cgen-sim.h,memops.h,cpu-sim.h.
1369
        (MEMOPS_DEFINE_INLINE): Renamed from SIMFNS_DEFINE_INLINE.
1370
        * trace.c: Include cgen-sim.h,cpu-opc.h.
1371
        * trace.h (trace_insn_{init,fini}): Declare.
1372
 
1373
        * model.c: Don't include signal.h,stdlib.h,m32r-sim.h.
1374
        Include cgen-sim.h,cpu-sim.h,cpu-opc.h.
1375
        Regenerate to get new insn aliases.
1376
 
1377
        * mrun.c: #include "ansidecl.h".
1378
        (STATE): Use struct sim_state instead.
1379
 
1380
        * profile.c: Surround #include  with HAVE_STDLIB_H.
1381
        Don't include simcommon.h.  Include cgen-sim.h,cpu-opc.h.
1382
        (PROFILE_{READ,WRITE}_MASK): Replace with PROFILE_MEMORY_MASK.
1383
        (profile_print_simcache): New function.
1384
        (profile_print): Call it.  Print simulator speed stats.
1385
        * profile.h (PROFILE_{READ,WRITE}_MASK): Replace with
1386
        PROFILE_MEMORY_MASK.
1387
        (MODULE_PROFILE_SIMCACHE_P): Define.
1388
        (PROFILE_SIMCACHE_MASK): Define.
1389
        (PROFILE_COUNT): New members total_insn_count,exec_time.
1390
        New members simcache_hits,simcache_misses.
1391
        (PROFILE_SIMCACHE_{HITS,MISSES}): Define.
1392
        (PROFILE_MODEL_P): New macro.
1393
        (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): New macros.
1394
 
1395
        * sim-if.c: Surround #include  with HAVE_STDLIB_H.
1396
        Don't include simcommon.h,m32r-sim.h.  Include cgen-sim.h,cpu-sim.h.
1397
        (sim_resume): Use USING_SIMCACHE_P instead of RUN_FAST_P.
1398
        (sim_info): Pass verbose to profile_print.
1399
 
1400
        * simcache.c: Include cgen-sim.h,callback.h.
1401
        (USING_SIMCACHE_P): Replace with SIMCACHE_P.
1402
        (simcache_option_handler): Ensure cache size at least 2.
1403
        Allow config time specification of default cache size.
1404
        * simcache.h (struct simcache): Support GCC computed gotos.
1405
        (SIMCACHE_DEFAULT_CACHE_SIZE): USe CONFIG_SIM_CACHE_SIZE if defined.
1406
        (USING_SIMCACHE_P): New macro.
1407
 
1408
        * simdefs.h: Don't include m32r-opc.h.
1409
        (CGEN_MAX_SIM_INSNS): Define.
1410
        (CPU_STATE): Regenerate.
1411
        (ARGBUF): Regenerate.
1412
        (extract,semantic handler decls): Delete, moved to decode.h.
1413
 
1414
        * tconfig.in: Don't include cgen-sim.h,m32r-sim.h.
1415
        (USE_SEM_SWITCH): Define.
1416
 
1417
        * utils.c: Include bfd.h,time.h,sys/resource.h.
1418
        (sim_time_get,sim_time_elapsed): New functions.
1419
        * cgen-sim.h (SIM_TIME,sim_time_get,sim_time_elapsed): Declare.
1420
 
1421
Fri Jan 31 20:25:06 1997  Doug Evans  
1422
 
1423
        * configure.in (AC_CHECK_HEADERS): Handle i386-windows.
1424
        * configure: Regenerated.
1425
        * model.c: #include .
1426
        * simcache.c: #include "libiberty.h".
1427
        * simcommon.h (alloca): Handle i386-windows.
1428
 
1429
        * common.c: #include libiberty.h.
1430
        (sim_signal_to_host): Return 5 if wingdb.
1431
 
1432
Mon Jan 27 15:22:49 1997  Doug Evans  
1433
 
1434
        * configure.in (sim_cache): Enabled by default now, pass default
1435
        cache size to --enable-sim-cache.
1436
        * simcache.c (simcache_option_handler): Allow -c 0.
1437
 
1438
        * simdefs.h,simfns.h: Regenerate
1439
        * decode.c,extract.c,model.c,ops.c,semantics.c: Regenerate.
1440
 
1441
Tue Jan 21 16:21:01 1997  Doug Evans  
1442
 
1443
        Add model profiling support.
1444
        * configure.in: Handle --enable-sim-model.
1445
        (sim_profile): Add model.
1446
        * Makefile.in (model.o): Add rule.
1447
        * cgen-sim.h (UNIT,INSN_TIMING,MACH,MODEL): New types.
1448
        * extract.c (*): Add model profiling support.
1449
        * m32r.c (model_mark_{get,set}_h_gr): New functions.
1450
        (model_mark_{busy,unbusy}_reg): New functions.
1451
        * profile.c (profile_option_handler): Recognize --profile model.
1452
        (profile_print_model): New function.
1453
        (profile_print): Call it.
1454
        * profile.h (MODULE_profile_model,MODULE_PROFILE_MODEL_P): Define.
1455
        (PROFILE_MODEL_MASK,PROFILE_LABEL_WIDTH): Define.
1456
        (PROFILE_COUNT): New members cycle_count,cti_stall_count,
1457
        load_stall_count,taken_count,untaken_count.
1458
        * semantics.c (*): Add model profiling support.
1459
        * simcommon.h (struct sim_state): New members mach,model.
1460
        * simdefs.h (CPU_PROFILE,MODEL_TYPE,UNIT_TYPE): New type.
1461
        (MAX_MODELS,MAX_UNITS): Define.
1462
        * tconfig.in (STATE_EXTRA_MEMBERS): Add cpu_profile.
1463
 
1464
        * Makefile.in (INCLUDE_DEPS): Add $(SIM_MODULES_HDRS).
1465
        (stamp-modules): Depend on genmodlist.sh.
1466
        * common.c (standard_options): Add --max-insns.
1467
        (copy_argv): New function.
1468
        * tconfig.in (SIM_HAVE_MAX_INSNS): Define.
1469
        * genmloop.sh: Allow mainloop.in to contain support code.
1470
        * mainloop.in: Move do_insn16,do_insn32 here.
1471
        * m32r.c (do_trap): Handle SYS_argvlen,SYS_argv,SYS_read.
1472
        * sim-if.c (sim_open): Don't set max insn count.
1473
        (sim_create_inferior): Save argv,envp.
1474
        * simcommon.h (struct sim_state): New members argv,envp.
1475
        * simdefs.h ([GS]ETTWI,[GS]ETTUWI,[GS]ETTAI): Define.
1476
        ([GS]ETMEMWI,[GS]ETMEMUWI,[GS]ETMEMAI): Define.
1477
        (ARGBUF): New members h_gr_get, h_gr_set.
1478
        * trace.c (trace_insn_init,trace_insn_fini): New functions.
1479
        (trace_printf): Print to buffer, output later by trace_insn_fini.
1480
        * trace.h (TRACE_INSN_{INIT,FINI}): Define.
1481
 
1482
Thu Dec 19 16:01:59 1996  Doug Evans  
1483
 
1484
        * configure.in (AC_FUNC_ALLOCA): Call.
1485
        * configure: Regenerate.
1486
        * config.h (HAVE_ALLOCA_H): Add.
1487
        * simcommon.h: Add alloca support.
1488
        (DECLARE_MODULE_INSTALL_HANDLER): Define.
1489
        (DECLARE_OPTION_HANDLER): Define.
1490
        (MEM_FN): Declare using PARAMS.
1491
        (DECLARE_MEM_FN): Define.
1492
        * trace.c (trace_result): Tweak for !STDC.
1493
        * cgen-sim.h (UDI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
1494
        * cgen-utils.in (disasm_sprintf): Fix va_arg call in !STDC case.
1495
        * common.c (sim_print_help_fn): Use PARAMS.
1496
        (standard_option_handler): Fix decl for !STDC systems.
1497
        * memory.c: #include 
1498
        (mem_flat_{install,init,uninstall}): Fix decl for !STDC systems.
1499
        (mem_flat_{read,write},mem_flat_option_handler): Likewise.
1500
        * profile.c (profile_install): Likewise.
1501
        (profile_option_handler): Likewise.
1502
 
1503
Thu Dec 19 11:06:19 1996  Doug Evans  
1504
 
1505
        * semantics.c (*): Don't suffix big unsigned numbers with "U".
1506
        Prefix them with 0x instead.
1507
 
1508
        * cgen-sim.h (DI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
1509
        (SLADI,SRADI,CONVSIDI,CONVDISI): Delete, moved to simfns.h.
1510
        * semantics.c (machi,maclo,macwhi,macwlo,mulhi,mullo): Implement.
1511
        (mulwhi,mulwlo,mvtachi,mvtaclo,rac,rach): Implement.
1512
        * simfns.h: Add decls for functional DI,UDI,SF,DF,XF,TF support.
1513
        Add support for boolean and/or.
1514
        * utils.c: Redo naming of DI functional support.
1515
        (ANDDI,ORDI,ADDDI,MULDI,GEDI,LEDI,CONVHIDI): New functions.
1516
 
1517
Tue Dec 17 12:57:48 1996  Doug Evans  
1518
 
1519
        * Directory created.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.