* cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
[external/binutils.git] / sim / sh64 / ChangeLog
1 2009-11-22  Doug Evans  <dje@sebabeach.org>
2
3         * cpu.h: Regenerate.
4         * cpuall.h: Regenerate.
5         * decode-compact.c: Regenerate.
6         * decode-compact.h: Regenerate.
7         * decode-media.c: Regenerate.
8         * decode-media.h: Regenerate.
9         * defs-compact.h: Regenerate.
10         * defs-media.h: Regenerate.
11
12 2009-11-03  Doug Evans  <dje@sebabeach.org>
13
14         * arch.c: Regenerate.
15         * arch.h: Regenerate.
16         * cpu.c: Regenerate.
17         * cpu.h: Regenerate.
18         * cpuall.h: Regenerate.
19         * decode-compact.c: Regenerate.
20         * decode-compact.h: Regenerate.
21         * decode-media.c: Regenerate.
22         * decode-media.h: Regenerate.
23         * defs-compact.h: Regenerate.
24         * defs-media.h: Regenerate.
25         * sem-compact-switch.c: Regenerate.
26         * sem-compact.c: Regenerate.
27         * sem-media-switch.c: Regenerate.
28         * sem-media.c: Regenerate.
29         * sh-desc.c: Regenerate.
30         * sh-opc.h: Regenerate.
31
32         * Makefile.in (SIM_EXTRA_DEPS): Add sh-desc.h sh-opc.h.
33         (sh-desc.o): New rule.
34         (sh-desc.h,sh-desc.c,sh-opc.h): Replaces rule for desc.h.
35         (all generated file rules): Specify generated file with full path.
36
37 2009-10-24  Doug Evans  <dje@sebabeach.org>
38
39         * sh-desc.h: Regenerate.
40
41 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42
43         * config.in: Regenerate.
44         * configure: Likewise.
45
46         * configure: Regenerate.
47
48 2008-07-11  Hans-Peter Nilsson  <hp@axis.com>
49
50         * configure: Regenerate to track ../common/common.m4 changes.
51         * config.in: Ditto.
52
53 2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
54             Daniel Jacobowitz  <dan@codesourcery.com>
55             Joseph Myers  <joseph@codesourcery.com>
56
57         * configure: Regenerate.
58
59 2006-12-21  Hans-Peter Nilsson  <hp@axis.com>
60
61         * config.in, configure: Regenerate.
62
63 2006-10-18  Dave Brolley  <brolley@redhat.com>
64
65         * Contribute the following changes:
66
67         2006-06-14  Dave Brolley  <brolley@redhat.com>
68
69         * sh64-sim.h (sh64_fipr,sh64_fiprs,sh64_fldp,sh64_fstp,sh64_ftrv)
70         (sh64_fpref): New functions.
71         * sh64.c (sh64_fipr,sh64_fiprs,sh64_fldp,sh64_fstp,sh64_ftrv)
72         (sh64_fpref): New functions.
73         (sh_models): Add sh2e, sh2a, sh2a_nofpu, sh4_nofpu, sh4a,
74         sh4a_nofpu and sh4al.
75         (sh2e_mach): New MACH.
76         (sh2a_fpu_mach): New MACH.
77         (sh2a_nofpu_mach): New MACH.
78         (sh4_nofpu): New MACH.
79         (sh4a_mach): New MACH.
80         (sh4a_nofpu_mach): New MACH.
81         (sh4al_mach): New MACH.
82         * Makefile.in (stamp-*): Depend on $(CGEN_CPU_DIR)/sh-sim.cpu. Pass
83         archfile to CGEN script.
84         * arch.c: Regenerated.
85         * arch.h: Regenerated.
86         * cpu.c: Regenerated.
87         * cpu.h: Regenerated.
88         * cpuall.h: Regenerated.
89         * decode-compact.c: Regenerated.
90         * decode-compact.h: Regenerated.
91         * decode-media.c: Regenerated.
92         * decode-media.h: Regenerated.
93         * defs-compact.h: Regenerated.
94         * defs-media.h: Regenerated.
95         * sem-compact-switch.c: Regenerated.
96         * sem-compact.c: Regenerated.
97         * sem-media-switch.c: Regenerated.
98         * sem-media.c: Regenerated.
99         * sh-desc.c: Regenerated.
100         * sh-desc.h: Regenerated.
101         * sh-opc.h: Regenerated.
102
103 2006-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
104
105         * configure: Regenerated.
106
107 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
108
109         * configure: Regenerated.
110
111 2005-05-02  Corinna Vinschen  <vinschen@redhat.com>
112
113         * sh-desc.h: Move extern declaration of sh_cgen_ifld_table after
114         inclusion of cgen.h.
115
116 2005-04-15  Corinna Vinschen  <vinschen@redhat.com>
117
118         * configure.ac: New file.
119         * configure.in: Remove.
120         * configure: Regenerate.
121         * defs-media.h (sem_fields): Add missing sfmt_ldhil member.
122         * sim-if.c (sim_open): Use struct bfd instead of struct _bfd.
123         (sim_create_inferior): Ditto.
124
125 2004-12-08  Hans-Peter Nilsson  <hp@axis.com>
126
127         * configure: Regenerate for ../common/aclocal.m4 update.
128
129 Fri Feb 21 19:49:45 2003  J"orn Rennecke <joern.rennecke@superh.com>
130
131         * sem-media-switch.c, sem-media.c: Regenerate.
132
133 2002-06-24  Richard Sandiford  <rsandifo@redhat.com>
134
135         * sh64.c: Update path of "callback.h".
136
137 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
138
139         * sh64.c: Include correct file for register numbers.
140
141 Fri May 17 14:27:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
142
143         * sim-if.c (sh64_disassemble_insn): Use  print_insn_sh instead of
144         print_insn_shl.
145
146 2001-07-05  Ben Elliston  <bje@redhat.com>
147
148         * Makefile.in (stamp-arch): Use $(CGEN_CPU_DIR).
149         (stamp-desc): Likewise.
150         (stamp-cpu): Likewise.
151         (stamp-defs-compact): Likewise.
152         (stamp-defs-media): Likewise.
153         (stamp-decode-compact): Likewise.
154         (stamp-decode-media): Likewise.
155
156 2001-03-30  Ben Elliston  <bje@redhat.com>
157
158         * sim-if.c (sim_open): Set sh64_idesc_{media,compact} to NULL.
159         * sh64-sim.h (sh64_idesc_{compact,media}): Declare extern.
160         * sh64.c (sh64_idesc_{compact,media}): Make non-static.
161
162 2001-01-30  Ben Elliston  <bje@redhat.com>
163
164         * sh64.c (SYS_argc, SYS_argn, SYS_argnlen): Define.
165         (trap_handler): Implement these syscalls.
166         (count_argc): New function.
167
168 2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
169
170         * sh64.c (trap_handler): Implement time.
171
172         * sh64.c (fetch_str): New function.
173         (trap_handler): Re-implement write, and implement lseek, read,
174         open and close.
175
176 2001-01-18  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
177
178         * sh64.c (sh64_fetch_register): When fetching the PC, return the
179         PC value and set the LSB according to the current ISA.
180
181 2001-01-18  Ben Elliston  <bje@redhat.com>
182
183         * sh64.c (trap_handler): Use sim_engine_halt to indicate a program
184         has terminated, not exit!
185
186 2001-01-12  Ben Elliston  <bje@redhat.com>
187
188         * sh64.c (sh64_fcnvds): Re-implement.
189
190         * sh64.c: Include "bfd.h".
191         (trap_handler): New function. Consolidate function bodies of
192         sh64_trapa and sh64_compact_trapa.
193         (sh64_trapa): Use it.
194         (sh64_compact_trapa): Likewise.
195
196 2001-01-11  Ben Elliston  <bje@redhat.com>
197
198         * sem-media.c, sem-media-switch.c: Regenerate.
199         * sem-compact.c, sem-compact-switch.c: Likewise.
200
201         * sh64.c (sh64_trapa): Adhere to SH64 sys call conventions.
202
203         * cpu.h, sh-desc.c, sh-desc.h, sh-opc.h: Regenerate.
204         * decode-media.c, decode-media.h, defs-media.h: Likewise.
205         * sem-compact.c, sem-compact-switch.c: Likewise.
206         * sem-media.c, sem-media-switch.c: Likewise.
207
208 2001-01-10  Ben Elliston  <bje@redhat.com>
209
210         * sim-main.h (CIA_SET): Encode the current instruction set mode
211         when setting the cia.
212
213 2001-01-08  Ben Elliston  <bje@redhat.com>
214
215         * sh64.c (sh64_store_register): Do not set insn set mode--allow
216         sh64_h_pc_set() to do it.
217         (shmedia_init_cpu): Do not initialise the insn set mode--let the
218         loader set it based on bit 0 of the executable's starting address.
219         (shcompact_init_cpu): Likewise.
220         * mloop-compact.c (sh64_compact_pbb_begin): Emit a warning message
221         about malformed programs which have illegal insns in delay slots.
222         (sh64_compact_pbb_cti_chain): Examine the least significant bit of
223         the new pc, not the current instruction set mode to determine if
224         the next pbb in the chain will consist of SHmedia instructions.
225         * mloop-media.c (sh64_media_pbb_cti_chain): Likewise for SHcompact
226         switches. Set bit 0 when setting the pc for the next SHmedia pbb.
227
228         * cpu.c, cpu.h: Regenerate.
229         * sem-compact.c, sem-compact-switch.c: Likewise.
230         * sem-media.c, sem-media-switch.c: Likewise.
231
232         * sh64.c (sh64_compact_trapa): Use sim_io_write_{stdout,error}(),
233         not stdio functions to emit output when executing write traps.
234
235 2001-01-07  Alexandre Oliva  <aoliva@redhat.com>
236
237         * sh64.c (sh64_compact_trapa): Support writing to stderr.  Flush
238         output stream after each (compound) write.
239
240 2001-01-06  Ben Elliston  <bje@redhat.com>
241
242         * sem-media.c, sem-media-switch.c: Regenerate.
243
244 2001-01-04  Ben Elliston  <bje@redhat.com>
245
246         * sem-compact.c, sem-compact-switch.c: Regenerate.
247         * cpu.h: Regenerate.
248
249 2001-01-03  Ben Elliston  <bje@redhat.com>
250
251         * cpu.c, cpu.h: Regenerate.
252         * sem-media.c, sem-media-switch.c: Likewise.
253
254 2001-01-02  Ben Elliston  <bje@redhat.com>
255
256         * sim-if.c (sh64_disassemble_insn): Set arch and mach fields using
257         BFD primitives.
258
259         * sem-compact.c, sem-compact-switch.c: Regenerate.
260
261 2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
262
263         * sh64.c (sh64_nsb): Re-implement correctly.
264
265 2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
266
267         * sh64.c (sh64_nsb): Re-implement.
268
269 2000-12-27  Ben Elliston  <bje@redhat.com>
270
271         * cpu.c, cpu.h: Regenerate.
272         * sem-compact.c, sem-compact-switch.c: Likewise.
273         * sem-media.c, sem-media-switch.c: Likewise.
274         * sh-desc.c: Likewise.
275
276 2000-12-26  Ben Elliston  <bje@redhat.com>
277
278         * mloop-compact.in, mloop-media.in: Remove.
279         * mloop-compact.c, mloop-media.c: New files.
280         * eng-compact.c, eng-media.c: Likewise.
281         * Makefile.in (mloop-compact.c): Remove target.
282         (stamp-mloop-compact): Likewise.
283         (mloop-media.c): Likewise.
284         (stamp-mloop-media): Likewise.
285         (sh64-clean): Update.
286         (stamp-mloop): Remove.
287
288 2000-12-23  Ben Elliston  <bje@redhat.com>
289
290         * sh64.c (sh64_prepare_run): Rename from shmedia_prepare_run.
291         (shcompact_prepare_run): Remove.
292         (sh2_mach, sh3_mach, sh3e_mach, sh4_mach, sh5_mach): Update.
293
294 2000-12-22  Ben Elliston  <bje@redhat.com>
295
296         * sh64.c (sh64_idesc_media, sh64_idesc_compact): New variables.
297         (sh64_dump): Remove.
298         (sh64_engine_run_full): Only compute idesc tables once.
299         (sh64_engine_run_fast): Likewise.
300         (shmedia_prepare_run): Do nothing.
301         (shcompact_prepare_run): Likewise.
302
303         * sem-compact.c, sem-compact-switch.c: Regenerate.
304         * sem-media.c, sem-media-switch.c: Likewise.
305
306 2000-12-19  Ben Elliston  <bje@redhat.com>
307
308         * sem-media.c, sem-media-switch.c: Regenerate.
309
310 2000-12-15  Ben Elliston  <bje@redhat.com>
311
312         * sh64.c (sh64_store_register): When storing a new PC, set ISA
313         mode based on the value of bit 0.
314
315         * sh64.c: Include "sim-sh64.h" for GDB interfacing.
316         (sh64_fetch_register): Implement.
317         (sh64_store_register): Likewise.
318
319         * sh64-sim.h (sh64_fmacs): Declare.
320         (sh64_ftrcdl, sh64_ftrcdq, sh64_ftrcsl): Likewise.
321
322         * sem-media.c, sem-media-switch.c: Regenerate.
323
324 2000-12-13  Ben Elliston  <bje@redhat.com>
325
326         * sh64-sim.h (sh64_compact_trapa): Renamed from sh64_trapa.
327         (sh64_trapa): Renamed from sh64_trap.
328         * sh64.c (sh64_trapa): Call sh64_compact_trapa for handling.
329         Apply renaming described above.
330
331         * decode-media.c, decode-media.h, defs-media.h: Regenerate.
332         * sem-media.c sem-media-switch.c: Likewise.
333         * sh-desc.c, sh-desc.h, sh-opc.h: Likewise.
334
335 2000-12-12  Ben Elliston  <bje@redhat.com>
336
337         * cpu.c, cpu.h, sh-desc.c: Regenerate.
338         * sem-media.c, sem-media-switch.c: Likewise.
339         * sem-compact.c, sem-compact-switch.c: Likewise.
340         * sh64-sim.h (sh64_ftrvs): Declare.
341         * sh64.c (sh64_ftrvs): Bug fixes.
342
343         * sh64.c (sh64_fcmpgtd): Fix order of arguments to sim_fpu_is_gt.
344         (sh64_fcmpgts): Likewise.
345
346 2000-12-11  Ben Elliston  <bje@redhat.com>
347
348         * decode-media.c, decode-media.h: Regenerate.
349         * defs-media.h: Likewise.
350         * sem-media.c, sem-media-switch.c: Likewise.
351         * sh-desc.c: Likewise.
352
353 2000-12-08  Ben Elliston  <bje@redhat.com>
354
355         * decode-media.c, decode-media.h: Regenerate.
356         * defs-media.h: Likewise.
357         * sem-media.c, sem-media-switch.c: Likewise.
358
359 2000-12-07  Ben Elliston  <bje@redhat.com>
360
361         * decode-media.c, decode-media.h: Regenerate.
362         * sem-media.c, sem-media-switch.c: Likewise.
363
364         * defs-media.h: Regenete.
365         * decode-compact.c, decode-media.c: Likewise.
366
367 2000-12-06  Ben Elliston  <bje@redhat.com>
368
369         * sh64.c (sh64_fcmpund): Return a BI.
370         (sh64_fcmpuns): Likewise.
371         (sh64_nsb): Treat source value as unsigned.
372         (sh64_compact_model_insn_before): New function.
373         (sh64_media_model_insn_before): Likewise.
374         (sh64_compact_model_insn_after): Likewise.
375         (sh64_media_model_insn_after): Likewise.
376         (sh_models): Use sh5_mach for "sh5".
377         * sh64-sim.h: Add missing function prototypes.
378
379         * cpu.c, cpu.h, defs-media.h, sh-desc.c: Regenerate.
380         * decode-media.c, decode-media.h: Likewise.
381         * sem-media.c, sem-media-switch.c: Likewise.
382
383 2000-12-05  Ben Elliston  <bje@redhat.com>
384
385         * mloop-compact.in, mloop-media.in: Use @prefix@.
386         * Makefile.in (stamp-mloop-compact): Pass -outfile-suffix option
387         to make generated files safe in the presence of parallel makes.
388         (stamp-mloop-media): Likewise.
389
390         * decode-media.c, defs-media.h: Regenerate.
391
392 2000-12-04  Ben Elliston  <bje@redhat.com>
393
394         * sh64-sim.h: Add function prototypes from sh64.c.
395
396         * Makefile.in (SH64_OBJS): Add ISA variant objects.
397         (SIM_EXTRA_DEPS): Do not depend on opcodes headers.
398         (SH64_INCLUDE_DEPS): Update for ISA variants.
399         (stamp-mloop-compact, stamp-mloop-media): New targets.
400         (decode-compact.o, sem-compact.o): New rules.
401         (decode-media.o, sem-media.o): Likewise.
402         (sh64-clean): Update.
403         (stamp-all, stamp-mloop, stamp-decode, stamp-defs): New targets.
404         (stamp-desc, stamp-cpu): Likewise.
405         (stamp-defs-compact, stamp-defs-media): Likewise.
406         (stamp-decode-compact, stamp-decode-media): Likewise.   
407
408         * defs-compact.h, defs-media.h: Regenerate.
409
410 2000-12-03  Ben Elliston  <bje@redhat.com>
411
412         * sh64-sim.h (sh64_fcmpeqd, sh64_fcmpeqs): Declare.
413         (sh64_fcmpged, sh64_fcmpges): Likewise.
414         (sh64_fcmpgtd, sh64_fcmpgts): Likewise.
415
416         * sh64.c (sh64_endian): New function.
417         (sh64_fcmpeqd, sh64_fcmpeqs): Return a BI.
418         (sh64_fcmpged, sh64_fcmpges): Likewise.
419         (sh64_fcmpgtd, sh64_fcmpgts): Likewise.
420         (sh64_trap): Implement a basic syscall facility.
421         (sh64_trapa): Exit with return code in R5, not 0.
422         (sh64_model_sh5_u_exec): Remove.
423         (sh64_engine_run_full): New function.
424         (sh64_engine_run_fast): Likewise.
425         (shmedia_prepare_run): Likewise.
426         (shcompact_prepare_run): Likewise.
427         (sh64_get_idata): Likewise.
428         (sh64_init_cpu): Likewise.
429         (shmedia_init_cpu): Likewise.
430         (shcompact_init_cpu): Likewise.
431         (sh64_model_init): Likewise.
432         (sh_models): Define.
433         (sh5_imp_properties): Likewise.
434         (sh2_mach, sh3_mach, sh4_mach, sh5_mach): Define.
435
436         * sem-compact.c, sem-compact-switch.c: Regenerate.
437
438 2000-12-01  Ben Elliston  <bje@redhat.com>
439
440         * sh64-sim.h (sh64_endian): Declare.
441         * sim-main.h (sim_cia): Use UDI, not USI.
442         (WITH_PROFILE_MODEL_P): Remove.
443         * sim-if.c (sim_sh64_disassemble_insn): Remove.
444         (sh64_disassemble_insn): New function.
445         (sim_open): Use as this CPU's disassembler.
446         * eng.h: New file.
447         * decode.h (WITH_PROFILE_MODEL_P): Undefine.
448
449         * decode-compact.c, decode-media.c: Regenerate.
450         * defs-compact.h, defs-media.h: Likewise.
451         * sem-compact.c, sem-compact-switch.c: Likewise.
452         * sh-desc.c, sh-desc.h: Likewise.
453         * cpu.c, cpu.h, cpuall.h: Likewise.
454
455 2000-11-30  Ben Elliston  <bje@redhat.com>
456
457         * arch.c, sh-desc.c, sh-desc.h: Regenerate.
458
459         * tconfig.in (SIM_HAVE_BIENDIAN): Define.
460         * configure.in (SIM_AC_OPTION_BIGENDIAN): Do not hard-wire a
461         target byte order, but default to big endian.
462         * configure: Regenerate.
463
464 2000-11-27  Ben Elliston  <bje@redhat.com>
465
466         * sim-main.h (WITH_PROFILE_MODEL_P): Define.
467         * sh64-sim.h (ISM_COMPACT, ISM_MEDIA): New enums.
468
469         * sh-desc.c, sh-desc.h: Regenerate.
470         * arch.c, cpu.h, cpuall.h: Regenerate.
471         * decode.h (WITH_PROFILE_MODEL_P): Remove.
472
473         * mloop-compact.in, mloop-media.in: New files.
474         * decode.h: Likewise.
475
476 2000-11-26  Ben Elliston  <bje@redhat.com>
477
478         * sem-compact.c, sem-compact-switch.c: Generate.
479         * sem-media.c, sem-media-switch.c: Likewise.
480
481 2000-11-25  Ben Elliston  <bje@redhat.com>
482
483         * sh-desc.c, sh-desc.h, sh-opc.h: Generate.
484
485         * arch.c, arch.h, cpuall.h, cpu.c, cpu.h: Generate.
486         * decode-compact.c, decode-compact.h: Likewise.
487         * decode-media.c, decode-media.h: Likewise.
488         * sh64-sim.h: New file.
489         * sim-main.h: Likewise.
490
491 2000-11-22  Ben Elliston  <bje@redhat.com>
492
493         * sim-if.c: New file.
494         * sh64.c: Likewise.
495
496 2000-11-16  Ben Elliston  <bje@redhat.com>
497
498         * config.in: New file.
499         * tconfig.in: Likewise.
500         * configure.in: Likewise.
501         * configure: Generate.
502         * Makefile.in: New file.