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

Subversion Repositories openrisc_me

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

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

Line No. Rev Author Line
1 24 jeremybenn
2006-12-21  Hans-Peter Nilsson  
2
 
3
        * config.in: Regenerate.
4
 
5
2006-06-13  Richard Earnshaw  
6
 
7
        * configure: Regenerated.
8
 
9
2006-06-05  Daniel Jacobowitz  
10
 
11
        * configure: Regenerated.
12
 
13
2006-05-31  Daniel Jacobowitz  
14
 
15
        * configure: Regenerated.
16
 
17
2005-10-28  Dave Brolley  
18
 
19
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
20
 
21
        Contribute the following changes:
22
        2003-09-29  Dave Brolley  
23
 
24
        * frv-sim.h: Use CGEN_ATTR_VALUE_ENUM_TYPE in place of
25
        CGEN_ATTR_VALUE_TYPE.
26
        * mloop.in: Ditto.
27
        * pipeline.c: Ditto.
28
        * traps.c: Ditto.
29
 
30
2005-03-23  Mark Kettenis  
31
 
32
        * configure: Regenerate.
33
 
34
2005-01-14  Andrew Cagney  
35
 
36
        * configure.ac: Sinclude aclocal.m4 before common.m4.  Add
37
        explicit call to AC_CONFIG_HEADER.
38
        * configure: Regenerate.
39
 
40
2005-01-12  Andrew Cagney  
41
 
42
        * configure.ac: Update to use ../common/common.m4.
43
        * configure: Re-generate.
44
 
45
2005-01-11  Andrew Cagney  
46
 
47
        * configure: Regenerated to track ../common/aclocal.m4 changes.
48
 
49
2005-01-07  Andrew Cagney  
50
 
51
        * configure.ac: Rename configure.in, require autoconf 2.59.
52
        * configure: Re-generate.
53
 
54
2004-12-08  Hans-Peter Nilsson  
55
 
56
        * configure: Regenerate for ../common/aclocal.m4 update.
57
 
58
2004-08-27  Richard Sandiford  
59
 
60
        * cpu.[ch], arch.[ch], decode.[ch]: Regenerated.
61
        * cpuall.h, model.c, sem.c: Regenerated.
62
 
63
2004-03-01  Richard Sandiford  
64
 
65
        * Makefile.in (SIM_OBJS): Add profile-fr450.o.
66
        (profile-fr450.o): New dependency.
67
        (stamp-cpu): Add fr450 to the list of machs.
68
        * sim-frv.h (SPR_IS_ACC): New macro.
69
        (H_SPR_ACC4, H_SPR_ACC63, H_SPR_ACCG4, H_SPR_ACCG63): Delete.
70
        * cache.c (frv_cache_init, non_cache_access): Handle bfd_mach_fr450.
71
        * frv.c (check_register_alignment, check_fr_register_alignment)
72
        (check_memory_alignment, do_media_average): Likewise.
73
        (frvbf_clear_accumulators): Likewise.  Use a mask of valid registers
74
        rather than a consecutive range.
75
        * interrupts.c (frv_queue_illegal_instruction_interrupt)
76
        (frv_queue_non_implemented_instruction_interrupt): Handle
77
        bfd_mach_fr450.
78
        * memory.c (check_data_read_address, check_readwrite_address)
79
        (check_insn_read_address, check_write_address): Likewise.
80
        * mloop.in (@cpu@_simulate_insn_prefetch): Likewise.
81
        * profile.c (reset_gr_flags, reset_fr_flags, reset_acc_flags)
82
        (frvbf_model_insn_before, frvbf_model_insn_after): Likewise.
83
        * profile-fr450.c: New file.
84
        * registers.c (fr450_spr): New array.
85
        (frv_register_control_init): Check its size.  Use it for fr450.
86
        (frv_check_register_access): Handle bfd_mach_fr450.
87
        (frv_check_spr_read_access): Likewise. Generalize accumulator check.
88
        * traps.c (frv_core_signal, frvbf_media_cr_not_aligned): Likewise.
89
        (frvbf_media_acc_not_aligned): Likewise.
90
        (frvbf_media_register_not_aligned): Likewise.
91
        * arch.c: Regenerate.
92
        * arch.h: Regenerate.
93
        * cpu.h: Regenerate.
94
        * cpuall.h: Regenerate.
95
        * decode.h: Regenerate.
96
        * model.c: Regenerate.
97
 
98
2004-03-01  Richard Sandiford  
99
 
100
        * cache.c (frv_cache_init): Change fr400 cache statistics to match
101
        the fr405.
102
        (non_cache_access): Add missing breaks.
103
        * interrupts.c (set_exception_status_registers): Always set EAR15
104
        for data_access_errors.
105
        * memory.c (fr400_check_write_address): Remove redundant alignment
106
        check.
107
        * model.c: Regenerate.
108
 
109
2004-03-01  Richard Sandiford  
110
 
111
        * frv.c (frvbf_iacc_cut): Rework, taking rounding into account.
112
 
113
2004-03-01  Richard Sandiford  
114
 
115
        * decode.c, decode.h, model.c, sem.c: Regenerate.
116
 
117
2003-11-24  Kevin Buettner  
118
 
119
        * frv-sim.h (GR_REGNUM_MAX, FR_REGNUM_MAX, PC_REGNUM, SPR_REGNUM_MIN)
120
        (SPR_REGNUM_MAX): Delete.
121
        * frv.c (gdb/sim-frv.h): Include.
122
        (frvbf_fetch_register, frvbf_store_register): Use register number
123
        constants from gdb/sim-frv.h.  Check availability of general
124
        purpose and float registers.
125
 
126
2003-11-03  Dave Brolley  
127
 
128
        * cache.c (address_interference): Check for higher priority requests
129
        in the same pipeline.
130
 
131
2003-10-31  Dave Brolley  
132
 
133
        * frv-sim.h (LR_REGNUM): Removed.
134
        (SPR_REGNUM_MIN,SPR_REGNUM_MAX): New macros.
135
        * frv.c (frvbf_fetch_register): Fetch SPR registers based on
136
        SPR_REGNUM_MIN and SPR_REGNUM_MAX. Check whether SPRs are implemented.
137
        Return 0 for an unimplemented register. Return the length of the data
138
        for an implemented register.
139
        (frvbf_store_register): Ditto.
140
 
141
2003-10-30  Andrew Cagney  
142
 
143
        * traps.c: Replace "struct symbol_cache_entry" with "struct
144
        bfd_symbol".
145
 
146
2003-10-10  Dave Brolley  
147
 
148
        * cpu.h, sem.c: Regenerate.
149
 
150
2003-10-06  Dave Brolley  
151
 
152
        * profile-fr550.[ch]: New files.
153
        * configure.in: Move frv handling to alphabetically correct placement.
154
        * Makefile.in: Add fr550 support.
155
        * frv-sim.h,frv.c,interrups.c,memory.c,mloop.in,pipeline.c,
156
        profile.[ch],registers.c,traps.c: Add fr550 support.
157
        * arch.c,arch.h,cpu.c,cpu.h,cpuall.h,model.h,decode.c,decode.h,sem.c:
158
        Regenerate.
159
 
160
2003-09-25  Dave Brolley  
161
 
162
        * reset.c (frv_initialize): Call frv_register_control_init first.
163
 
164
2003-09-24  Dave Brolley  
165
 
166
        * profile.h (update_FR_ptime): New prototype.
167
        (update_FRdouble_ptime): Ditto.
168
        (update_SPR_ptime): Ditto.
169
        (increase_ACC_busy): Ditto.
170
        (enforce_full_acc_latency): Ditto.
171
        (post_wait_for_SPR): Ditto.
172
        * profile.c (update_FR_ptime): Moved here from profile-fr500.c.
173
        (update_FRdouble_ptime): Ditto.
174
        (update_SPR_ptime): New function.
175
        (increase_ACC_busy): Ditto.
176
        (enforce_full_acc_latency): Ditto.
177
        (vliw_wait_for_fdiv_resource): Correct resource name.
178
        (vliw_wait_for_fsqrt_resource): Ditto.
179
        (post_wait_for_SPR): New function.
180
        * profile-fr500.c (frvbf_model_fr500_u_commit): New function.
181
        (frvbf_model_fr500_u_gr2fr): Pass out_FRk as output register to
182
        adjust_float_register_busy.
183
        (frvbf_model_fr500_u_gr_load): Record latency of SPR registers.
184
        (frvbf_model_fr500_u_fr_load): Wait for and record latency of SPR
185
        registers.
186
        (frvbf_model_fr500_u_float_arith): Ditto.
187
        (frvbf_model_fr500_u_float_dual_arith): Ditto.
188
        (frvbf_model_fr500_u_float_div): Ditto.
189
        (frvbf_model_fr500_u_float_sqrt): Ditto.
190
        (frvbf_model_fr500_u_float_convert): Ditto.
191
        (update_FR_ptime): Moved to profile.c
192
        (update_FRdouble_ptime): Moved to profile.c
193
        * profile-fr400.c (update_FR_ptime): Removed. Identical to functions
194
        for other machines.
195
        (update_FRdouble_ptime): Ditto.
196
        * arch.h,cpu.h,sem.c,decode.[ch],model.c,sem.c: Regenerated.
197
 
198
2003-09-12  Dave Brolley  
199
 
200
        * registers.c (frv_check_spr_read_access): Check for access to
201
        ACC4-ACC63 and ACCG4-ACCG63.
202
        * profile.h (frv-desc.h): #include it.
203
        (spr_busy): New member of FRV_PROFILE_STATE.
204
        (spr_latency): Ditto.
205
        (GNER_FOR_GR): New macro.
206
        (FNER_FOR_FR): New maccro.
207
        (update_SPR_latency): New function.
208
        (vliw_wait_for_SPR): New function.
209
        * profile.c (update_latencies): Update SPR latencies.
210
        (update_target_latencies): Ditto.
211
        (update_SPR_latency): New function.
212
        (vliw_wait_for_SPR): New function.
213
        * profile-fr500.c (frvbf_model_fr500_u_idiv): Record GNER latency.
214
        (frvbf_model_fr500_u_trap): Removed unused variable, ps.
215
        (frvbf_model_fr500_u_check): Ditto.
216
        (frvbf_model_fr500_u_clrgr): New unit modeller for fr500.
217
        (frvbf_model_fr500_u_clrfr): Ditto.
218
        (frvbf_model_fr500_u_spr2gr): Wait for SPR.
219
        (frvbf_model_fr500_u_gr2spr): Ditto.
220
        * frv-sim.h (H_SPR_ACC4): New macro.
221
        (H_SPR_ACCG4): New macro;
222
        (H_SPR_ACC0): Removed.
223
        (H_SPR_ACCG0): Removed.
224
        * arch.h,model.c,sem[ch],decode.[ch]: Regenerated.
225
 
226
2003-09-10  Dave Brolley  
227
 
228
        * profile.c (slot_names): FM1 was listed twice. Changed first
229
        instance to FM0. Added IALL, FMALL and FMLOW.
230
        (print_parallel): Don't examine slots with no insns.
231
 
232
2003-09-09  Dave Brolley  
233
 
234
        * frv.c (do_media_average): Select machine using a switch.
235
 
236
2003-09-08  Dave Brolley  
237
 
238
        On behalf of Doug Evans 
239
        * Makefile.in (stamp-arch,stamp-cpu): Pass archfile to cgen.
240
        Remove copying of .cpu file to cgen/cpu, no longer needed.
241
 
242
2003-09-03  Dave Brolley  
243
 
244
        * cpu.h, model.c, sem.c, decode.h, decode.c: Regenerated.
245
 
246
2003-08-29  Dave Brolley  
247
 
248
        * Makefile.in (stamp-arch): Copy frv.cpu from $(srcdir)../../cpu
249
        temporarily when regenerating files.
250
        (stamp-cpu): Ditto.
251
 
252
2003-08-20  Micheal Snyder  
253
 
254
        * All generated files: Regenerate.
255
 
256
2001-10-11  Dave Brolley  
257
 
258
        * cpu.h,decode.c,decode.h,sem.c: Regenerate.
259
 
260
2001-10-09  Dave Brolley  
261
 
262
        * traps.c (frv_rett): Halt if PSR.S and PSR.ET are both set or both
263
        not set.
264
        * reset.c (frv_hardware_reset): Invalidate both caches.
265
        * registers.c: Update init, reset and read-only masks for all registers
266
        on all machines.
267
        * profile.h (cur_gr_complex): New field of FRV_PROFILE_STATE
268
        (prev_gr_complex): New field of FRV_PROFILE_STATE
269
        (set_use_is_gr_complex): New function.
270
        (set_use_not_gr_complex): New function.
271
        (use_is_gr_complex): New function.
272
        (decrease_GR_busy): New function.
273
        * profile.c (reset_gr_flags): New function.
274
        (reset_cc_flags): New function.
275
        (set_use_is_gr_complex): New function.
276
        (set_use_not_gr_complex): New function.
277
        (use_is_gr_complex): New function.
278
        (update_latencies): Reset gr and cc flags when latency reaches 0.
279
        (decrease_GR_busy): New function.
280
        * profile-fr400.h (fr500_reset_acc_flags): Removed.
281
        (fr500_reset_cc_flags): New function.
282
        * profile-fr500.c (frvbf_model_fr400_u_*): Reflect latencies from fr500
283
        LSI version 1.41.
284
        * profile-fr400.h (fr400_reset_gr_flags): New function.
285
        (fr400_reset_fr_flags): New function.
286
        (fr400_reset_acc_flags): New function.
287
        * profile-fr400.c (set_use_not_media_p4): New function.
288
        (set_use_not_media_p6): New function.
289
        (set_acc_use_not_media_p2): New function.
290
        (set_acc_use_not_media_p4): New function.
291
        (fr400_reset_gr_flags): New function.
292
        (fr400_reset_fr_flags): New function.
293
        (fr400_reset_acc_flags): New function.
294
        (frvbf_model_fr400_u_*): Reflect latencies from fr400 LSI version 1.1.
295
        (frvbf_model_fr400_u_media_hilo): New function.
296
        * pipeline.c (frv_vliw_setup_insn): Don't clear MSR0.MTT.
297
        * memory.c (fr400_check_data_read_address): Check address range only
298
        for double word loads. Don't check alignment here.
299
        (fr400_check_readwrite_address): New function.
300
        (fr500_check_readwrite_address): New function.
301
        (check_readwrite_address): New function.
302
        (fr500_check_insn_read_address): Correct address ranges.
303
        (frvbf_read_mem_*): Check address range here.
304
        (frv_address_forbidden): Removed.
305
        (fr400_check_write_address): New function.
306
        (check_write_address): New function.
307
        (frvbf_write_mem_*): Don't check address range here.
308
        (frvbf_mem_set_*): Check address range here.
309
        * interrupts.c (frv_queue_data_access_error_interrupt): Now takes an
310
        address as second argument.
311
        (frv_queue_data_access_exception_interrupt): New function.
312
        (frv_queue_illegal_instruction_interrupt): Generate fp_exception for
313
        media insns on fr400.
314
        (frv_queue_non_implemented_instruction_interrupt): Generate mp_exception
315
        for media insns on fr400.
316
        (frv_detect_insn_access_interrupts): Don't check for illegal addresses
317
        of insns here.  Check for MTRAP insn if PSR.EM is not set.
318
        (frv_set_mp_exception_registers): Only set MSR0.MTT if it is not already
319
        set.
320
        (set_exception_status_registers): Do not always set EPCR. Set EAR for
321
        data_acess_error only if not fr400.
322
        * frv.c (do_media_average): New function.
323
        (frvbf_media_average): New function.
324
        (frvbf_insn_cache_invalidate): Check for illegal invocation.
325
        (frvbf_data_cache_invalidate): Ditto.
326
        (frvbf_data_cache_flush): Ditto.
327
        * frv-sim.h (GET_FSR_QNE): New macro.
328
        (frv_msr_mtt): Remove MTT_SEQUENCE_ERROR.
329
        (GET_MSR_SRDAV): New macro.
330
        (GET_MSR_RDAV): New macro.
331
        (GET_MSR_RD): New macro.
332
        (frv_queue_data_access_error_interrupt): Now takes an address as second
333
        argument.
334
        (frv_address_forbidden): Removed.
335
        * cache.c (non_cache_access): Correct address ranges. Now takes cache
336
        as first argument.
337
        * arch.h,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
338
 
339
2001-08-20  Dave Brolley  
340
 
341
        * sim-main.h (_sim_cpu): New field 'elf_flags'.
342
        * sim-if.c (sim_open): Extract the elf_flags from the input file and
343
        save them with each cpu.
344
        * mloop.in (main loop): Pass elf flags to frv_vliw_reset.  Set
345
        last_insn_p before executing the insn.
346
        * cache.c (frv_cache_invalidate): Flush scache if this is the cpu's
347
        insn cache.
348
        (frv_cache_invalidate_all): Ditto.
349
 
350
2001-08-20  Richard Sandiford  
351
 
352
        * traps.c (syscall_read_mem): Flush the data cache before reading.
353
        (syscall_write_mem): Flush the data cache before writing.
354
        Invalidate both caches.
355
 
356
2001-07-05  Ben Elliston  
357
 
358
        * Makefile.in (stamp-arch): Use $(CGEN_CPU_DIR).
359
        (stamp-cpu): Likewise.
360
 
361
2001-05-23  Dave Brolley  
362
 
363
        * profile-fr400.c (acc_use_is_media_p2): New function.
364
        (frvbf_model_fr400_u_media_2): Account for latency of output
365
        accumulators.
366
        (frvbf_model_fr400_u_media_2_quad): Ditto.
367
        (frvbf_model_fr400_u_media_2_acc): New function.
