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