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

Subversion Repositories openrisc_me

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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