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