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