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