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