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