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

Subversion Repositories openrisc_me

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

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

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

powered by: WebSVN 2.1.0

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