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