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

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [sim/] [m32r/] [ChangeLog] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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