368
        (frvbf_model_fr400_u_media_2_acc_dual): New function.
369
        (frvbf_model_fr400_u_media_2_add_sub): New function.
370
        (frvbf_model_fr400_u_media_2_add_sub_dual): New function.
371
        (frvbf_model_fr400_u_media_3_dual): New function.
372
        (frvbf_model_fr400_u_media_4_acc_dual): New function.
373
        * arch.h,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
374
 
375
2001-05-15  Dave Brolley  
376
 
377
        * registers.c (fr400_spr): Enable write access to HSR0.CBM.
378
        * profile.h (FRV_PROFILE_STATE): New field 'all_cache_entries'.
379
        * profile.c (CACHE_QUEUE_ELEMENT): New 'all' field.
380
        (request_cache_flush): Save 'all' argument.
381
        (request_cache_invalidate): Save all_cache_entries from profile state
382
        to 'all' field of the request.
383
        (submit_cache_request): Pass the 'all' field of the request to
384
        frv_cache_request_invalidate.
385
        * frv.c (frv_insn_cache_invalidate): Add new 'all' parameter. Perform
386
        operation even if HSR0.ICE is not set.
387
        (frv_data_cache_invalidate): Add new 'all' parameter. Perform
388
        operation even if HSR0.DCE is not set.
389
        (frv_data_cache_flush): Ditto.
390
        * frv-sim.h (frv_insn_cache_invalidate): Add new 'all' parameter.
391
        (frv_data_cache_invalidate): Add new 'all' parameter.
392
        (frv_data_cache_flush): Add new 'all' parameter.
393
        * cache.h (FRV_CACHE_INVALIDATE_REQUEST): Add new 'all' field.
394
        (frv_cache_request_invalidate): Add new 'all' parameter.
395
        * cache.c (frv_cache_request_invalidate): Add new 'all' parameter. Save
396
        its value in the invalidate request.
397
        (address_interference): Accept the value '-1' for the address argument
398
        to mean 'any address'.
399
        (handle_req_invalidate): Handle request to invalidate all cache lines.
400
        * cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
401
 
402
2001-05-14  Dave Brolley  
403
 
404
        * profile.h (past_first_p): New field of profiling state.
405
        (branch_penalty): Ditto.
406
        (branch_hint): Ditto.
407
        (update_branch_penalty): New function.
408
        * profile.c (frvbf_model_insn_after): Reset past_first_p and
409
        branch_address fields of the profiling state.
410
        (frvbf_model_branch): New function.
411
        (update_branch_penalty): New function.
412
        * profile-fr500.c (frvbf_model_fr500_u_branch): Remove ICCi_3 and
413
        FCCi_3 inputs.
414
        (frvbf_model_fr500_u_trap): New function.
415
        (frvbf_model_fr500_u_check): New function.
416
        (frvbf_model_fr500_u_media_dual_htob): post-processing latency is 3
417
        cycles.
418
        * profile-fr400.c (frvbf_model_fr400_u_branch): Set branch penalties
419
        as documented in the fr400 LSI. Remove ICCi_3 and FCCi_3 inputs.
420
        (frvbf_model_fr400_u_media_dual_expand): Check resource usage as
421
        documented in teh fr400 LSI.
422
        (frvbf_model_fr400_u_media_dual_htob): Ditto.
423
        (frvbf_model_fr400_u_media_dual_unpack): Removed.
424
        (frvbf_model_fr500_u_trap): New function.
425
        (frvbf_model_fr500_u_check): New function.
426
        * mloop.in (simulate_dual_insn_prefetch): New function.
427
        (@cpu@_simulate_insn_prefetch): Call simulate_dual_insn_prefetch with
428
        arguments for each machine type.
429
        * arch.h,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
430
 
431
2001-05-09  Dave Brolley  
432
 
433
        * Makefile.in (profile.o): Add profile-fr400.h as a dependency.
434
        (profile-fr400.o): New target.
435
        * profile.c: New file.
436
        * profile.h: New file.
437
        * profile-fr400.c: New file.
438
        * profile-fr400.h: New file.
439
        * profile-fr500.c: New file.
440
        * profile-fr500.h: New file.
441
        * arch.h,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
442
 
443
2001-05-02  Dave Brolley  
444
 
445
        * sim-main.h (profile.h): #include it.
446
        (CPU_PROFILE_STATE): New macro.
447
        (profile_state): New frv specific cpu field.
448
        * reset.c (frv_initialize): insn_fetch_address and branch_address now
449
        part of global profiling state.
450
        * Makefile.in (SIM_OBJS): Add profile.o and profile-fr500.o.
451
        (SIM_EXTRA_DEPS): Add profile.h.
452
        (registers.o): Correct name of source file.
453
        (profile.o): New target.
454
        (profile-fr500.o): New target.
455
        * frv-sim.h: Move profile related data structures to profile.h.
456
        * frv.c: Move fr500 specific functions to profile-fr500.c.
457
        * cpu.h: Regenerated.
458
 
459
2001-04-27  Dave Brolley  
460
 
461
        * sim-main.h (CPU_PIPELINE): Renamed to CPU_VLIW.
462
        * interrupts.c: Rename FRV_PIPELINE to FRV_VLIW.
463
        Rename pipeline to vliw. Rename CPU_PIPELINE to CPU_VLIW.
464
        Rename PIPE_* to UNIT_*.
465
        (frv_queue_illegal_instruction_interrupt): Use
466
        frv_is_float_insn and frv_is_media_insn.
467
        (frv_queue_non_implemented_instruction_interrupt): Ditto.
468
        (frv_detect_insn_access_interrupts): Ditto.
469
        * frv.c: Rename FRV_PIPELINE to FRV_VLIW. Rename pipeline to vliw.
470
        Rename CPU_PIPELINE to CPU_VLIW. Rename PIPE_* to UNIT_*.
471
        * memory.c: Ditto.
472
        * pipeline.c: Ditto.
473
        * mloop.in: Ditto.
474
        * frv-sim.h (frv_pipeline_setup_insn): Renamed to frv_vliw_setup_insn.
475
        * cache.c: Rename PIPE_* to UNIT_*.
476
 
477
2001-04-24  Dave Brolley  
478
 
479
        * frv.c (frvbf_load_quad_GR): Delete have_data and hsr0.
480
        (frvbf_load_quad_FRint): Ditto.
481
        (frvbf_load_quad_CPR): Ditto.
482
        * cache.c (frv_cache_init): Initialize cache for fr400 vs other
483
        machines.
484
        (bfd.h): #include it.
485
        (non_cache_access): Update for revised fr500 and for fr400.
486
        * registers.c (frv_spr): Don't reset PSR.PS.
487
        (fr500_spr): Ditto.
488
        (frv_reset_spr): Set PSR.PS to the former value of PSR.S.
489
 
490
2001-04-23  Dave Brolley  
491
 
492
        * traps.c (frv_core_signal): On fr400, generate data_access_error.
493
        (frvbf_media_cr_not_aligned): On fr400, generate illegal_instruction.
494
        (frvbf_media_acc_not_aligned): Ditto.
495
        (frvbf_media_register_not_aligned): Ditto.
496
        (frvbf_division_exception): Use GET_ISR_EDE.
497
        * registers.c (frv_check_spr_read_access): New function.
498
        (frv_check_spr_write_access): New function.
499
        (frv_check_spr_access): Deleted.
500
        (frv_check_register_access): On fr400, generate illegal_instruction.
501
        * memory.c (fr400_check_data_read_address): New function.
502
        (fr500_check_data_read_address): Ditto.
503
        (check_data_read_address): Ditto.
504
        (fr400_check_insn_read_address): Ditto.
505
        (fr500_check_insn_read_address): Ditto.
506
        (check_insn_read_address): Ditto.
507
        (frvbf_read_mem_QI): Call check_data_read_access.
508
        (frvbf_read_mem_UQI): Ditto.
509
        (frvbf_read_mem_HI): Ditto.
510
        (frvbf_read_mem_UHI): Ditto.
511
        (frvbf_read_mem_SI): Ditto.
512
        (frvbf_read_mem_DI): Ditto.
513
        (frvbf_read_mem_DF): Ditto.
514
        (frvbf_read_imem_USI): Call check_insn_read_access.
515
        (frv_address_forbidden): Now takes cpu as first argument. Check based
516
        on machine type.
517
        (fr400_mem_address_unaligned): New function.
518
        (fr500_mem_address_unaligned): Ditto.
519
        (check_write_address): Ditto.
520
        (frvbf_mem_set_QI): Call check_write_address.
521
        (frvbf_mem_set_HI): Ditto.
522
        (frvbf_mem_set_SI): Ditto.
523
        (frvbf_mem_set_DI): Ditto.
524
        (frvbf_mem_set_DF): Ditto.
525
        (frvbf_mem_set_XI): Ditto.
526
        * interrupts.c (bfd.h): #include it.
527
        (frv_queue_data_access_error_interrupt): New function.
528
        (frv_queue_instruction_access_error_interrupt): New function.
529
        (frv_queue_instruction_access_exception_interrupt): New function.
530
        (frv_queue_illegal_instruction_interrupt): No fp_exception on fr400.
531
        (frv_queue_non_implemented_instruction_interrupt): Ditto.
532
        (frv_detect_insn_access_interrupts): Reorder tests to match priority
533
        from the LSI manual.
534
        (set_isr_exception_fields): Accumulate dtt bits.
535
        * frv.c (check_register_alignment): New function.
536
        (check_fr_register_alignment): New function.
537
        (check_memory_alignment): New function.
538
        (frvbf_h_gr_double_get_handler): Call check_register_alignment.
539
        (frvbf_h_gr_double_set_handler): Ditto.
540
        (frvbf_h_cpr_double_get_handler): Ditto.
541
        (frvbf_h_cpr_double_set_handler): Ditto.
542
        (frvbf_h_gr_quad_set_handler): Ditto.
543
        (frvbf_h_cpr_quad_set_handler): Ditto.
544
        (frvbf_h_fr_double_get_handler): Call check_fr_register_alignment.
545
        (frvbf_h_fr_double_set_handler): Ditto.
546
        (frvbf_h_fr_quad_set_handler): Ditto.
547
        (frvbf_h_spr_get_handler): Call frv_check_spr_read_access.
548
        (frvbf_h_spr_set_handler): Call frv_check_spr_write_access.
549
        (frvbf_load_quad_GR): Call check_memory_aligment.
550
        (frvbf_load_quad_FRint): Ditto.
551
        (frvbf_load_quad_CPR): Ditto.
552
        (frvbf_store_quad_GR): Call check_memory_aligment and
553
        check_register_alignment.
554
        (frvbf_store_quad_FRint): Ditto.
555
        (frvbf_store_quad_CPR): Ditto.
