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