556
        (frvbf_signed_integer_divide: Use GET_ISR_EDEM.
557
        * frv-sim.h (H_SPR_ACC0): New macro.
558
        (H_SPR_ACC63): New macro.
559
        (H_SPR_ACCG0): New macro.
560
        (H_SPR_ACCG63): New macro.
561
        (frv_dtt): New enumerator.
562
        (GET_ISR_EDE): Renamed from GET_ISR_EDEM.
563
        (GET_ISR_DTT): New macro.
564
        (frv_queue_data_access_error_interrupt): New function.
565
        (frv_queue_instruction_access_error_interrupt): New function.
566
        (frv_queue_instruction_access_exception_interrupt): New function.
567
        (frv_address_forbidden): Now takes cpu as first argument.
568
        * cpu.h: Regenerate.
569
 
570
2001-04-10  Dave Brolley  
571
 
572
        * registers.c (fr500_spr): Add new fields to fr500 PSR register.
573
        (fr500_spr): Add STBAR and MMCR unimplemented registers for fr500.
574
        (fr400_spr): Implement SPR registers for fr400.
575
        (frv_register_control_init): Handle bfd_mach_fr400 properly.
576
        * frv.c (spr_bpsr_get_handler): Mask field before shifting.
577
        (spr_psr_get_handler): Ditto.
578
        (spr_ccr_get_handler): Ditto.
579
        (spr_cccr_get_handler): Ditto.
580
        (frvbf_clear_accumulators): Only 4 accumulators on fr400.
581
        * frv-sim.h: Update comment about MCCR_* macros.
582
        * cpu.c,cpu.h: Regenerate.
583
 
584
2001-04-05  Dave Brolley  
585
 
586
        * cpu.h,decode.c,model.c,sem.c: Regenerate.
587
 
588
2001-04-05  Dave Brolley  
589
 
590
        * reset.c: Update copyright.
591
        * registers.c (frv_register_control_init): Handle bfd_mach_fr400.
592
        * frv.c (frvbf_model_fr400_u_exec): New function.
593
        * Makefile.in (stamp-cpu): Add fr400 to list of machines.
594
        * arch.c,arch.h,cpu.c,cpu.h,cpuall.h,model.h,decode.c,decode.h,sem.c:
595
        Regenerate.
596
 
597
2000-11-22  Dave Brolley  
598
 
599
        * arch.c,arch.h,cpu.c,cpu.h,cpuall.h,model.h,decode.c,decode.h,sem.c:
600
        Regenerate.
601
 
602
2000-11-10  Dave Brolley  
603
 
604
        * decode.c: Regenerate.
605
 
606
2000-09-12  Dave Brolley  
607
 
608
        * traps.c (frv_sim_engine_halt_hook): New function.
609
        (frv_itrap): Caches now invalidated in sim_engine_halt via
610
        SIM_ENGINE_HALT_HOOK.
611
        (frv_break): Ditto.
612
        * sim-main.h (frv_sim_engine_halt_hook): New function.
613
        (SIM_ENGINE_HALT_HOOK): New macro.
614
        (SIM_ENGINE_RESTART_HOOK): New macro.
615
        * interrupts.c: Call to frv_term now done within sim_engine_halt via
616
        SIM_ENGINE_HALT_HOOK.
617
 
618
2000-09-08  Dave Brolley  
619
 
620
        * traps.c (frv_itrap): Invalidate and flush the data and insn caches
621
        respectively when stopping for a breakpoint.
622
        (frv_break): Ditto.
623
        * cache.h (frv_cache_invalidate_all): New function.
624
        * cache.c (frv_cache_invalidate_all): New function.
625
 
626
2000-09-05  Dave Brolley  
627
 
628
        * traps.c (frv_break): If SIM_HAVE_BREAKPOINTS, call
629
        sim_handle_breakpoint. Otherwise if environment != operating call
630
        sim_engine_halt. Otherwise handle normally.
631
        * interrupts.c (frv_queue_break_interrupt): Don't handle debugger
632
        breakpoints here. Moved to frv_break in traps.c.
633
 
634
        * sem.c: Regenerate.
635
 
636
2000-09-01  Dave Brolley  
637
 
638
        * interrupts.c (frv_queue_break_interrupt): Call sim_handle_breakpoint
639
        before queuing an interrupt in order to allow 'break' to be used as
640
        the breakpoint insn.
641
 
642
2000-08-29  Dave Brolley  
643
 
644
        * traps.c (frv_itrap): Invalidate the insn cache at a breakpoint.
645
 
646
2000-07-27  Dave Brolley  
647
 
648
        * cpu.h,decode.c: Rebuild.
649
 
650
2000-07-26  Dave Brolley  
651
 
652
        * frv.c (spr_cccr_get_handler): Change CRx to CCx.
653
        (spr_cccr_set_handler): Change CRx to CCx.
654
        * cpu.h,decode.c,decode.h,model.c,sem.c: Rebuild.
655
 
656
2000-07-24  Dave Brolley  
657
 
658
        * sem.c: Regenerate.
659
        * frv.c (frvbf_unsigned_integer_divide): Queue a write for the result.
660
        Don't write it directly.
661
 
662
Thu Jul  6 13:51:12 2000  Dave Brolley  
663
 
664
        * configure: Regenerated to track ../common/aclocal.m4 changes.
665
 
666
2000-07-05  Ben Elliston  
667
 
668
        * configure: Regenerated to track ../common/aclocal.m4 changes.
669
 
670
2000-06-28  Dave Brolley  
671
 
672
        * cpu.h,decode.c,decode.h,model.c,sem.c: Rebuild.
673
 
674
2000-06-21  Dave Brolley  
675
 
676
        * pipeline.c: All code except frv_pipeline_setup_insn moved to
677
        frv.opc.
678
        * mloop.in (main loop): frv_pipeline_add_insn broken up into
679
        frv_pipeline_add_insn and frv_pipeline_setup_insn.
680
        * frv-sim.h: Move pipeline status code to frv.opc.
681
        * model.c: Regenerate.
682
 
683
2000-06-12  Dave Brolley  
684
 
685
        * options.c (frv_option_handler): --profile-parallel implies
686
        --profile-model.
687
        * mloop.in (fetch_buffer): Removed.
688
        (@cpu@_simulate_insn_prefetch): Monitoring of fetch buffer moved to
689
        run_caches.  Use cache directly if not counting cycles.  Don't use
690
        cache at all if not counting cycles and cache not enabled.
691
        * frv.c (frv_insn_fetch_buffer): New global variable.
692
        (run_caches): Monitor the status of insn prefetch requests.
693
        * frv-sim.h (FRV_INSN_FETCH_BUFFER): New struct type.
694
        (frv_insn_fetch_buffer): New global variable.
695
 
696
2000-06-12  Dave Brolley  
697
 
698
        * mloop.in (fetch_buffer): New static struct.
699
        (@cpu@_simulate_insn_prefetch): Rewritten.
700
        * cache.c (frv_cache_request_invalidate): Don't invalidate return
701
        buffer.
702
        (address_interference): Defer to any WAR request in either pipeline.
703
 
704
2000-06-09  Dave Brolley  
705
 
706
        * pipeline.c (insns_in_slot): New Array.
707
        (frv_pipeline_add_insn): Call COUNT_INSNS_IN_SLOT.
708
        * options.c (frv_options): Remove 'NONBLOCK' argument from data-cache
709
        option.
710
        (parse_cache_option): New function.
711
        (frv_option_handler): Call parse_cache_option.
712
        * frv.c (vliw_branch_taken): New variable.
713
        (vliw_load_stall): New variable.
714
        (handle_resource_wait): Update vliw_load_stall.
715
        (frvbf_model_insn_before): Initialize vliw_branch_taken and
716
        vliw_load_stall.
717
        (frvbf_model_insn_after): Increment PROFILE_MODEL_LOAD_STALL_CYCLES.
718
        (load_wait_for_FR): Update vliw_load_stall.
719
        (load_wait_for_GR): Update vliw_load_stall.
720
        (load_wait_for_FRdouble): Update vliw_load_stall.
721
        (load_wait_for_GRdouble): Update vliw_load_stall.
722
        (frvbf_model_fr500_u_branch): Count branches taken and not taken.
723
        (slot_names): New static array.
724
        (print_parallel): Now takes second argument 'verbose'. Print cycles per
725
        VLIW insn and instructions per cycle. Also tabulate the number of insns
726
        in each type of VLIW slot.
727
        (frv_profile_info): Call print_parallel with new second argument.
728
        * frv-sim.h (insn_in_slot): New array.
729
        (COUNT_INSNS_IN_SLOT): New macro.
730
        (INSNS_IN_SLOT): New macro.
731
        * cache.c: Remove references to non_blocking_count. Remove references to
732
        last_was_hit. Remove references to req_none.
733
        (handle_req_store): Adjust statistics before requeuing the store
734
        request.
735
        (handle_req_WAR): Don't let the WAR request affect the cache statistics.
736
        * cache.h: Remove references to non_blocking_count. Remove references to
737
        last_was_hit. Remove references to req_none.
738
        * model.c: Regenerate.
739
 
740
2000-06-08  Dave Brolley  
741
 
742
        * frv.c (request_complete): Copy load data from the correct return
743
        buffer.
744
 
745
2000-06-07  Dave Brolley  
746
 
747
        * traps.c (frv_core_signal): Call frv_term before exiting.
748
        (frv_itrap): Call frv_term before exiting.
749
        (next_available_nesr): Make sure NECR is implemented before reading it.
750
        (next_valid_nesr): Ditto.
751
        (frvbf_check_non_excepting_load): Ditto.
752
        (frvbf_clear_ne_flags): Ditto.
753
        (frvbf_commit): Ditto.
754
        (frvbf_check_recovering_store): Delay cache operation if 'model_insn'.
755
        * sim-main.h (_sim_cpu): Add load_address, load_length, load_flag and
756
        store_flag members.
757
        (CPU_LOAD_ADDRESS): New macro.
758
        (CPU_LOAD_LENGTH): New macro.
759
        (CPU_LOAD_SIGNED): New macro.
760
        (CPU_LOAD_LOCK): New macro.
761
        * reset.c (frv_term): New function.
762
        (frv_power_on_reset): Use SETMEMSI if the cache is not enabled.
763
        (frv_hardware_reset): Use SETMEMSI if the cache is not enabled.
764
        (frv_software_reset): Use SETMEMSI if the cache is not enabled.
765
        * mloop.in (execute): Call FRV_COUNT_CYCLES to decide whether to model
766
        the insn. Model the insn in two passes. One before and one after
767
        execution.
768
        (cache_reqno): new static variable.
769
        (@cpu@_simulate_insn_prefetch): Model fetch latency by waiting for the
770
        cache rather than assuming a fixed latency.
771
        (xinit): Turn on PROFILE_MODEL_P before each vliw insn if the timer is
772
        enabled so that modeling data is collected by cgen during execution.
773
        (full-exec): Restore PROFILE_MODEL_P after each vliw insn.
774
        * memory.c (data_non_cache_access): Removed.
775
        (insn_non_cache_access): Removed.
776
        (frvbf_read_mem_QI): Delay read operation if 'model_insn'.
777
        (frvbf_read_mem_UQI): Delay read operation if 'model_insn'.
778
        (frvbf_read_mem_HI): Delay read operation if 'model_insn'.
779
        (frvbf_read_mem_UHI): Delay read operation if 'model_insn'.
780
        (frvbf_read_mem_SI): Delay read operation if 'model_insn'.
781
        (frvbf_read_mem_DI): Delay read operation if 'model_insn'.
782
        (frvbf_read_mem_DF): Delay read operation if 'model_insn'.
783
        (frvbf_read_imem_USI): Read the cache or ememory passively.
784
        (frvbf_write_mem_QI): Don't check for non-cache access here.
785
        (frvbf_write_mem_UQI): Call frvbf_write_mem_QI.
786
        (frvbf_write_mem_HI): Don't check for non-cache access here.
787
        (frvbf_write_mem_UHI): Call frvbf_write_mem_QI.
788
        (frvbf_write_mem_SI): Don't check for non-cache access here.
789
        (frvbf_write_mem_DI): Don't check for non-cache access here.
790
        (frvbf_write_mem_DF): Don't check for non-cache access here.
791
        (frvbf_mem_set_QI): Use cycle-accurate cache write if 'model_insn'.
792
        (frvbf_mem_set_HI): Use cycle-accurate cache write if 'model_insn'.
793
        (frvbf_mem_set_SI): Use cycle-accurate cache write if 'model_insn'.
794
        (frvbf_mem_set_DI): Use cycle-accurate cache write if 'model_insn'.
795
        (frvbf_mem_set_DF): Use cycle-accurate cache write if 'model_insn'.
796
        (frvbf_mem_set_XI): Use cycle-accurate cache write if 'model_insn'.
797
        * interrupts.c (check_reset): Read the cache and memory passively.
798
        (frv_program_or_software_interrupt): Call frv_term before calling
799
        sim_engine_halt.
800
        * frv.c (all modeling functions): Break into two passes. One before
801
        execuetion and one after. call load_wait_for_* for all GR and FR
802
        registers.
803
        (frvbf_load_quad_GR): Delay performing the load if 'model_insn'.
804
        (frvbf_load_quad_FRint): Delay performing the load if 'model_insn'.
805
        (frvbf_load_quad_CPR): Delay performing the load if 'model_insn'.
806
        (frvbf_insn_cache_preload): Delay cache operation if 'model_insn'.
807
        (frvbf_data_cache_preload): Delay cache operation if 'model_insn'.
808
        (frvbf_insn_cache_unlock): Delay cache operation if 'model_insn'.
809
        (frvbf_data_cache_unlock): Delay cache operation if 'model_insn'.
810
        (frvbf_insn_cache_invalidate): Delay cache operation if 'model_insn'.
811
        (frvbf_data_cache_invalidate): Delay cache operation if 'model_insn'.
812
        (frvbf_data_cache_flush): Delay cache operation if 'model_insn'.
813
        (model_insn): New global variable.
814
        (fr_ptime): New array.
815
        (cache_request): New enumeration.
816
        (CACHE_QUEUE_ELEMENT): New struct type.
817
        (CACHE_QUEUE_SIZE): New macro.
818
        (cache_queue): New static struct.
819
        (request_cache_load): New function.
820
        (request_cache_flush): New function.
821
        (request_cache_invalidate): New function.
822
        (request_cache_preload): New function.
823
        (request_cache_unlock): New function.
824
        (submit_cache_request): New function.
825
        (activate_cache_requests): New function.
826
        (load_pending_for_register): New function.
827
        (flush_pending_for_address): New function.
828
        (remove_cache_queue_element): New function.
829
        (copy_load_data): New function.
830
        (request_complete): New function.
831
        (run_caches): New function.
832
        (frv_model_trace_wait_cycles): New function.
833
        (wait_for_flush): New function.
834
        (frvbf_model_insn_before): Insn prefect wait now modeled in
835
        frvbf_simulate_insn_prefetch. Incremement vliw_insns here. Call
836
        wait_for_flush.
837
        (frvbf_model_insn_after): Call activate_cache_requests. Don't increment
838
        vliw_insns here anymore.
839
        (update_FR_latency_for_load): New function.
840
        (update_FRdouble_latency_for_load): New function.
841
        (update_FR_ptime): New function.
842
        (update_FRdouble_ptime): New function.
843
        (update_GR_latency_for_swap): New function.
844
        (load_wait_for_GR): New function.
845
        (load_wait_for_FR): New function.
846
        (load_wait_for_GRdouble): New function.
847
        (load_wait_for_FRdouble): New function.
848
        (frvbf_model_fr500_u_ici): New function.
849
        (frvbf_model_fr500_u_dci): New function.
850
        (frvbf_model_fr500_u_dcf): New function.
851
        (frvbf_model_fr500_u_icpl): New function.
852
        (frvbf_model_fr500_u_dcpl): New function.
853
        (frvbf_model_fr500_u_icul): New function.
854
        (frvbf_model_fr500_u_dcul): New function.
855
        * frv-sim.h (frv_term): New function.
856
        (insn_non_cache_access): Removed.
857
        (FRV_COUNT_CYCLES): New macro.
858
        (frv_save_peofile_model_p): New global variable.
859
        (model_insn): New enumerated global variable.
860
        (frv_model_advance_cycles): New function.
861
        (frv_model_trace_wait_cycles): New function.
862
        * cache.h (FRV_CACHE_REQUEST_KIND): New enumeration.
863
        (FRV_CACHE_WAR_REQUEST): New struct type.
864
        (FRV_CACHE_STORE_REQUEST): New struct type.
865
        (FRV_CACHE_INVALIDATE_REQUEST): New struct type.
866
        (FRV_CACHE_PRELOAD_REQUEST): New struct type.
867
        (FRV_CACHE_REQUEST): New struct type.
868
        (FRV_CACHE_RETURN_BUFFER): New struct type.
869
        (FRV_CACHE_FLUSH_STATUS): New struct type.
870
        (FRV_CACHE_STATUS): New struct type.
871
        (FRV_CACHE_STAGE): New struct type.
872
        (FRV_CACHE_STAGES): New enumeration.
873
        (FRV_CACHE_WAR): New struct type.
874
        (FRV_CACHE_PIPELINE): New struct type.
875
        (FRV_CACHE_ARS): New struct type.
876
        (FRV_CACHE_STATISTICS): New struct type.
877
        (FRV_CACHE): Add pipeline, statistics, BARS and NARS.
878
        (CACHE_RETURN_DATA): 'return_buffer' is now within 'status'.
879
        (CACHE_RETURN_DATA_ADDRESS): New macro.
880
        (frv_cache_read): Now takes pipe index as second argument.
881
        (frv_cache_enabled): New function.
882
        (frv_cache_request_load): New function.
883
        (frv_cache_request_store): New function.
884
        (frv_cache_request_invalidate): New function.
885
        (frv_cache_request_preload): New function.
886
        (frv_cache_request_unlock): New function.
887
        (frv_cache_run): New function.
888
        (frv_cache_read_passive_SI): New function.
889
        (frv_cache_data_in_buffer): New function.
890
        (frv_cache_data_flushed): New function.
891
        * cache.c (frv_cache_init): Initialize pipelines and xARS registers.
892
        (frv_cache_enabled): New function.
893
        (non_cache_access): New function.
894
        (write_data_to_memory): Count write accesses for each mode. Write to
895
        memory using sim_core_write_unaligned_1;
896
        (read_data_from_memory): New function.
897
        (fill_line_from_memory): Use read_data_from_memory.
898
        (copy_line_to_return_buffer): New function.
899
        (copy_memory_to_return_buffer): New function.
900
        (set_return_buffer_reqno): New function.
901
        (frv_cache_read): Now takes pipe index as second argument. Check for
902
        non-cache access.
903
        (frv_cache_preload): Check for non-cache access.
904
        (frv_cache_unlock): Check for non-cache access.
905
        (invalidate_return_buffer): New function.
906
        (frv_cache_invalidate): Check for non-cache access.
907
        (convert_slot_to_index): New function.
908
        (FREE_CHAIN_SIZE): New macro.
909
        (frv_cache_request_free_chain): New static variable.
910
        (frv_store_request_free_chain): New static variable.
911
        (allocate_new_cache_requests): New function.
912
        (new_cache_request): New function.
913
        (free_cache_request): New function.
914
        (new_store_request): New function.
915
        (pipeline_remove_request): New function.
916
        (pipeline_add_request): New function.
917
        (pipeline_requeue_request): New function.
918
        (next_priority): New function.
919
        (add_WAR_request): New function.
920
        (pipeline_next_request): New function.
921
        (pipeline_stage_request): New function.
922
        (advance_pipelines): New function.
923
        (frv_cache_request_load): New function.
924
        (frv_cache_request_store): New function.
925
        (frv_cache_request_invalidate): New function.
926
        (frv_cache_request_preload): New function.
927
        (frv_cache_request_unlock): New function.
928
        (address_interference): New function.
929
        (wait_for_WAR): New function.
930
        (wait_in_WAR): New function.
931
        (handle_req_load): New function.
932
        (handle_req_preload): New function.
933
        (handle_req_store): New function.
934
        (handle_req_invalidate): New function.
935
        (handle_req_unlock): New function.
936
        (handle_req_WAR): New function.
937
        (arbitrate_requests): New function.
938
        (move_ARS_to_WAR): New function.
939
        (decrease_latencies): New function.
940
        (frv_cache_run): New function.
941
        (frv_cache_read_passive_SI): New function.
942
        (frv_cache_data_in_buffer): New function.
943
        (frv_cache_data_flushed): New function.
944
        * arch.h,decode.c,decode.h,model.c,sem.c: Rebuild.
945
 
946
Wed May 24 14:40:34 2000  Andrew Cagney  
947
 
948
        * configure: Regenerated to track ../common/aclocal.m4 changes.
949
 
950
2000-05-19  Dave Brolley  
951
 
952
        * traps.c (frv_rett): Check for exceptions in the order specified in the
953
        architecture spec. Allow privileged_instruction interrrupt to be handled
954
        normally.
955
        * registers.c (frv_register_control_init): Handle bfd_mach_frvtomcat.
956
        * frv.c (frvbf_signed_integer_divide): Use updated dtt to decide whether
957
        to clear the NE flag.
958
        (frvbf_model_tomcat_u_exec): New function.
959
        * frv-sim.h (frvbf_division_exception): Now returns updated dtt.
960
        * Makefile.in (stamp-cpu): Add 'tomcat' to 'mach' value.
961
        * arch.c,arch.h,cpu.h,cpuall.h,model.h,decode.c,sem.c: Regenerate.
962
 
963
2000-05-18  Dave Brolley  
964
 
965
        * sim-if.c (elf-bfd.h): #include it.
966
        (sim_open): Set machine amd architecture based on elf flags.
967
 
968
2000-04-04  Dave Brolley  
969
 
970
        * frv-sim.h (frv_h_psr_esr_set_handler): Removed.
971
        Delete '#if 0' blocks.
972
        * frv.c: Delete '#if 0' blocks.
973
        (spr_psr_set_handler): Remove special handling for circular referencing of handlers for
974
        PSR.S and PSR.ESR.
975
        (frv_h_psr_esr_set_handler): Removed.
976
        * interrupts.c: Delete '#if 0' blocks.
977
        * memory.c: Delete '#if 0' blocks.
978
        * cpu.c,cpu.h: Regenerate.
979
 
980
2000-04-03  Dave Brolley  
981
 
982
        * traps.c (frvbf_check_recovering_store): Invalidate data cache line
983
        containing the target address.
984
        (clear_nesr_neear): No longer takes hi_available and lo_available.
985
        Remove bogus check for available GR registers.
986
        (frvbf_clear_ne_flags): Update call to clear_nesr_neear.
987
        (frvbf_commit): Update call to clear_nesr_neear.
988
        * interrupts.c (next_available_esr): Removed.
989
        (next_available_edr): Removed.
990
        (next_available_fq): Removed.
991
        * frv.c (frvbf_fetch_register): Remove "FIXME" comment.
992
        (frvbf_store_register): Remove "FIXME" comment.
993
        * frv-sim.h (UART_INCHAR_ADDR): Removed.
994
        (UART_OUTCHAR_ADDR):  Removed.
995
        (UART_STATUS_ADDR):  Removed.
996
        (UART_INPUT_READY):  Removed.
997
        (UART_OUTPUT_READY):  Removed.
998
        (FRV_DEVICE_ADDR):  Removed.
999
        (FRV_DEVICE_LEN):  Removed.
1000
        (SET_NESR): Call frvbf_force_update.
1001
        (SET_NEEAR): Call frvbf_force_update.
1002
        (SET_NE_FLAGS): Call frvbf_force_update.
1003
 
1004
2000-03-30  Dave Brolley  
1005
 
1006
        * configure: Regenerated.
1007
 
1008
2000-03-30  Dave Brolley  
1009
 
1010
        * registers.c (fr500_spr): Define ESR14-15 and EPCSR14-15 for fr500.
1011
        * memory.c (frvbf_write_mem_*): Save slot containing the insn
1012
        performing the write.
1013
        (frvbf_mem_set_*): Overwrite the slot information of the interrupt
1014
        queue element with the information in the interrupt state.
1015
        * interrupts.c (frv_queue_interrupt): Call frv_set_interrupt_queue_slot.
1016
        (frv_queue_fp_exception_interrupt): Initialize 'new_element'.
1017
        (frv_set_interrupt_queue_slot): New function.
1018
        (esr_for_data_access_exception): New function.
1019
        (set_edr_register): edr_index is now passed in.
1020
        (fq_for_exception): New function.
1021
        (set_fp_exception_registers): Call fq_for_exception. Interrupt queue
1022
        element now passed in.
1023
        (set_exception_status_registers): Obtain slot from interrupt queue
1024
        element. Call esr_for_data_access_exception. Use ESR14
1025
        for data_store_error. Use ESR15 for data_access_error. Use EDR0.
1026
        (frv_save_data_written_for_interrupts): Save slot containing the insn
1027
        performing the write.
1028
        * frv-sim.h (struct frv_fp_exception_info): Use frv_fsr_traps and
1029
        frv_fsr_ftt.
1030
        (struct frv_interrupt_state): Add 'slot' field.
1031
        (frv_set_interrupt_queue_slot): New function.
1032
        (frv_set_write_queue_slot): New function.
1033
 
1034
2000-03-24  Dave Brolley  
1035
 
1036
        * mloop.in (_parallel_write_init): Initialize
1037
        frv_interrupt_state.imprecise_interrupt.
1038
        (_parallel_write_queued): After an imprecise interrupt, only perform
1039
        forced writes and floating point writes (for certain exceptions).
1040
        * interrupts.c (handle_interrupt): Set
1041
        frv_interrupt_state.imprecise_interrupt for writeback after an imprecise
1042
        interrupt.
1043
        (frv_process_interrupts): No need to clear f_ne_flags.
1044
        * frv.c (frvbf_signed_integer_divide): Queue writes to GR registers and
1045
        force them to happen even if there is an overflow exception.
1046
        (frvbf_force_update): New function.
1047
        * frv-sim.h (frvbf_force_update): New function.
1048
        (struct frv_interrupt_state): Add imprecise_interrupt.
1049
        (FRV_WRITE_QUEUE_FORCE_WRITE): New macro.
1050
        * sem.c: Regenerate.
1051
 
1052
2000-03-23  Dave Brolley  
1053
 
1054
        * traps.c (frv_rett): Queue FRV_ILLEGAL_INSTRUCTION directly.
1055
        * registers.c (frv_spr): MCIRL -> MCILR.
1056
        * interrupts.c (frv_queue_non_implemented_instruction_interrupt):
1057
        New function.
1058
        (frv_detect_insn_access_interrupts):
1059
        Call frv_queue_non_implemented_instruction_interrupt.
1060
        (frv_process_interrupts): Clear accumulated NE flags.
1061
        * frv.c (frvbf_media_cop): New function.
1062
        (frvbf_set_ne_index): Now takes (SIM_CPU *) as first argument.  Clear
1063
        the NE flag of the given target register.
1064
        (frvbf_model_fr500_u_float_arith): Account for FRdouble registers.
1065
        (frvbf_model_fr500_u_float_dual_arith): Account for FRdouble registers.
1066
        (frvbf_model_fr500_u_float_dual_sqrt): New function.
1067
        (frvbf_model_fr500_u_float_convert): Account for FRdouble registers.
1068
        (frvbf_model_fr500_u_float_dual_convert): New function.
1069
        * frv-sim.h (frvbf_media_cop): New function.
1070
        (GET_FQ): Use H_SPR_FQST0.
1071
        (SET_FQ): Use H_SPR_FQST0.
1072
        (SET_FQ_OPC): Use J_SPR_FQOP0.
1073
        (GET_MSR_EMCI): New macro.
1074
        (frv_queue_non_implemented_instruction_interrupt): New function.
1075
        * arch.h,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1076
 
1077
2000-03-08  Dave Brolley  
1078
 
1079
        * traps.c (frv_rett): Align new_pc.
1080
        * memory.c (frvbf_read_mem_HI): Align address.
1081
        (frvbf_read_mem_UHI): Align address.
1082
        (frvbf_read_mem_SI): Align address.
1083
        (frvbf_read_mem_DI): Align address.
1084
        (frvbf_read_mem_DF): Align address.
1085
        (frvbf_read_imem_USI): Align address.
1086
        (frvbf_mem_set_HI): Align address.
1087
        (frvbf_mem_set_SI): Align address.
1088
        (frvbf_mem_set_DI): Align address.
1089
        (frvbf_mem_set_DF): Align address.
1090
        (frvbf_mem_set_XI): Align address.
1091
        * registers.c (frv_spr): Initialize FSR0.NS to 1.
1092
        (fr500_spr): Initialize FSR0.NS to 1.
1093
        * interrupts.c (frv_queue_mem_address_not_aligned_interrupt): Check
1094
        whether the exception is masked.
1095
        * frv.c (frvbf_load_quad_GR): Align address.
1096
        (frvbf_store_quad_GR): Align address.
1097
        (frvbf_load_quad_FRint): Align address.
1098
        (frvbf_store_quad_FRint): Align address.
1099
        (frvbf_load_quad_CPR): Align address.
1100
        (frvbf_store_quad_CPR): Align address.
1101
        * frv-sim.h (GET_ISR_EMAM): New macro.
1102
 
1103
2000-03-08  Dave Brolley  
1104
 
1105
        * traps.c (frvbf_division_exception): Check for masked overflow and
1106
        set NE flags, if necessary.
1107
        (frvbf_check_recovering_store): Queue writes to the hardware.
1108
        (check_registers_available): Removed.
1109
        (which_registers_available): Call frv_{fr,gr}_registers_available.
1110
        (frvbf_clear_ne_flags): Call check_register_access.
1111
        (frvbf_commit): Call check_register_access.
1112
        * registers.h (frv_fr_registers_available): New function.
1113
        (frv_gr_registers_available): New function.
1114
        (frv_check_register_access): New function.
1115
        (frv_check_gr_access): New function.
1116
        (frv_check_fr_access): New function.
1117
        * registers.c (frv_spr): Correct initial value of ISR.
1118
        (fr500_spr): Correct initial value of ISR.
1119
        (frv_fr_registers_available): New function.
1120
        (frv_gr_registers_available): New function.
1121
        (frv_check_register_access): New function.
1122
        (frv_check_gr_access): New function.
1123
        (frv_check_fr_access): New function.
1124
        * interrupts.c (frv_queue_division_exception_interrupt): New function.
1125
        (set_isr_exception_fields): New function.
1126
        (set_exception_status_registers): Set ISR fields for division exception.
1127
        (frv_save_data_written_for_interrupts): Handle CGEN_FN_SF_WRITE.
1128
        * frv.c (frvbf_h_gr_get_handler): New function.
1129
        (frvbf_h_gr_set_handler): New function.
1130
        (frvbf_h_fr_get_handler): New function.
1131
        (frvbf_h_fr_set_handler): New function.
1132
        (frvbf_h_spr_get_handler): Remove special handling for ISR.
1133
        (frvbf_h_spr_set_handler): Remove special handling for ISR.
1134
        (spr_isr_get_handler): Removed.
1135
        (spr_isr_set_handler): Removed.
1136
        (frvbf_signed_integer_divide): New funciton.
1137
        (frvbf_unsigned_integer_divide): New funciton.
1138
        * frv-sim.h (frvbf_h_gr_get_handler): New function.
1139
        (frvbf_h_gr_set_handler): New function.
1140
        (frvbf_h_fr_get_handler): New function.
1141
        (frvbf_h_fr_set_handler): New function.
1142
        (frvbf_signed_integer_divide): New funciton.
1143
        (frvbf_unsigned_integer_divide): New funciton.
1144
        (frv_dtt): New enumeration.
1145
        (struct frv_interrupt_queue_element): Add dtt member.
1146
        (GET_ISR): New macro.
1147
        (SET_ISR): New macro.
1148
        (GET_ISR_EDEM): New macro.
1149
        (SET_ISR_DTT): New macro.
1150
        (SET_ISR_AEXC): New macro.
1151
        (frvbf_division_exception): Add 2 'int' arguments.
1152
        (frvbf_check_non_excepting_divide): Removed.
1153
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1154
 
1155
2000-02-29  Dave Brolley  
1156
 
1157
        * traps.c (frv_itrap): Use GET_H_GR, SET_H_GR, GET_H_FR.
1158
        (frv_rett): Use hardware access macros. Write PSR as a whole.
1159
        (next_available_nesr): Check that NECR is valid.
1160
        (next_valid_nesr): Check that NECR is valid.
1161
        (frvbf_check_non_excepting_load): User new NECR access macros. Don't
1162
        call hardware access functions. Use cover macros.
1163
        (check_registers_available): New function.
1164
        (clear_nesr_near): Check register availability.
1165
        (clear_ne_flags): Check register availability.
1166
        (frvbf_clear_ne_flags): Check register availability.
1167
        (frvbf_commit): Check register availability.
1168
        (which_registers_available): New function.
1169
        * sim-main.h (registers.h): #include it.
1170
        (register_control): New cpu field.
1171
        (CPU_REGISTER_CONTROL): New macro.
1172
        * reset.c (frv_initialize): Set HSR0 fields for cache here.
1173
        (frv_power_on_reset): Initialize SPR registers and RSTR.
1174
        (frv_hardware_reset): Initialize SPR registers and RSTR.
1175
        (frv_software_reset): Reset SPR registers and RSTR.
1176
        * options.c (frv_option_handler): Don't set HSR0 fields for cache here.
1177
        Call frv_cache_init.
1178
        * mloop.in (main loop): Check for insn access interrupts before
1179
        executing the insn.
1180
        * interrupts.c (frv_queue_external_interrupt): Use GET_H_PSR_ET.
1181
        (frv_detect_insn_access_interrupts): Don't call hardware access
1182
        functions directly. Use cover macros.
1183
        (check_reset): Don't reset RSTR here.
1184
        (next_available_esr): ESFR -> ESFR_FLAG.
1185
        (next_available_edr): ESFR -> ESFR_FLAG.
1186
        (clear_exception_status_registers): Use GET_ESFR and SET_ESFR.
1187
        ESFR -> ESFR_FLAG.
1188
        (frv_break_interrupt): Don't call hardware access functions directly.
1189
        Use cover macros.
1190
        (frv_program_or_software_interrupt): Ditto.
1191
        (frv_external_interrupt): Ditto.
1192
        * frv.c (frvbf_fetch_register): Don't call 'get' functions directly.
1193
        (frvbf_store_register): Don't call 'set' functions directly.
1194
        (frvbf_h_gr_double_get_handler): Use GET_H_GR.
1195
        (frvbf_h_gr_double_set_handler): Use SET_H_GR.
1196
        (frvbf_h_fr_double_get_handler): Use GET_H_FR.
1197
        (frvbf_h_fr_double_set_handler): Use SET_H_FR.
1198
        (frvbf_h_fr_int_get_handler): Use GET_H_FR.
1199
        (frvbf_h_fr_int_set_handler): Use SET_H_FR.
1200
        (frvbf_h_cpr_double_get_handler): Use GET_H_CPR.
1201
        (frvbf_h_cpr_double_set_handler): Use SET_H_CPR.
1202
        (frvbf_h_gr_quad_set_handler): Use SET_H_GR.
1203
        (frvbf_h_fr_quad_set_handler): Use SET_H_FR.
1204
        (frvbf_h_spr_get_handler): Check SPR access. Call renamed functions.
1205
        Support shadow registers.
1206
        (frvbf_h_spr_set_handler): Check SPR access. Call renamed functions.
1207
        Support shadow registers.
1208
        (spr_psr_get_handler): Renamed from frvbf_h_psr_get_handler.
1209
        (spr_psr_set_handler): Renamed from frvbf_h_psr_set_handler.
1210
        (spr_tbr_get_handler): Renamed from frvbf_h_tbr_get_handler.
1211
        (spr_tbr_set_handler): Renamed from frvbf_h_tbr_set_handler.
1212
        (spr_bpsr_get_handler): Renamed from frvbf_h_bpsr_get_handler.
1213
        (spr_bpsr_set_handler): Renamed from frvbf_h_bpsr_set_handler.
1214
        (spr_ccr_get_handler): Renamed from frvbf_h_ccr_get_handler.
1215
        (spr_ccr_set_handler): Renamed from frvbf_h_ccr_set_handler.
1216
        (spr_lr_get_handler): Renamed from frvbf_h_lr_get_handler.
1217
        (spr_lr_set_handler): Renamed from frvbf_h_lr_set_handler.
1218
        (spr_cccr_get_handler): Renamed from frvbf_h_cccr_get_handler.
1219
        (spr_cccr_set_handler): Renamed from frvbf_h_cccr_set_handler.
1220
        (spr_isr_get_handler): Renamed from frvbf_h_isr_get_handler.
1221
        (spr_isr_set_handler): Renamed from frvbf_h_isr_set_handler.
1222
        (spr_sr_get_handler): Renamed from frvbf_h_sr_get_handler.
1223
        (spr_sr_set_handler): Renamed from frvbf_h_sr_set_handler.
1224
        (frvbf_h_psr_esr_set_handler): Update to conform to FRV architecture
1225
        version 1.3a.
1226
        (spr_ccr_get_handler): Don't reference the hardware directly.
1227
        (spr_ccr_set_handler): Don't reference the hardware directly.
1228
        (spr_cccr_get_handler): Don't reference the hardware directly.
1229
        (spr_cccr_set_handler): Don't reference the hardware directly.
1230
        (spr_sr_get_handler): New function.
1231
        (spr_sr_set_handler): New function.
1232
        (frvbf_switch_supervisor_user_context): Temporarily switch to
1233
        supervisor mode.
1234
        (frvbf_store_quad_GR): Don't call handler directly.
1235
        (frvbf_store_quad_FRint): Don't call handler directly.
1236
        (frvbf_store_quad_CPR): Don't call handler directly.
1237
        (frvbf_clear_all_accumulators): Removed.
1238
        (frvbf_clear_accumulators): New function.
1239
        (frvbf_model_fr500_u_media): Expand busy_adjustment to 8 members.
1240
        Account for in_ACCGi and out_ACCGk.
1241
        * frv-sim.h (RSTR_HARDWARE_RESET): New macro.
1242
        (RSTR_SOFTWARE_RESET): New macro.
1243
        (spr_psr_get_handler): Renamed from frvbf_h_psr_get_handler.
1244
        (spr_psr_set_handler): Renamed from frvbf_h_psr_set_handler.
1245
        (spr_tbr_get_handler): Renamed from frvbf_h_tbr_get_handler.
1246
        (spr_tbr_set_handler): Renamed from frvbf_h_tbr_set_handler.
1247
        (spr_bpsr_get_handler): Renamed from frvbf_h_bpsr_get_handler.
1248
        (spr_bpsr_set_handler): Renamed from frvbf_h_bpsr_set_handler.
1249
        (spr_ccr_get_handler): Renamed from frvbf_h_ccr_get_handler.
1250
        (spr_ccr_set_handler): Renamed from frvbf_h_ccr_set_handler.
1251
        (spr_lr_get_handler): Renamed from frvbf_h_lr_get_handler.
1252
        (spr_lr_set_handler): Renamed from frvbf_h_lr_set_handler.
1253
        (spr_cccr_get_handler): Renamed from frvbf_h_cccr_get_handler.
1254
        (spr_cccr_set_handler): Renamed from frvbf_h_cccr_set_handler.
1255
        (spr_isr_get_handler): Renamed from frvbf_h_isr_get_handler.
1256
        (spr_isr_set_handler): Renamed from frvbf_h_isr_set_handler.
1257
        (spr_sr_get_handler): Renamed from frvbf_h_sr_get_handler.
1258
        (spr_sr_set_handler): Renamed from frvbf_h_sr_set_handler.
1259
        (frvbf_clear_all_accumulators): Removed.
1260
        (frvbf_clear_accumulators): New function.
1261
        (GET_HSR0): Use GET_H_SPR.
1262
        (SET_HSR0): Use SET_H_SPR.
1263
        (CLEAR_HSR0_ICE): New macro.
1264
        (CLEAR_HSR0_DCE): New macro.
1265
        (GET_IHSR8): Use GET_H_SPR.
1266
        (GET_PSR): New macro.
1267
        (SET_PSR_ET): New macro.
1268
        (GET_PSR_PS): New macro.
1269
        (SET_PSR_S): New macro.
1270
        (GET_ESFR): Changed to reference entire register.
1271
        (SET_ESFR): Changed to reference entire register.
1272
        (GET_ESFR_FLAG): New macro.
1273
        (SET_ESFR_FLAG): New macro.
1274
        (NECR_ELOS): Removed.
1275
        (NECR_NEN): Removed.
1276
        (NECR_VALID): Removed.
1277
        (GET_NECR): New macro.
1278
        (GET_NECR_ELOS): New macro.
1279
        (GET_NECR_NEN): New macro.
1280
        (GET_NECR_VALID): New macro.
1281
        (NESR_RANGE): Removed.
1282
        (GET_NESR): Use GET_H_SPR.
1283
        (GET_NE_FLAGS): Use GET_H_SPR.
1284
        * cache.h (CACHE_INITIALIZED): New macro.
1285
        * Makefile.in (SIM_OBJS): Add registers.o.
1286
        (SIM_EXTRA_DEPS): Add registers.h.
1287
        (registers.o): New target.
1288
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1289
 
1290
2000-02-17  Dave Brolley  
1291
 
1292
        * interrupts.c (frv_interrupt_table): Update priority order and handler
1293
        offsets to conform to the architecture version 1.3a.
1294
        * frv-sim.h (frv_interrupt_kind): Update priority order to conform
1295
        to the architecture version 1.3a.
1296
 
1297
2000-02-17  Dave Brolley  
1298
 
1299
        * interrupts.c (frv_interrupt_table): Update priority order and handler
1300
        offsets to conform to the latest specifications.
1301
        (frv_queue_interrupt): Correct comment. Identical interrupts can be
1302
        queued. New variable 'iclass' used to test for external interrupts.
1303
        * frv-sim.h (frv_interrupt_kind): Update priority order to conform
1304
        to the latest specifications.
1305
 
1306
2000-01-20  Dave Brolley  
1307
 
1308
        * sim-if.c (sim_open): Move frv-specific initialization to
1309
        frv_initialize in reset.c.
1310
        * interrupts.c (check_reset): Use RSTR_ADDRESS. Check and reset RSTR
1311
        status bits for hardware vs software reset.
1312
        * reset.c: New file.
1313
        * frv-sim.h (frv_initialize): New function.
1314
        (frv_power_on_reset): New function.
1315
        (frv_hardware_reset): New function.
1316
        (frv_software_reset): New function.
1317
        (RSTR_ADDRESS): New macro.
1318
        (RSTR_INITIAL_VALUE): New macro.
1319
        (GET_RSTR_HR): New macro.
1320
        (GET_RSTR_SR): New macro.
1321
        (SET_RSTR_H): New macro.
1322
        (SET_RSTR_S): New macro.
1323
        (CLEAR_RSTR_P): New macro.
1324
        (CLEAR_RSTR_H): New macro.
1325
        (CLEAR_RSTR_S): New macro.
1326
        (CLEAR_RSTR_HR): New macro.
1327
        (CLEAR_RSTR_SR): New macro.
1328
 
1329
2000-01-03  Dave Brolley  
1330
 
1331
        * mloop.in (execute): Only call modeling function if the pointer is not
1332
        NULL.
1333
        * frv.c (frvbf_model_insn_after): Only access FR500_MODEL_DATA for
1334
        fr500.
1335
 
1336
2000-01-03  Dave Brolley  
1337
 
1338
        * options.c (OPTION_FRV_MEMORY_LATENCY): New enumerator.
1339
        (frv_options): Add --memory-latency.
1340
        (frv_option_handler): Handle FRV_OPTION_MEMORY_LATENCY.
1341
        * mloop.in (@cpu@_simulate_insn_prefetch): Use cache memory_latency.
1342
        * frv.c (SET_ACC_USE_IS_MEDIA_P1): operate on d->curr_acc_p1
1343
        (SET_ACC_USE_NOT_MEDIA_P1): operate on d->curr_acc_p1
1344
        (SET_ACC_USE_IS_MEDIA_P2): operate on d->curr_acc_p1
1345
        (SET_ACC_USE_NOT_MEDIA_P2): operate on d->curr_acc_p1
1346
        (update_latencies): Only clear usage flags if the register has no
1347
        target latency.
1348
        (frvbf_model_insn_before): Update cur_acc_p1 and cur_acc_p2. Use | (or)
1349
        not |= (or assgnment).
1350
        (frvbf_model_insn_after): Print post processing wait for all insns.
1351
        Update prev_acc_p1 and prev_acc_p2.
1352
        (frvbf_model_fr500_u_gr_load_store): Use cache memory_latency.
1353
        (frvbf_model_fr500_u_fr_load_store): Use cache memory_latency.
1354
        (frvbf_model_fr500_u_swap): Use cache memory_latency.
1355
        (frvbf_model_fr500_u_media): Use busy_adjustment[4] for out_ACC40Sk.
1356
        (frvbf_model_fr500_u_media): Use busy_adjustment[5] for out_ACC40Uk.
1357
        (frvbf_model_fr500_u_media_quad_arith): New function.
1358
        (frvbf_model_fr500_u_media_dual_mul): New function.
1359
        (frvbf_model_fr500_u_media_quad_mul): New function.
1360
        (frvbf_model_fr500_u_media_quad_complex): New function.
1361
        (frvbf_model_fr500_u_media_dual_expand): New function.
1362
        (frvbf_model_fr500_u_media_dual_unpack): New function.
1363
        (frvbf_model_fr500_u_media_dual_btoh): New function.
1364
        (frvbf_model_fr500_u_media_dual_htob): New function.
1365
        (frvbf_model_fr500_u_media_dual_btohe): New function.
1366
        (frv_ref_SI): New function.
1367
        * cache.h (FRV_CACHE): Add memory_latency field.
1368
        * cache.c (frv_cache_init): Initialize memory_latency.
1369
        * arch.h,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1370
 
1371
1999-12-17  Dave Brolley  
1372
 
1373
        * sim-if.c (sim_open): Initialize insn prefetch and reset register.
1374
        * options.c (OPTIONS_FRV_PROFILE_CACHE): New enumeration.
1375
        (OPTIONS_FRV_PROFILE_PARALLEL): New enumeration.
1376
        (OPTIONS_FRV_TIMER): New enumeration.
1377
        (frv_options): Add --profile-cache, --profile-parallel, --timer.
1378
        (frv_option_handler): Override common implementation of -p. Handle
1379
        --profile-cache, --profile-parallel, --timer.
1380
        * mloop.in (execute): Call profiling functions if the timer interrupt
1381
        is enabled.
1382
        (@cpu@_simulate_insn_prefetch): New function.
1383
        (main loop): Call @cpu@_simulate_insn_prefetch.
1384
        * interrupts.c (frv_queue_interrupt): Don't queue two external
1385
        interrupts of the same priority.
1386
        (frv_queue_external_interrupt): New function.
1387
        (frv_external_interrupt): New function.
1388
        (handle_interrupt): Handle external interrupts.
1389
        (check_reset): New function.
1390
        (frv_process_interrupts): Call check_reset.
1391
        * frv.c: Include "bfd.h"
1392
        (frvbf_h_psr_get_handler): Set the PIL field.
1393
        (frvbf_h_psr_set_handler): Get the PIL field.
1394
        (DUAL_REG): New macro.
1395
        (DUAL_DOUBLE): New macro.
1396
        (SET_USE_IS_FPOP): New macro.
1397
        (SET_USE_NOT_FPOP): New macro.
1398
        (USE_IS_FPOP): New macro.
1399
        (SET_USE_IS_MEDIA): New macro.
1400
        (SET_USE_NOT_MEDIA): New macro.
1401
        (USE_IS_MEDIA_P1): New macro.
1402
        (SET_USE_IS_MEDIA_P1): New macro.
1403
        (SET_USE_NOT_MEDIA_P1): New macro.
1404
        (SET_USE_IS_MEDIA_P2): New macro.
1405
        (SET_USE_NOT_MEDIA_P2): New macro.
1406
        (USE_IS_MEDIA_P2): New macro.
1407
        (SET_ACC_USE_IS_MEDIA_P1): New macro.
1408
        (SET_ACC_USE_NOT_MEDIA_P1): New macro.
1409
        (ACC_USE_IS_MEDIA_P1): New macro.
1410
        (SET_ACC_USE_IS_MEDIA_P2): New macro.
1411
        (SET_ACC_USE_NOT_MEDIA_P2): New macro.
1412
        (ACC_USE_IS_MEDIA_P2): New macro.
1413
        (RESOURCE_IDIV): New macro.
1414
        (RESOURCE_FDIV): New macro.
1415
        (RESOURCE_SQRT): New macro.
1416
        (fr_busy_adjust): New array.
1417
        (acc_busy_adjust): New array.
1418
        (apply_latency_adjustments): New function.
1419
        (update_latencies): New function.
1420
        (handle_wait_cycles): New function.
1421
        (handle_resource_wait): New function.
1422
        (update_target_latencies): New function.
1423
        (frvbf_model_insn_before): Add resource latency to cycle counts.
1424
        (frvbf_model_insn_after): Add resource latency to cycle counts.
1425
        (update_GR_latency): New function.
1426
        (update_GRdouble_latency): New function.
1427
        (update_FR_latency): New function.
1428
        (update_FRdouble_latency): New function.
1429
        (decrease_ACC_busy): New function.
1430
        (decrease_FR_busy): New function.
1431
        (increase_FR_busy): New function.
1432
        (update_ACC_latency): New function.
1433
        (update_CCR_latency): New function.
1434
        (update_idiv_resource_latency): New function.
1435
        (update_fdiv_resource_latency): New function.
1436
        (update_fsqrt_resource_latency): New function.
1437
        (vliw_wait_for_GR): New function.
1438
        (vliw_wait_for_GRdouble): New function.
1439
        (vliw_wait_for_FR): New function.
1440
        (vliw_wait_for_FRdouble): New function.
1441
        (vliw_wait_for_CCR): New function.
1442
        (vliw_wait_for_ACC): New function.
1443
        (vliw_wait_for_idiv_resource): New function.
1444
        (vliw_wait_for_fdiv_resource): New function.
1445
        (vliw_wait_for_fsqrt_resource): New function.
1446
        (enforce_full_fr_latency): New function.
1447
        (frvbf_model_fr500_u_exec): New function.
1448
        (frvbf_model_fr500_u_integer): New function.
1449
        (frvbf_model_fr500_u_imul): New function.
1450
        (frvbf_model_fr500_u_idiv): New function.
1451
        (frvbf_model_fr500_u_branch): New function.
1452
        (frvbf_model_fr500_u_set_hilo): New function.
1453
        (frvbf_model_fr500_u_gr_load_store): New function.
1454
        (frvbf_model_fr500_u_fr_load_store): New function.
1455
        (frvbf_model_fr500_u_swap): New function.
1456
        (frvbf_model_fr500_u_fr2fr): New function.
1457
        (frvbf_model_fr500_u_fr2gr): New function.
1458
        (frvbf_model_fr500_u_spr2gr): New function.
1459
        (frvbf_model_fr500_u_gr2fr): New function.
1460
        (frvbf_model_fr500_u_gr2spr): New function.
1461
        (post_wait_for_FR): New function.
1462
        (post_wait_for_FRdouble): New function.
1463
        (post_wait_for_ACC): New function.
1464
        (post_wait_for_CCR): New function.
1465
        (post_wait_for_fdiv): New function.
1466
        (post_wait_for_fsqrt): New function.
1467
        (adjust_float_register_busy): New function.
1468
        (adjust_double_register_busy): New function.
1469
        (restore_float_register_busy): New function.
1470
        (restore_double_register_busy): New function.
1471
        (frvbf_model_fr500_u_float_arith): New function.
1472
        (frvbf_model_fr500_u_float_dual_arith): New function.
1473
        (frvbf_model_fr500_u_float_div): New function.
1474
        (frvbf_model_fr500_u_float_sqrt): New function.
1475
        (frvbf_model_fr500_u_float_compare): New function.
1476
        (frvbf_model_fr500_u_float_dual_compare): New function.
1477
        (frvbf_model_fr500_u_float_convert): New function.
1478
        (frvbf_model_fr500_u_media): New function.
1479
        (frvbf_model_fr500_u_barrier): New function.
1480
        (frvbf_model_fr500_u_membar): New function.
1481
        * frv-sim.h (LEUINT): New macro.
1482
        (GET_HSR0_SA): New macro.
1483
        (struct frv_interrupt_timer): New struct.
1484
        (struct frv_interrupt_state): Add timer fiield.
1485
        (frv_queue_external_interrupt): New function.
1486
        (frv_external_interrupt): New function.
1487
        (frv_profile_info): New function.
1488
        (PROFILE_CACHE_IDX): New enumerator.
1489
        (PROFILE_PARALLEL_IDX): New enumerator.
1490
        (PROFILE_cache): New macro.
1491
        (PROFILE_parallel): New macro.
1492
        (WITH_PROFILE_CACHE_P): New macro.
1493
        (WITH_PROFILE_PARALLEL_P): New macro.
1494
        * cache.h (FRV_CACHE): Add last_was_hit field.
1495
        * cache.c (get_tag): Use new last_was_hit field.
1496
        (frv_cache_read): Ditto.
1497
        (frv_cache_write): Ditto.
1498
        * arch.h,cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1499
 
1500
1999-12-13  Dave Brolley  
1501
 
1502
        * frv.c (frvbf_h_spr_set_handler): Handle accumulator guards.
1503
        (frvbf_clear_all_accumulators): Pass frvbf_h_acc40S_set to
1504
        sim_queue_fn_di_write.
1505
        (frvbf_media_cut_ss): New function.
1506
        * frv-sim.h (frvbf_media_cut_ss): New function.
1507
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1508
 
1509
1999-12-13  Dave Brolley  
1510
 
1511
        * pipeline.c (check_insn_major_constraints): F-4, F-8 and M-8 have
1512
        no constraints.
1513
        * interrupts.c (frv_queue_illegal_instruction_interrupt): Use
1514
        FRV_IS_FLOAT_INSN and FRV_IS_MEDIA_INSN.
1515
        (frv_detect_insn_access_interrupts): Use FRV_IS_FLOAT_INSN and
1516
        FRV_IS_MEDIA_INSN.
1517
        * frv.c (frvbf_model_simple_u_exec): New function.
1518
        * frv-sim.h (FRV_IS_FLOAT_INSN): Range includes F-8.
1519
        (FRV_IS_MEDIA_INSN): Range includes M-8.
1520
 
1521
        * Makefile.in (stamp-cpu): add 'simple' to the list of machines.
1522
        * arch.c,arch.h,cpu.h,cpuall.h,decode.c,decode.h,model.c,sem.c:
1523
        Regenerate.
1524
 
1525
1999-12-10  Dave Brolley  
1526
 
1527
        * traps.c (check_registers_available): New function.
1528
        (clear_ne_flags): Generate register_exception if register(s) not
1529
        available.
1530
        (frvbf_commit): Generate register_exception if register(s) not
1531
        available.
1532
        * interrupts.c (frv_program_or_software_interrupt): No need to copy
1533
        GR4-GR7 to SR0-SR4.
1534
        * frv.c (frvbf_h_psr_set_handler): Special handling for PSR.S and
1535
        PSR.ESR.
1536
        (frvbf_h_psr_s_set_handler): New function.
1537
        (frvbf_h_psr_esr_set_handler): New function.
1538
        (frvbf_switch_supervisor_user_context): New function.
1539
        (frvbf_scan_result): Reflect latest ISA.
1540
        * frv-sim.h (frvbf_h_psr_s_set_handler): New function.
1541
        (frvbf_h_psr_esr_set_handler): New function.
1542
        (frvbf_switch_supervisor_user_context): New function.
1543
        (GET_HSR0_FRN): New Macro.
1544
        (GET_HSR0_GRN): New Macro.
1545
        (GET_HSR0_FRHE): New Macro.
1546
        (GET_HSR0_FRLE): New Macro.
1547
        (GET_HSR0_GRHE): New Macro.
1548
        (GET_HSR0_GRLE): New Macro.
1549
        (frv_ec): New value for FRV_EC_COMMIT_EXCEPTION.
1550
        (GET_ESFR): New bit ordering.
1551
        (SET_ESFR): New bit ordering.
1552
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1553
 
1554
1999-12-10  Michael Meissner  
1555
 
1556
        * Makefile.in (sim-if.o): Add eng.h dependency.
1557
 
1558
1999-12-09  Dave Brolley  
1559
 
1560
        * mloop.in (execute): Pass sc->first_insn_p to @cpu@_model_insn_before.
1561
        Pass sc->last_insn_p to @cpu@_model_insn_before.
1562
        (main loop): Compute sc->first_insn_p.
1563
        * frv.c (frvbf_model_insn_before): Set state variables.
1564
        (frvbf_model_insn_after): Count basic cycles. Set state variables.
1565
        (frvbf_model_fr500_u_integer): Remove.
1566
        * arch.h,cpu.h,decode.h,model.c: Regenerate.
1567
 
1568
1999-12-07  Dave Brolley  
1569
 
1570
        * sim-main.h (cache.h): Include it.
1571
        (insn_cache): New member.
1572
        (data_cache): New member.
1573
        (CPU_INSN_CACHE): New macro.
1574
        (CPU_DATA_CACHE): New macro.
1575
        * sim-if.c (WANT_CPU): New macro.
1576
        (WANT_CPU_FRVBF): New macro.
1577
        (sim_open): Call sim_add_option_table. Call frv_cache_init for the
1578
        data and insn caches for each cpu.
1579
        (sim_close): Call frv_cache_term for the insn and data caches of each
1580
        cpu.
1581
        * mloop.in (extract): Read insn from the cache.
1582
        (main loop): Access the insn cache in order to maintain stats.
1583
        * memory.c (data_non_cache_access): New function.
1584
        (insn_non_cache_access): New function.
1585
        (frvbf_read_mem_QI): Attempt to read from the cache first.
1586
        (frvbf_read_mem_UQI): Ditto.
1587
        (frvbf_read_mem_HI): Ditto.
1588
        (frvbf_read_mem_UHI): Ditto.
1589
        (frvbf_read_mem_SI): Ditto.
1590
        (frvbf_read_mem_DI): Ditto.
1591
        (frvbf_read_mem_DF): Ditto.
1592
        (frvbf_read_imem_USI): New function.
1593
        (frvbf_write_mem_QI): Write through the cache is it is enabled.
1594
        (frvbf_write_mem_UQI): Ditto.
1595
        (frvbf_write_mem_HI): Ditto.
1596
        (frvbf_write_mem_UHI): Ditto.
1597
        (frvbf_write_mem_SI): Ditto.
1598
        (frvbf_write_mem_DI): Ditto.
1599
        (frvbf_write_mem_DF): Ditto.
1600
        (frvbf_mem_set_QI): New function.
1601
        (frvbf_mem_set_HI): New function.
1602
        (frvbf_mem_set_SI): New function.
1603
        (frvbf_mem_set_DI): New function.
1604
        (frvbf_mem_set_DF): New function.
1605
        (frvbf_mem_set_XI): New function.
1606
        * interrupts.c (frv_save_data_written_for_interrupts): Handle
1607
        CGEN_FN_MEM_QI_WRITE,
1608
        CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
1609
        CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
1610
        * frv.c (frvbf_load_quad_GR): Call frvbf_read_mem_SI.
1611
        Call sim_queue_fn_mem_xi_write.
1612
        (frvbf_load_quad_FRint): Call frvbf_read_mem_SI.
1613
        Call sim_queue_fn_mem_xi_write.
1614
        (frvbf_load_quad_CPR): Call frvbf_read_mem_SI.
1615
        Call sim_queue_fn_mem_xi_write.
1616
        (frvbf_insn_cache_preload): New function.
1617
        (frvbf_data_cache_preload): New function.
1618
        (frvbf_insn_cache_unlock): New function.
1619
        (frvbf_data_cache_unlock): New function.
1620
        (frvbf_insn_cache_invalidate): New function.
1621
        (frvbf_data_cache_invalidate): New function.
1622
        (frvbf_data_cache_flush): New function.
1623
        * frv-sim.h (sim-options.h): Include it.
1624
        (GET_HSR0): New macro.
1625
        (SET_HSR0): New macro.
1626
        (GET_HSR0_ICE): New macro.
1627
        (SET_HSR0_ICE): New macro.
1628
        (GET_HSR0_DCE): New macro.
1629
        (SET_HSR0_DCE): New macro.
1630
        (GET_HSR0_CBM): New macro.
1631
        (GET_HSR0_RME): New macro.
1632
        (GET_IHSR8): New macro.
1633
        (GET_IHSR8_NBC): New macro.
1634
        (frvbf_insn_cache_preload): New function.
1635
        (frvbf_data_cache_preload): New function.
1636
        (frvbf_insn_cache_unlock): New function.
1637
        (frvbf_data_cache_unlock): New function.
1638
        (frvbf_insn_cache_invalidate): New function.
1639
        (frvbf_data_cache_invalidate): New function.
1640
        (frvbf_data_cache_flush): New function.
1641
        (insn_non_cache_access): New function.
1642
        (frvbf_read_imem_USI): New function.
1643
        (frvbf_mem_set_QI): New function.
1644
        (frvbf_mem_set_HI): New function.
1645
        (frvbf_mem_set_SI): New function.
1646
        (frvbf_mem_set_DI): New function.
1647
        (frvbf_mem_set_DF): New function.
1648
        (frvbf_mem_set_XI): New function.
1649
        (frv_options): FRV specific command line options.
1650
        * Makefile.in (SIM_OBJS): Add options.o and cache.o.
1651
        (SIM_EXTRA_DEPS): Add $(sim-options_h).
1652
        (cache.o): New target.
1653
        (options.o): New target.
1654
        * cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1655
        * cache.h: New file.
1656
        * cache.c: New file.
1657
        * options.c: New file.
1658
 
1659
1999-11-29  Dave Brolley  
1660
 
1661
        * traps.c (frvbf_check_non_excepting_load): Use new NE_FLAG macros.
1662
        (frvbf_check_non_excepting_divide): Ditto.
1663
        (clear_ne_flags): Ditto
1664
        (frvbf_commit): Ditto.
1665
        * pipeline.c (frv_pipeline_add_insn): Clear the NE index for all insns.
1666
        * mloop.in (_parallel_write_init): Clear NE flags here.
1667
        * interrupts.c (frv_queue_fp_exception_interrupt): Set NE flags here
1668
        for non excepting insns. Also check for masked interrupts here.
1669
        (frv_process_interrupts): Write NE flags here.
1670
        (set_fp_exception_registers): No longer check for masked interrupts
1671
        here.
1672
        (check_for_compound_interrupt): No need to worry about masked
1673
        interrupts.
1674
        * frv-sim.h (frv_interrupt_state): Add f_ne_flags member.
1675
        (GET_NE_FLAGS): New macro.
1676
        (SET_NE_FLAGS): New macro.
1677
        (GET_NE_FLAG): Operate on accumulated argument.
1678
        (SET_NE_FLAG): Operate on accumulated argument.
1679
        (CLEAR_NE_FLAG): Operate on accumulated argument.
1680
        * Makefile.in (FRVBF_INCLUDE_DEPS): Add $(SIM_EXTRA_DEPS)
1681
        (frv.o): Correct dependencies.
1682
        (traps.o): Ditto.
1683
        (pipeline.o): Ditto.
1684
        (interrupts.o): Ditto.
1685
        (memory.o): Ditto.
1686
        * sem.c: Regenerate.
1687
 
1688
1999-11-26  Dave Brolley  
1689
 
1690
        * traps.c (frvbf_fpu_error): Only call frv_queue_fp_exception if
1691
        there is an exception indicated in the mask.
1692
        * pipeline.c (frv_pipeline_add_insn): Clear ne_index in the interrupt
1693
        state when adding a floating point insn to the pipeline.
1694
        * interrupts.c (set_fp_exception_registers): Set NE flag for
1695
        non-excepting insns.
1696
        * frv-sim.h (frvbf_h_fr_double_get_handler): Mode of data is DF.
1697
        (frvbf_h_fr_double_set_handler): Mode of data is DF.
1698
        (frvbf_h_fr_int_get_handler): New function.
1699
        (frvbf_h_fr_int_set_handler): New function.
1700
        (frvbf_set_ne_index): New function.
1701
        (NE_NOFLAG): New macro.
1702
        (frv_interrupt_state): Add ne_index member.
1703
        * frv.c (frvbf_h_fr_double_get_handler): Mode of data is DF.
1704
        (frvbf_h_fr_double_set_handler): Mode of data is DF.
1705
        (frvbf_h_fr_int_get_handler): New function.
1706
        (frvbf_h_fr_int_set_handler): New function.
1707
        (frvbf_set_ne_index): New function.
1708
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1709
 
1710
1999-11-24  Dave Brolley  
1711
 
1712
        * cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1713
 
1714
1999-11-23  Dave Brolley  
1715
 
1716
        * frv-sim.h (frvbf_media_cut): New function.
1717
        * frv.c (frvbf_media_cut): New function.
1718
        * cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1719
 
1720
1999-11-22  Dave Brolley  
1721
 
1722
        * frv-sim.h (frvbf_clear_all_accumulators): New function.
1723
        * frv.c.h (frvbf_clear_all_accumulators): New function.
1724
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1725
 
1726
1999-11-18  Dave Brolley  
1727
 
1728
        * pipeline.c (frv_pipeline_add_insn): Only clear MSR0 and FSR0 fields
1729
        if this is the first insn of its class in the pipeline.
1730
        * frv-sim.h (frvbf_media_register_not_aligned): New function.
1731
        * traps.c (frvbf_media_register_not_aligned): New function.
1732
        * cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1733
 
1734
1999-11-17  Dave Brolley  
1735
 
1736
        * pipeline.c (frv_pipeline_add_insn): Clear MSRx.SIE fields.
1737
        * frv-sim.h (OR_MSR_SIE): New macro.
1738
        (CLEAR_MSR_SIE): New macro.
1739
        (frvbf_media_overflow): Now takes sie argument.
1740
        (frv_set_mp_exception_registers): Now takes sie argument.
1741
        * interrupts.c (frv_set_mp_exception_registers): Now takes sie argument.
1742
        Set MSRx.SIE field.
1743
        * cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1744
 
1745
1999-11-15  Dave Brolley  
1746
 
1747
        * traps.c (frv_mtrap): New function.
1748
        (frvbf_media_cr_not_aligned): New function.
1749
        (frvbf_media_acc_not_aligned): New function.
1750
        (frvbf_media_overflow): New function.
1751
        * pipeline.c (frv_pipeline_add_insn): Clear MSR fields.
1752
        * interrupts.c: Call frv_set_mp_exception_registers.
1753
        (frv_set_mp_exception_registers): New function.
1754
        * frv-sim.h (frv_msr_mtt): New enumeration.
1755
        (GET_MSR): New macro.
1756
        (SET_MSR): New macro.
1757
        (GET_MSR_AOVF): New macro.
1758
        (SET_MSR_AOVF): New macro.
1759
        (GET_MSR_OVF): New macro.
1760
        (SET_MSR_OVF): New macro.
1761
        (CLEAR_MSR_OVF): New macro.
1762
        (GET_MSR_MTT): New macro.
1763
        (SET_MSR_MTT): New macro.
1764
        (frv_set_mp_exception_registers): New function.
1765
        (frv_mtrap): New function.
1766
        (FRV_IS_MEDIA_INSN): New macro.
1767
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1768
 
1769
1999-11-10  Dave Brolley  
1770
 
1771
        * sim-main.h (_sim_cpu): Add debug_state member.
1772
        * mloop.in (_parallel_write_queued): Clear data_written.length.
1773
        * interrupts.c (frv_interrupt_table): Offset of BREAK_EXCEPTION
1774
        handler is 0xff.
1775
        (frv_queue_break_interrupt): New function.
1776
        (frv_break_interrupt): New function.
1777
        (handle_interrupt): Handle break_interrupt.
1778
        (frv_non_operating_interrupt): Now takes interrupt_kind.
1779
        * frv-sim.h (frv_queue_break_interrupt): New function.
1780
        (frv_break_interrupt): New function.
1781
        (frv_break): New function.
1782
        (frv_non_operating_interrupt): Now takes interrupt_kind.
1783
        * cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
1784
 
1785
1999-11-09  Dave Brolley  
1786
 
1787
        * pipeline.c (frv_pipeline_add_insn): Clear FSR0.FTT when adding
1788
        a floating point insn.
1789
        * traps.c (frvbf_fpu_error): Map fpu status to frv interrupts.
1790
        * interrupts.c (frv_queue_illegal_instruction_interrupt): Call
1791
        frv_queue_fp_exception_interrupt.
1792
        (frv_queue_fp_exception_interrupt): New function.
1793
        (next_available_fq): New function.
1794
        (set_fp_exception_registers): New function.
1795
        (set_exception_status_registers): Now returns 1 if interrupt not masked.
1796
        (check_for_compound_interrupt): Now returns NULL if interrupt masked.
1797
        (frv_program_interrupt): Don't process interrupt if it is masked.
1798
        * frv.c (frvbf_h_fr_double_get_handler): Call
1799
        frv_queue_fp_exception_interrupt.
1800
        (frvbf_h_fr_double_set_handler): Call frv_queue_fp_exception_interrupt.
1801
        (frvbf_h_fr_quad_set_handler): Call frv_queue_fp_exception_interrupt.
1802
        (frvbf_store_quad_FRint): Call frv_queue_fp_exception_interrupt.
1803
        * frv-sim.h: Get/set hardware directly in GET/SET macros.
1804
        (frv_fp_exception_info): New struct type.
1805
        (frv_interrupt_queue_element): Add fp_info member.
1806
        (frv_fsr_traps): New enumeration.
1807
        (frv_fsr_ftt): New enumeration.
1808
        (frv_sie): New enumeration.
1809
        (frv_miv): New enumeration.
1810
        (GET_FSR): New macro.
1811
        (SET_FSR): New macro.
1812
        (GET_FSR_TEM): New macro.
1813
        (SET_FSR_QNE): New macro.
1814
        (SET_FSR_FTT): New macro.
1815
        (GET_FSR_AEXC): New macro.
1816
        (SET_FSR_AEXC): New macro.
1817
        (GET_FQ): New macro.
1818
        (SET_FQ): New macro.
1819
        (SET_FQ_OPC): New macro.
1820
        (SET_FQ_MIV): New macro.
1821
        (SET_FQ_SIE): New macro.
1822
        (SET_FQ_FTT): New macro.
1823
        (SET_FQ_CEXC): New macro.
1824
        (GET_FQ_VALID): New macro.
1825
        (SET_FQ_VALID): New macro.
1826
        (frv_queue_fp_exception_interrupt): New function.
1827
        (FRV_IS_FLOAT_INSN): New macro.
1828
 
1829
1999-11-04  Dave Brolley  
1830
 
1831
        * traps.c (frvbf_fpu_error): No floating point errors need to be
1832
        detected.
1833
        * interrupts.c (clear_exception_status_registers): Clear 'valid' fields
1834
        of the ESR registers too.
1835
        (set_exception_status_registers): Don't set EAR for any precise
1836
        interrupts. Register index should be 1 for insns in PIPE_I1. Clear
1837
        ESR.EAV and ESR.EDV if not setting them. Set ESR.VALID.
1838
        (non_operating_interrupt): No need for return code.
1839
        (frv_program_or_software_interrupt): Process interrupt regardless
1840
        of operating mode. If PSR.ET was not set at the start of processing,
1841
        then stop the simulation with a message.
1842
        (frv_save_data_written_for_interrupts): Handle CGEN_FN_XI_WRITE and
1843
        CGEN_MEM_XI_WRITE.
1844
        * frv.c (frvbf_h_gr_quad_set_handler): New function.
1845
        (frvbf_h_fr_quad_set_handler): New function.
1846
        (frvbf_h_cpr_quad_set_handler): New function.
1847
        (frvbf_load_quad_GR): Renamed from frvbf_load_multiple_GR. Use new
1848
        sim_queue_fn_xi_write.
1849
        (frvbf_load_quad_FRint): Renamed from frvbf_load_multiple_GR. Use new
1850
        sim_queue_fn_xi_write.
1851
        (frvbf_load_quad_CPR): Renamed from frvbf_load_multiple_GR. Use new
1852
        sim_queue_fn_xi_write.
1853
        (frvbf_store_quad_GR): Renamed from frvbf_store_multiple_GR. Use new
1854
        sim_queue_mem_xi_write.
1855
        (frvbf_store_quad_FRint): Renamed from frvbf_store_multiple_GR. Use new
1856
        sim_queue_mem_xi_write.
1857
        (frvbf_store_quad_CPR): Renamed from frvbf_store_multiple_GR. Use new
1858
        sim_queue_mem_xi_write.
1859
        * frv-sim.h (frvbf_h_gr_quad_set_handler): New function.
1860
        (frvbf_h_fr_quad_set_handler): New function.
1861
        (frvbf_h_cpr_quad_set_handler): New function.
1862
        (SET_ESR_VALID): New macro.
1863
        (CLEAR_ESR_VALID): New macro.
1864
        (CLEAR_ESR_EAV): New macro.
1865
        (CLEAR_ESR_EDV): New macro.
1866
        * sem.c: Regenerate.
1867
 
1868
1999-11-02  Dave Brolley  
1869
 
1870
        * traps.c (frv_core_signal): Call
1871
        frv_queue_mem_address_not_aligned_interrupt.
1872
        * mloop.in (_parallel_write_queued): Call
1873
        frv_save_data_written_for_interrupts.
1874
        * frv.c (frvbf_h_gr_double_get_handler): Call
1875
        frv_queue_register_exception_interrupt.
1876
        (frvbf_h_cpr_double_get_handler): Call
1877
        frv_queue_register_exception_interrupt.
1878
        (frvbf_h_cpr_double_set_handler): Call
1879
        frv_queue_register_exception_interrupt.
1880
        (frvbf_load_multiple_GR): Call
1881
        frv_queue_register_exception_interrupt.
1882
        (frvbf_store_multiple_GR): Call
1883
        frv_queue_register_exception_interrupt.
1884
        (frvbf_load_multiple_CPR): Call
1885
        frv_queue_register_exception_interrupt.
1886
        (frvbf_store_multiple_CPR): Call
1887
        frv_queue_register_exception_interrupt.
1888
        (frvbf_h_tbr_get_handler): Fix TBR.TBA mask.
1889
        * interrupts.c (frv_queue_software_interrupt): Now returns interrupt
1890
        queue element.
1891
        (frv_queue_program_interrupt): Now returns interrupt queue element.
1892
        (frv_queue_illegal_instruction_interrupt): Now returns interrupt queue
1893
        element.
1894
        (frv_queue_interrupt): Now returns interrupt queue element.
1895
        (frv_queue_register_exception_interrupt): New function.
1896
        (frv_queue_mem_address_not_aligned_interrupt): New function.
1897
        (frv_save_data_written_for_interrupts): New function.
1898
        (next_available_edr): EDR registers available in blocks of 4.
1899
        (clear_exception_status_registers): New function.
1900
        (set_exception_status_registers): Pass esr to SET_ESR* macros.
1901
 
1902
        * frv-sim.h (struct frv_data_written): New struct type.
1903
        (frv_interrupt_queue_element): Add data_written member.
1904
        (frv_queue_software_interrupt): Now returns interrupt queue element.
1905
        (frv_queue_program_interrupt): Now returns interrupt queue element.
1906
        (frv_queue_illegal_instruction_interrupt): Now returns interrupt queue
1907
        element.
1908
        (frv_queue_interrupt): Now returns interrupt queue element.
1909
        (frv_queue_register_exception_interrupt): New function.
1910
        (frv_queue_mem_address_not_aligned_interrupt): New function.
1911
        (frv_save_data_written_for_interrupts): New function.
1912
 
1913
1999-10-27  Dave Brolley  
1914
 
1915
        * interrupts.c (ITABLE_ENTRY): New macro.
1916
        (frv_interrupt_table): Add exception codes.
1917
        (next_available_esr): New function.
1918
        (next_available_edr): New function.
1919
        (set_edr_register): New function.
1920
        (set_exception_status_registers): New function.
1921
        (check_for_compound_interrupt): Record information on all interrupts
1922
        found.
1923
        (frv_program_interrupt): Always call check_for_compound_interrupt.
1924
        * frv.c (frvbf_h_pc_set_handler): Removed.
1925
        (frvbf_h_spr_get_handler): Handle LR register.
1926
        (frvbf_h_spr_set_handler): Handle LR register.
1927
        (frvbf_h_lr_get_handler): New function.
1928
        (frvbf_h_lr_set_handler): New function.
1929
        * frv-sim.h (frvbf_h_lr_get_handler): New function.
1930
        (frvbf_h_lr_set_handler): New function.
1931
        (frv_ec): New enumeration.
1932
        (frv_interrupt): Add frv_ec field.
1933
        (frv_rec): New enumeration.
1934
        (frv_daec): New enumeration.
1935
        (frv_interrupt_queue_element): Add eaddress, rec, iaec, daec fields.
1936
        (SET_ESR_EC): New macro.
1937
        (SET_ESR_REC): New macro.
1938
        (SET_ESR_IAEC): New macro.
1939
        (SET_ESR_DAEC): New macro.
1940
        (SET_ESR_EAV): New macro.
1941
        (GET_ESR_EDV): New macro.
1942
        (SET_ESR_EDV): New macro.
1943
        (GET_ESR_EDN): New macro.
1944
        (SET_ESR_EDN): New macro.
1945
        (GET_ESR): New macro.
1946
        (SET_ESR): New macro.
1947
        (SET_EPCR): New macro.
1948
        (SET_EAR): New macro.
1949
        (SET_EDR): New macro.
1950
        (GET_ESFR): New macro.
1951
        (SET_ESFR): New macro.
1952
        * cpu.c,cpu.h,sem.c: Rebuild.
1953
 
1954
1999-10-26  Dave Brolley  
1955
 
1956
        * traps.c (frvbf_check_non_excepting_load): Only set NESR, NECR, NEEAR
1957
        if mach is frv.
1958
        (clear_nesr_neear): Only execute if mach is frv.
1959
 
1960
1999-10-22  Dave Brolley  
1961
 
1962
        * sim-main.h (sim_cpu): Add pipeline.
1963
        (CPU_PIPELINE): New macro.
1964
        * mloop.in (_parallel_write_queued): Maintain pc in cpu during writes.
1965
        (main loop): Maintain pc in cpu.
1966
        * frv-sim.h (frv_queue_software_interrupt): New interface.
1967
        (frv_queue_program_interrupt): New interface.
1968
        (frv_queue_illegal_instruction_interrupt: New interface.
1969
        (frv_queue_interrupt): New interface.
1970
        (frv_detect_insn_access_interrupts): New interface.
1971
        (frv_process_interrupts): New interface.
1972
        (frv_program_interrupt): New interface.
1973
        (frv_software_interrupt): New interface.
1974
        (frv_program_or_software_interrupt): New interface.
1975
        (FRV_PIPELINE): Moved from pipline.c.
1976
        (frv_pipeline_reset): New interface.
1977
        (frv_pipeline_add_insn): New interface.
1978
        * interrupts.c (frv_queue_software_interrupt): New interface.
1979
        (frv_queue_program_interrupt): New interface.
1980
        (frv_queue_illegal_instruction_interrupt: New interface.
1981
        (frv_queue_interrupt): New interface.
1982
        (frv_detect_insn_access_interrupts): New interface.
1983
        (frv_process_interrupts): New interface.
1984
        (frv_program_interrupt): New interface.
1985
        (frv_software_interrupt): New interface.
1986
        (frv_program_or_software_interrupt): New interface.
1987
        * frv.c: Use new interfaces.
1988
        * pipeline.c: Use new interfaces.
1989
        * traps.c: Use new interfaces.
1990
        * memory.c: Use new interfaces.
1991
        (frv_address_forbidden): No longer static.
1992
 
1993
1999-10-19  Dave Brolley  
1994
 
1995
        * traps.c (frvbf_check_non_excepting_load): Set NESR.DAEC, NESR.REC and
1996
        NESR.EC.
1997
        * mloop.in (_parallel_write_queued): Handle CGEN_FN_PC_WRITE.
1998
        * frv.c (frvbf_h_pc_set_handler): New function.
1999
        * interrupts.c (frv_detect_data_interrupt): Removed.
2000
        (address_forbidden): Removed.
2001
        * frv-sim.h (frv_detect_data_interrupt): Removed.
2002
        (NESR_MEM_ADDRESS_NOT_ALIGNED): New macro.
2003
        (NESR_REGISTER_NOT_ALIGNED): New macro.
2004
        (NESR_UQI_SIZE): New macro.
2005
        (NESR_QI_SIZE): New macro.
2006
        (NESR_UHI_SIZE): New macro.
2007
        (NESR_HI_SIZE): New macro.
2008
        (NESR_SI_SIZE): New macro.
2009
        (NESR_DI_SIZE): New macro.
2010
        (NESR_XI_SIZE): New macro.
2011
        (GET_NESR_DAEC): New macro.
2012
        (SET_NESR_DAEC): New macro.
2013
        (GET_NESR_REC): New macro.
2014
        (SET_NESR_REC): New macro.
2015
        (GET_NESR_EC): New macro.
2016
        (SET_NESR_EC): New macro.
2017
        (frvbf_read_mem_QI): New function.
2018
        (frvbf_read_mem_UQI): New function.
2019
        (frvbf_read_mem_HI): New function.
2020
        (frvbf_read_mem_UHI): New function.
2021
        (frvbf_read_mem_SI): New function.
2022
        (frvbf_read_mem_WI): New function.
2023
        (frvbf_read_mem_DI): New function.
2024
        (frvbf_read_mem_DF): New function.
2025
        (frvbf_write_mem_QI): New function.
2026
        (frvbf_write_mem_UQI): New function.
2027
        (frvbf_write_mem_HI): New function.
2028
        (frvbf_write_mem_UHI): New function.
2029
        (frvbf_write_mem_SI): New function.
2030
        (frvbf_write_mem_WI): New function.
2031
        (frvbf_write_mem_DI): New function.
2032
        (frvbf_write_mem_DF): New function.
2033
        * Makefile.in (SIM_OBJS): Add memory.o.
2034
        * cpu.c,cpu.h,sem.c: Rebuild.
2035
 
2036
1999-10-18  Dave Brolley  
2037
 
2038
        * sim-if.c (sim_open): Use a real fpu error function.
2039
        * pipeline.c (frv_pipeline_add_insn): Don't add invalid insns.
2040
        * mloop.in (_parallel_write_queued): Clear queue after writing.
2041
        * interrupts.c (check_for_compound_interrupt): New function.
2042
        (non_operating_interrupt): New function.
2043
        * frv-sim.h (frvbf_h_gr_double_get_handler): New function.
2044
        (frvbf_h_gr_double_set_handler): New function.
2045
        (frvbf_h_fr_double_get_handler): New function.
2046
        (frvbf_h_fr_double_set_handler): New function.
2047
        (frvbf_h_cpr_double_get_handler): New function.
2048
        (frvbf_h_cpr_double_set_handler): New function.
2049
        (frv_interrupt_queue_element): New struct type.
2050
        (frv_queue_program_interrupt): Now takes pc.
2051
        (frv_queue_illegal_instruction_interrupt): Now takes pc.
2052
        (frv_queue_interrupt): Now takes pc.
2053
        (frv_program_interrupt): Now takes frv_interrupt_queue_element.
2054
        (frv_software_interrupt): Now takes frv_interrupt_queue_element.
2055
        (frvbf_division_exception): New function.
2056
        (frvbf_fpu_error): New function.
2057
        (frvbf_load_multiple_GR): New function.
2058
        (frvbf_load_multiple_FR): New function.
2059
        (frvbf_load_multiple_CPR): New function.
2060
        * frv.c (frvbf_h_gr_double_get_handler): New function.
2061
        (frvbf_h_gr_double_set_handler): New function.
2062
        (frvbf_h_fr_double_get_handler): New function.
2063
        (frvbf_h_fr_double_set_handler): New function.
2064
        (frvbf_h_cpr_double_get_handler): New function.
2065
        (frvbf_h_cpr_double_set_handler): New function.
2066
        (frv_interrupt_queue_element): New struct type.
2067
        (frv_queue_program_interrupt): Now takes pc.
2068
        (frv_queue_illegal_instruction_interrupt): Now takes pc.
2069
        (frv_queue_interrupt): Now takes pc.
2070
        (frv_program_interrupt): Now takes frv_interrupt_queue_element.
2071
        (frv_software_interrupt): Now takes frv_interrupt_queue_element.
2072
        (frvbf_fpu_error): New function.
2073
        (frvbf_load_multiple_GR): New function.
2074
        (frvbf_load_multiple_FR): New function.
2075
        (frvbf_load_multiple_CPR): New function.
2076
        * traps.c (frvbf_division_exception): New function.
2077
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Rebuild.
2078
 
2079
1999-10-12  Dave Brolley  
2080
 
2081
        * mloop.in (new_vpc): New variable.
2082
        (main loop): Call frv_detect_insn_access_interrupts. Call
2083
        frv_detect_data_interrupts.
2084
        * interrupts.c (access_queued_to): New function.
2085
        (frv_detect_data_interrupts): New function.
2086
        (frv_detect_insn_access_interrupts): New function.
2087
        (frv_program_or_software_interrupt): Set PSR.S.
2088
        * frv-sim.h (frv_detect_data_interrupts): New function.
2089
        (frv_detect_insn_interrupts): New function.
2090
 
2091
1999-10-07  Dave Brolley  
2092
 
2093
        * frv-sim.h (frvbf_h_gr_hi_get_handler): New function.
2094
        (frvbf_h_gr_hi_set_handler): New function.
2095
        (frvbf_h_gr_lo_get_handler): New function.
2096
        (frvbf_h_gr_lo.set_handler): New function.
2097
        * frv.c (frvbf_h_gr_hi_get_handler): New function.
2098
        (frvbf_h_gr_hi_set_handler): New function.
2099
        (frvbf_h_gr_lo_get_handler): New function.
2100
        (frvbf_h_gr_lo.set_handler): New function.
2101
        (frvbf_model_fr500_u_integer): New function.
2102
        * arch.h,cpu.h,cpu.c,decode.h,decode.c,model.c,sem.c: Rebuild.
2103
 
2104
1999-10-04  Dave Brolley  
2105
 
2106
        * traps.c: Use sim_engine_abort.
2107
        * pipeline.c (frv_pipeline): Add field for insn major.
2108
        (add_next_to_pipe): Return address of matching pipeline.
2109
        (find_major_in_pipeline): New function.
2110
        (check_insn_major_constraints: New function.
2111
        (frv_pipeline_add_insn): Add checks for insn major constraints.
2112
        * interrupts.c (frv_process_interrupts): Use sim_engine_abort.
2113
        * frv.c (frvbf_h_spr_get_handler): No need to abort.
2114
 
2115
Thu Sep 30 18:10:25 1999  Dave Brolley  
2116
 
2117
        * pipeline.c: New file.
2118
        * mloop.in (main loop): Call frv_pipeline_reset.
2119
        Call frv_pipeline_add_insn.
2120
        * frv-sim.h (frv_pipeline_reset): New function.
2121
        (frv_pipeline_add_insn): New function.
2122
        * Makefile.in (SIM_OBJS): Add pipeline.o
2123
 
2124
1999-09-29  Doug Evans  
2125
 
2126
        * sem.c: Rebuild.
2127
        * traps.c (sim_engine_invalid_insn): New arg `vpc'.  Change type of
2128
        result to SEM_PC.  Return vpc.
2129
 
2130
Wed Sep 29 16:01:52 1999  Dave Brolley  
2131
 
2132
        * interrupts.c (frv_interrupt_table): DATA_STORE_ERROR is imprecise.
2133
        (frv_queue_interrupt): Don't detect identical interrupts here.
2134
 
2135
Wed Sep 29 14:49:52 1999  Dave Brolley  
2136
 
2137
        * interrupts.c: New file.
2138
        * traps.c (sim_engine_invalid_insn): Return PC of next insn.
2139
        (frv_software_interrupt): Moved to interrupts.c.
2140
        (frv_itrap): New interface. Call frv_queue_software_interrupt.
2141
        * mloop.in (@cpu@_parallel_write_init): set previous_vliw_pc.
2142
        (@cpu@_perform_writeback): New function.
2143
        (main loop): Call frv_process_interrupts.
2144
        * frv-sim.h (frvbf_write_next_vliw_addr_to_PCSR): Removed.
2145
        (frv_itrap): New interface.
2146
        (frv_interrupt_class): New enumeration.
2147
        (frv_interrupt_kind): New enumeration.
2148
        (struct frv_interrupt): New struct type.
2149
        (frv_interrupt_table): New table of interrupt information.
2150
        (FRV_INTERRUPT_QUEUE_SIZE): New macro.
2151
        (struct frv_interrupt_state): New struct type.
2152
        (frv_interrupt_state): New global variable.
2153
        (previous_vliw_pc): New global variable.
2154
        (frv_queue_software_interrupt): New function.
2155
        (frv_queue_program_interrupt): New function.
2156
        (frv_queue_interrupt): New function.
2157
        (frv_process_interrupts): New function.
2158
        (frv_program_interrupt): New function.
2159
        (frv_software_interrupt): New function.
2160
        (frv_program_or_software_interrupt): New function.
2161
        (frv_clear_interrupt_classes): New function.
2162
        * frv.c (frvbf_write_next_vliw_addr_to_PCSR): Removed.
2163
        * Makefile.in (SIM_OBJS): Add interrupts.o
2164
        * sem.c: Rebuild.
2165
 
2166
1999-09-25  Doug Evans  
2167
 
2168
        * cpu.h,cpuall.h,decode.c,sem.c: Rebuild.
2169
 
2170
Tue Sep 21 17:16:47 1999  Dave Brolley  
2171
 
2172
        * mloop.in (main loop): Determine last insn from scache entry.
2173
        * cpu.h: Rebuild.
2174
        * cpuall.h: Rebuild.
2175
 
2176
Tue Sep 14 14:21:31 1999  Dave Brolley  
2177
 
2178
        * frv-sim.h (frvbf_write_next_vliw_addr_to_PCSR): New flag.
2179
        (NECR_ELOS): Define as unshifted value.
2180
        (NECR_NEN): Define as unshifted value.
2181
        (NECR_VALID): Define as unshifted value.
2182
        (SET_NESR): Rewite to use post-write queue.
2183
        (SET_NESR_VALID): Rewite to operate on argument.
2184
        (SET_NESR_EAV): Rewite to operate on argument.
2185
        (SET_NESR_FR): Rewite to operate on argument.
2186
        (CLEAR_NESR_FR): Rewite to operate on argument.
2187
        (SET_NESR_DRN): Rewite to operate on argument.
2188
        (SET_NESR_SIZE): Rewite to operate on argument.
2189
        (SET_NESR_NEAN): Rewite to operate on argument.
2190
        (SET_NEEAR): Rewite to use post-write queue.
2191
        (SET_NE_FLAG): Rewite to use post-write queue.
2192
        (CLEAR_NE_FLAG): Rewite to use post-write queue.
2193
        * traps.c (frv_software_interrupt): Rewite to use post-write queue.
2194
        (frv_rett): Rewite to use post-write queue.
2195
        (next_available_nesr): Rewrite to use new macro interfaces.
2196
        (next_valid_nesr): Ditto.
2197
        (frvbf_check_non_excepting_load): Ditto.
2198
        (frvbf_check_recovering_store): Ditto.
2199
        (clear_nesr_neear): Ditto.
2200
        (clear_ne_flags): Ditto.
2201
        * mloop.in (main loop): Update PCSR with address of next VLIW insn
2202
        when flag is set.
2203
        * frv.c (frvbf_h_spr_get_handler): Shift register fields here now.
2204
        (frvbf_store_multiple_GR): Rewite to use post-write queue.
2205
        (frvbf_store_multiple_FRint): Rewite to use post-write queue.
2206
        (frvbf_store_multiple_CPR): Rewite to use post-write queue.
2207
        * Makefile.in (frv.o): Depend on cgen-par.h.
2208
 
2209
Fri Sep 10 17:03:15 1999  Dave Brolley  
2210
 
2211
        * frv-sim.h (frvbf_set_write_next_vliw_addr_to_LR): New function.
2212
        (frvbf_write_next_vliw_addr_to_LR): New flag.
2213
        * frv.c (frvbf_set_write_next_vliw_addr_to_LR): New function.
2214
        * mloop.in: Only take the first branch in a VLIW insn. Set LR to the
2215
        address of the next VLIW insn if flag is set.
2216
        * cpu.h,decode.c,sem.c: Rebuild.
2217
 
2218
Tue Sep  7 13:44:23 1999  Dave Brolley  
2219
 
2220
        * mloop.in: Limit parallel insns to MAX_PARALLEL_INSNS.
2221
        * sem.c: Rebuild.
2222
 
2223
1999-09-02  Doug Evans  
2224
 
2225
        * configure: Regenerated to track ../common/aclocal.m4 changes.
2226
 
2227
1999-09-01  Doug Evans  
2228
 
2229
        * decode.c: Rebuild.
2230
 
2231
Mon Aug 30 17:54:57 1999  Dave Brolley  
2232
 
2233
        * traps.c (frv_rett): New function.
2234
        * frv.c (frvbf_h_spr_get_handler): Handle bpsr.
2235
        (frvbf_h_spr_set_handler): Handle bpsr.
2236
        (frvbf_h_bpsr_get_handler): New function.
2237
        (frvbf_h_bpsr_set_handler): New function.
2238
        * frv-sim.h (frv_rett): New function.
2239
        (frvbf_h_bpsr_get_handler): New function.
2240
        (frvbf_h_bpsr_set_handler): New function.
2241
        * mloop.in: Read actual packing bit.
2242
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Rebuild.
2243
 
2244
Tue Aug 31 16:04:37 1999  Dave Brolley  
2245
 
2246
        * traps.c (WANT_CPU): New macro.
2247
        (WANT_CPU_FRVBF): New macro.
2248
        (frvbf_check_recovering_store): Use registers for source and queue
2249
        writes.
2250
        * mloop.in: New main loop for parallel support.
2251
        (@cpu@_parallel_write_init): New function.
2252
        (@cpu@_parallel_write_queued): New function.
2253
        * frv-sim.h (set_icc_for_shift_left): New interface.
2254
        (set_icc_for_shift_right): New interface.
2255
        (frvbf_check_recovering_store): New interface.
2256
        * frv.c (set_icc_for_shift_left): Pass and return icc value.
2257
        (set_icc_for_shift_right): Pass and return icc value.
2258
        (frvbf_check_recovering_store): New interface.
2259
        * Makefile.in (FRV_OBJS): Add cgen-par.o.
2260
        (stamp-mloop): Add cgen parallel options.
2261
        (stamp-arch): Remove with-profile option.
2262
        (stamp-cpu): Add cgen parallel options.
2263
        * arch.h,cpu.h,decode.c,decode.h,model.c,sem.c: Rebuild.
2264
 
2265
1999-08-28  Doug Evans  
2266
 
2267
        * cpu.h,decode.c,sem.c: Rebuild.
2268
 
2269
Wed Aug 25 12:25:04 1999  Dave Brolley  
2270
 
2271
        * arch.h,cpu.h,decode.h,model.c,sem.c: Rebuild.
2272
 
2273
Thu Aug 19 17:59:00 1999  Dave Brolley  
2274
 
2275
        * configure.in: fr500 now the default model.
2276
        * configure: Regenerate.
2277
        * frv.c: Change frv-1 to frv-gen.
2278
        (frvbf_model_fr500_u_exec): New function.
2279
        * Makefile.in (stamp-cpu): Use 'mach=frv,fr500' to build decoder.
2280
        * mloop.in: Fix typos in comments.
2281
        * arch.c,arch.h,cpu.h,cpuall.h,decode.h,model.c,sem.c: Rebuild.
2282
 
2283
1999-08-17  Dave Brolley  
2284
 
2285
        * cpu.h,decode.c,decode.h,model.c,sem.c: Rebuild.
2286
 
2287
1999-08-09  Doug Evans  
2288
 
2289
        * cpu.h,decode.c,decode.h,model.c,sem.c: Rebuild.
2290
 
2291
1999-08-04  Doug Evans  
2292
 
2293
        * cpu.h,cpuall.h,decode.c,model.c,sem.c: Rebuild.
2294
 
2295
Fri Jul 16 14:50:15 1999  Dave Brolley  
2296
 
2297
        * frv.c (frvbf_fetch_register): Use GDB register number macros.
2298
        (frvbf_store_register): Use GDB register number macros.
2299
        (frvbf_cut): New function.
2300
        * frv-sim.h (GR_REGNUM_MAX): New macro.
2301
        (FR_REGNUM_MAX): New macro.
2302
        (PC_REGNUM): New macro.
2303
        (LR_REGNUM): New macro.
2304
        (frvbf_cut): New function.
2305
        * cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.
2306
 
2307
1999-07-15  Stan Shebs  
2308
 
2309
        * frv.c (frvbf_fetch_register): Add ability to get LR register,
2310
        add default for unhandled registers.
2311
        (frvbf_store_register): Add ability to set LR register.
2312
 
2313
1999-07-14  Stan Shebs  
2314
 
2315
        * frv.c (frvbf_fetch_register, frvbf_store_register): Fill in.
2316
        (decode_gdb_dr_regnum): Remove, not used.
2317
 
2318
1999-07-13  Michael Meissner  
2319
 
2320
        * Makefile.in (SIM_EXTRA_FLAGS): Incorporate @sim_trapdump@.
2321
 
2322
        * configure.in (--enable-sim-trapdump): New switch to make unknown
2323
        traps dump the register contents, instead of doing the trap thing.
2324
        * configure: Regenerate.
2325
 
2326
        * frv-sim.h (TRAP_BREAKPOINT): Define as 81, so it can be used.
2327
        (TRAP_REGDUMP{1,2}): Define to provide register dumping support
2328
        temporarily.
2329
 
2330
        * traps.h (toplevel): Include bfd.h, libiberity.h.
2331
        (frv_itrap): Add support for --enable-sim-trapdump and traps 2,3
2332
        dumping the registers.
2333
 
2334
Thu Jul  8 10:57:39 1999  Dave Brolley  
2335
 
2336
        * Makefile.in (SIM_EXTRA_LIBS): Removed. libm no longer needed.
2337
 
2338
Wed Jul  7 17:01:12 1999  Dave Brolley  
2339
 
2340
        * cpu.c,cpu.h,decode.c,model.c,sem.c: Rebuild.
2341
 
2342
Tue Jul  6 16:12:18 1999  Dave Brolley  
2343
 
2344
        * frv.c (frvbf_square_root_SF): Removed.
2345
        (frvbf_square_root_DF): Removed.
2346
        (frvbf_h_fr_double_get_handler): Removed.
2347
        (frvbf_h_fr_double_set_handler): Removed.
2348
        (frvbf_h_fr_int_get_handler): Removed.
2349
        (frvbf_h_fr_int_set_handler): Removed.
2350
        * frv-sim.h (frvbf_square_root_SF): Removed.
2351
        (frvbf_square_root_DF): Removed.
2352
        (frvbf_h_fr_double_get_handler): Removed.
2353
        (frvbf_h_fr_double_set_handler): Removed.
2354
        (frvbf_h_fr_int_get_handler): Removed.
2355
        (frvbf_h_fr_int_set_handler): Removed.
2356
        * decode.c,decode.h,model.c,sem.c: Rebuild.
2357
 
2358
1999-07-05  Doug Evans  
2359
 
2360
        * Makefile.in (SIM_OBJS): Add cgen-fpu.o, cgen-accfp.o.
2361
        * cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Rebuild.
2362
        * sim-if.c (sim_open): Initialize fpu.
2363
        * frv-sim.h (SETMEMSF,SETMEMDF): Delete.
2364
        * frv.c (frvbf_store_multiple_FRint): Replace frvbf_h_fr_int_get
2365
        with frvbf_h_fr_get.
2366
 
2367
Wed Jun 30 15:56:56 1999  Dave Brolley  
2368
 
2369
        * frv-sim.h (NESR_RANGE): New macro.
2370
        (NO_NESR): New macro.
2371
        (GET_NESR_VALID): New macro.
2372
        (next_ne_index): Removed.
2373
        * traps.c (next_available_nesr): New function.
2374
        (next_valid_nesr): New function.
2375
        (frvbf_check_non_excepting_load): Use next_available_nesr.
2376
        (frvbf_check_recovering_store): Use next_available_nesr and
2377
        next_valid_nesr.
2378
        (clear_nesr_neear): Use next_available_nesr and next_valid_nesr.
2379
        (frvbf_check_recovering_store): Only consider one matching register.
2380
        * sem.c: Rebuild.
2381
 
2382
Tue Jun 29 16:54:32 1999  Dave Brolley  
2383
 
2384
        * frv.c (frvbf_square_root_SF): New function.
2385
        (frvbf_square_root_DF): New function.
2386
        (frvbf_h_fr_double_get_handler): New function.
2387
        (frvbf_h_fr_double_set_handler): New function.
2388
        * frv-sim.h (frvbf_square_root_SF): New function.
2389
        (frvbf_square_root_DF): New function.
2390
        (frvbf_h_fr_double_get_handler): New function.
2391
        (frvbf_h_fr_double_set_handler): New function.
2392
        * cpu.h,cpu.c,decode.c,decode.h,model.c,sem.c: Rebuild.
2393
 
2394
1999-06-28  Dave Brolley  
2395
 
2396
        * decode.c,decode.h,model.c,sem.c: Regenerate.
2397
 
2398
Thu Jun 24 17:26:32 1999  Dave Brolley  
2399
 
2400
        * Makefile.in (SIM_EXTRA_LIBS): Add -lm.
2401
        * frv-sim.h (frvbf_h_fr_int_get_handler): New function.
2402
        (frvbf_h_fr_int_set_handler): New function.
2403
        (frvbf_store_multiple_FRint): New function.
2404
        (frvbf_square_root_SF): New function.
2405
        * frv.c (frvbf_h_fr_int_get_handler): New function.
2406
        (frvbf_h_fr_int_set_handler): New function.
2407
        (frvbf_store_multiple_FRint): New function.
2408
        (frvbf_square_root_SF): New function.
2409
        * cpu.h,cpu.c,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2410
 
2411
1999-06-23  Doug Evans  
2412
 
2413
        * Makefile.in (stamp-mloop): Delete -fast -pbb -switch args
2414
        to genmloop.sh.  Pass -scache instead.
2415
        (mloop.o): Delete sem-switch.c dependency.
2416
        (sem-switch.c): Delete rule.
2417
        (stamp-cpu): Don't build sem-switch.c.
2418
        * sem-switch.c: Delete.
2419
        * mloop.in (xfull-exec-*): Fix call to execute.
2420
        * tconfig.in (WITH_SCACHE_PBB): Define as 0.
2421
 
2422
        * cpu.h,decode.c,model.c,sem-switch.c,sem.c: Rebuild.
2423
 
2424
Tue Jun 22 16:23:57 1999  Dave Brolley  
2425
 
2426
        * cpu.h,decode.c,sem.c,sem-switch.c: Regenerate.
2427
 
2428
Mon Jun 21 17:34:10 1999  Dave Brolley  
2429
 
2430
        * mloop.in (execute): Force gr0 to zero before each insn.
2431
        * cpu.h,cpu.c,decode.c,sem.c,sem-switch.c: Regenerate.
2432
 
2433
1999-06-18  Doug Evans  
2434
 
2435
        * cpu.h,decode.c,model.c,sem-switch.c,sem.c: Rebuild.
2436
 
2437
Fri Jun 18 17:49:23 1999  Dave Brolley  
2438
 
2439
        * frv.c (frvbf_h_gr_get_handler): New function.
2440
        (frvbf_h_gr_set_handler): New function:
2441
        (frvbf_store-multiple_GR): New function:
2442
        (frvbf_store-multiple_FR): New function:
2443
        (frvbf_store-multiple_CPR): New function:
2444
        * frv-sim.h (frvbf_h_gr_get_handler): New function.
2445
        (frvbf_h_gr_set_handler): New function:
2446
        (frvbf_store-multiple_GR): New function:
2447
        (frvbf_store-multiple_FR): New function:
2448
        (frvbf_store-multiple_CPR): New function:
2449
        * traps.c (frv_itrap): Implement proper syscalls interface.
2450
        * cpu.h,cpu.c,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2451
 
2452
Fri Jun 18 14:36:23 1999  Dave Brolley  
2453
 
2454
        * traps.c (frvbf_check_non_excepting_divide): New function.
2455
        (frvbf_check_recovering_store): New function.
2456
        (clear_nesr_neear): New function.
2457
        (clear_ne_flags): New function.
2458
        (frvbf_commit): New function.
2459
 
2460
        * frv-sim.h (frvbf_check_non_excepting_divide): New function.
2461
        (frvbf_check_recovering_store): New function.
2462
        (clear_nesr_neear): New function.
2463
        (clear_ne_flags): New function.
2464
        (frvbf_commit): New function.
2465
        * cpu.h,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2466
 
2467
1999-06-16  Dave Brolley  
2468
 
2469
        * frv.c (frvbf_h_spr_get_handler): Handle SPR_NECR.
2470
        (frvbf_h_spr_set_handler): Handle SPR_NECR.
2471
        * traps.c (next_ne_index): New variable.
2472
        (frvbf_check_non_excepting_load): New function.
2473
        * frv-sim.h (NECR_ELOS): New macro.
2474
        (NECR_NEN): New macro.
2475
        (NECR_VALID): New macro.
2476
        (SET_NESR_VALID): New macro.
2477
        (SET_NESR_EAV): New macro.
2478
        (SET_NESR_FR): New macro.
2479
        (CLEAR_NESR_FR): New macro.
2480
        (SET_NESR_DRN): New macro.
2481
        (SET_NESR_SIZE): New macro.
2482
        (SET_NESR_NEAN): New macro.
2483
        (SET_NEEAR): New macro.
2484
        (GET_NE_FLAG): New macro.
2485
        (SET_NE_FLAG): New macro.
2486
        (CLEAR_NE_FLAG): New macro.
2487
        (frvbf_check_non_excepting_load): New function:
2488
        * cpu.h,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2489
 
2490
Wed Jun  9 18:12:49 1999  Dave Brolley  
2491
 
2492
        * cpu.h,decode.c,model.c,sem.c,sem-switch.c: Regenerate.
2493
 
2494
Tue Jun  8 18:13:51 1999  Dave Brolley  
2495
 
2496
        * frv.c (cr_logic): Correct andcr, nandcr, andncr and nandncr.
2497
        * cpu.h,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2498
 
2499
Mon Jun  7 17:09:15 1999  Dave Brolley  
2500
 
2501
        * cpu.h,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2502
 
2503
1999-06-07  Dave Brolley  
2504
 
2505
        * cpu.h,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2506
 
2507
Thu Jun  3 17:33:31 1999  Dave Brolley  
2508
 
2509
        * cpu.h,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2510
 
2511
Wed Jun  2 17:50:21 1999  Dave Brolley  
2512
 
2513
        * cpu.h,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2514
 
2515
Tue Jun  1 17:58:53 1999  Dave Brolley  
2516
 
2517
        * cpu.h,decode.c,model.c,sem.c,sem-switch.c: Regenerate.
2518
 
2519
Mon May 31 17:57:25 1999  Dave Brolley  
2520
 
2521
        * traps.c (frv_software_interrupt): Pass current_cpu to
2522
        frvbf_h_psr_esr_get.
2523
        (frv_software_interrupt): Calculate the new PC based on TBR.
2524
        * cpu.h,decode.c,model.c,sem.c,sem-switch.c: Regenerate.
2525
 
2526
1999-05-31  Dave Brolley  
2527
 
2528
        * cpu.h,decode.c,model.c,sem.c,sem-switch.c: Regenerate.
2529
 
2530
Thu May 27 17:42:00 1999  Dave Brolley  
2531
 
2532
        * frv-sim.h (frvbf_h_cccr_get_handler): New function.
2533
        (frvbf_h_cccr_set_handler): New function.
2534
        (frvbf_scan_result): New function.
2535
        (frvbf_cr_logic): New function.
2536
        * frv.c (frvbf_h_cccr_get_handler): New function.
2537
        (frvbf_h_cccr_set_handler): New function.
2538
        (frvbf_scan_result): New function.
2539
        (frvbf_cr_logic): New function.
2540
        (cr_ops,cr_result,cr_logic): New table.
2541
        * cpu.h,decode.c,model.c,sem.c,sem-switch.c: Regenerate.
2542
 
2543
1999-05-25  Dave Brolley  
2544
 
2545
        * frv.c (frvbf_h_spr_get_handler): Add support for TBR and PSR.
2546
        (frvbf_h_spr_set_handler): Add support for TBR and PSR.
2547
        (frv_psr_get_handler): New function.
2548
        (frv_psr_set_handler): New function.
2549
        (frv_tbr_get_handler): New function.
2550
        (frv_tbr_set_handler): New function.
2551
        (frvbf_h_ccr_get_handler): Add support for fCC.
2552
        (frvbf_h_ccr_set_handler): Add support for fCC.
2553
        * frv-sim.h (frv_psr_get_handler): New function.
2554
        (frv_psr_set_handler): New function.
2555
        (frv_tbr_get_handler): New function.
2556
        (frv_tbr_set_handler): New function.
2557
        * traps.c (frv_software_interrupt): Implement.
2558
        * cpu.h,cpu.c,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2559
 
2560
Thu May 20 16:39:27 1999  Dave Brolley  
2561
 
2562
        * cpu.h,cpu.c,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2563
 
2564
1999-05-18  Dave Brolley  
2565
 
2566
        * frv.c: (frvbf_set_icc_for_shift_left): New function.
2567
        (frvbf_set_icc_for_shift_right): New function.
2568
        * frv-sim.h (frvbf_set_icc_for_shift_left): New function.
2569
        (frvbf_set_icc_for_shift_right): New function.
2570
        (SETMEMSF): New Macro.
2571
        (SETMEMDF): New Macro.
2572
        * cpu.h,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2573
 
2574
Thu May 13 17:14:49 1999  Dave Brolley  
2575
 
2576
        * frv.c (frvbf_h_ccr_get_handler): New function.
2577
        (frvbf_h_ccr_set_handler): New function.
2578
        * cpu.h,cpu.c,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2579
 
2580
Tue May 11 16:13:15 1999  Dave Brolley  
2581
 
2582
        * frv-sim.h (frvbf_h_spr_get_handler,frvbf_h_spr_set_handler,
2583
        frvbf_h_isr_get_handler, frvbf_h_isr_set_handler): New functions.
2584
        * frv.c: Likewise.
2585
        * cpu.h,cpu.c,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2586
 
2587
1999-05-10  Dave Brolley  
2588
 
2589
        * cpu.h,cpu.c,decode.c,model.c,sem.c,sem-switch.c: Regenerate.
2590
 
2591
Thu May  6 16:48:21 1999  Dave Brolley  
2592
 
2593
        * cpu.h,decode.c,sem.c,sem-switch.c: Regenerate.
2594
        * frv-sim.h (TRAP_SYSCALL): Define as 0x80.
2595
 
2596
Wed May  5 11:52:24 1999  Dave Brolley  
2597
 
2598
        * traps.c (frv_software_interrupt): New function.
2599
        (frv_itrap): New function.
2600
        * frv-sim.h (TRAP_SYSCALL): define as 0.
2601
        * cpu.h,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2602
 
2603
Mon May  3 13:49:21 1999  Dave Brolley  
2604
 
2605
        * cpu.h,decode.c,decode.h,model.c,sem.c,sem-switch.c: Regenerate.
2606
 
2607
Thu Apr 29 17:37:06 1999  Dave Brolley  
2608
 
2609
        * Directory created.

powered by: WebSVN 2.1.0

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