1 Fri Feb 21 19:49:45 2003 J"orn Rennecke <joern.rennecke@superh.com>
3 * sem-media-switch.c, sem-media.c: Regenerate.
5 2002-06-24 Richard Sandiford <rsandifo@redhat.com>
7 * sh64.c: Update path of "callback.h".
9 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
11 * sh64.c: Include correct file for register numbers.
13 Fri May 17 14:27:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
15 * sim-if.c (sh64_disassemble_insn): Use print_insn_sh instead of
18 2001-07-05 Ben Elliston <bje@redhat.com>
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.
28 2001-03-30 Ben Elliston <bje@redhat.com>
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.
34 2001-01-30 Ben Elliston <bje@redhat.com>
36 * sh64.c (SYS_argc, SYS_argn, SYS_argnlen): Define.
37 (trap_handler): Implement these syscalls.
38 (count_argc): New function.
40 2001-01-24 Alexandre Oliva <aoliva@redhat.com>
42 * sh64.c (trap_handler): Implement time.
44 * sh64.c (fetch_str): New function.
45 (trap_handler): Re-implement write, and implement lseek, read,
48 2001-01-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
50 * sh64.c (sh64_fetch_register): When fetching the PC, return the
51 PC value and set the LSB according to the current ISA.
53 2001-01-18 Ben Elliston <bje@redhat.com>
55 * sh64.c (trap_handler): Use sim_engine_halt to indicate a program
56 has terminated, not exit!
58 2001-01-12 Ben Elliston <bje@redhat.com>
60 * sh64.c (sh64_fcnvds): Re-implement.
62 * sh64.c: Include "bfd.h".
63 (trap_handler): New function. Consolidate function bodies of
64 sh64_trapa and sh64_compact_trapa.
66 (sh64_compact_trapa): Likewise.
68 2001-01-11 Ben Elliston <bje@redhat.com>
70 * sem-media.c, sem-media-switch.c: Regenerate.
71 * sem-compact.c, sem-compact-switch.c: Likewise.
73 * sh64.c (sh64_trapa): Adhere to SH64 sys call conventions.
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.
80 2001-01-10 Ben Elliston <bje@redhat.com>
82 * sim-main.h (CIA_SET): Encode the current instruction set mode
85 2001-01-08 Ben Elliston <bje@redhat.com>
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.
100 * cpu.c, cpu.h: Regenerate.
101 * sem-compact.c, sem-compact-switch.c: Likewise.
102 * sem-media.c, sem-media-switch.c: Likewise.
104 * sh64.c (sh64_compact_trapa): Use sim_io_write_{stdout,error}(),
105 not stdio functions to emit output when executing write traps.
107 2001-01-07 Alexandre Oliva <aoliva@redhat.com>
109 * sh64.c (sh64_compact_trapa): Support writing to stderr. Flush
110 output stream after each (compound) write.
112 2001-01-06 Ben Elliston <bje@redhat.com>
114 * sem-media.c, sem-media-switch.c: Regenerate.
116 2001-01-04 Ben Elliston <bje@redhat.com>
118 * sem-compact.c, sem-compact-switch.c: Regenerate.
121 2001-01-03 Ben Elliston <bje@redhat.com>
123 * cpu.c, cpu.h: Regenerate.
124 * sem-media.c, sem-media-switch.c: Likewise.
126 2001-01-02 Ben Elliston <bje@redhat.com>
128 * sim-if.c (sh64_disassemble_insn): Set arch and mach fields using
131 * sem-compact.c, sem-compact-switch.c: Regenerate.
133 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
135 * sh64.c (sh64_nsb): Re-implement correctly.
137 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
139 * sh64.c (sh64_nsb): Re-implement.
141 2000-12-27 Ben Elliston <bje@redhat.com>
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.
148 2000-12-26 Ben Elliston <bje@redhat.com>
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.
160 2000-12-23 Ben Elliston <bje@redhat.com>
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.
166 2000-12-22 Ben Elliston <bje@redhat.com>
168 * sh64.c (sh64_idesc_media, sh64_idesc_compact): New variables.
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.
175 * sem-compact.c, sem-compact-switch.c: Regenerate.
176 * sem-media.c, sem-media-switch.c: Likewise.
178 2000-12-19 Ben Elliston <bje@redhat.com>
180 * sem-media.c, sem-media-switch.c: Regenerate.
182 2000-12-15 Ben Elliston <bje@redhat.com>
184 * sh64.c (sh64_store_register): When storing a new PC, set ISA
185 mode based on the value of bit 0.
187 * sh64.c: Include "sim-sh64.h" for GDB interfacing.
188 (sh64_fetch_register): Implement.
189 (sh64_store_register): Likewise.
191 * sh64-sim.h (sh64_fmacs): Declare.
192 (sh64_ftrcdl, sh64_ftrcdq, sh64_ftrcsl): Likewise.
194 * sem-media.c, sem-media-switch.c: Regenerate.
196 2000-12-13 Ben Elliston <bje@redhat.com>
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.
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.
207 2000-12-12 Ben Elliston <bje@redhat.com>
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.
215 * sh64.c (sh64_fcmpgtd): Fix order of arguments to sim_fpu_is_gt.
216 (sh64_fcmpgts): Likewise.
218 2000-12-11 Ben Elliston <bje@redhat.com>
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.
225 2000-12-08 Ben Elliston <bje@redhat.com>
227 * decode-media.c, decode-media.h: Regenerate.
228 * defs-media.h: Likewise.
229 * sem-media.c, sem-media-switch.c: Likewise.
231 2000-12-07 Ben Elliston <bje@redhat.com>
233 * decode-media.c, decode-media.h: Regenerate.
234 * sem-media.c, sem-media-switch.c: Likewise.
236 * defs-media.h: Regenete.
237 * decode-compact.c, decode-media.c: Likewise.
239 2000-12-06 Ben Elliston <bje@redhat.com>
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.
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.
255 2000-12-05 Ben Elliston <bje@redhat.com>
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.
262 * decode-media.c, defs-media.h: Regenerate.
264 2000-12-04 Ben Elliston <bje@redhat.com>
266 * sh64-sim.h: Add function prototypes from sh64.c.
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.
280 * defs-compact.h, defs-media.h: Regenerate.
282 2000-12-03 Ben Elliston <bje@redhat.com>
284 * sh64-sim.h (sh64_fcmpeqd, sh64_fcmpeqs): Declare.
285 (sh64_fcmpged, sh64_fcmpges): Likewise.
286 (sh64_fcmpgtd, sh64_fcmpgts): Likewise.
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.
305 (sh5_imp_properties): Likewise.
306 (sh2_mach, sh3_mach, sh4_mach, sh5_mach): Define.
308 * sem-compact.c, sem-compact-switch.c: Regenerate.
310 2000-12-01 Ben Elliston <bje@redhat.com>
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.
319 * decode.h (WITH_PROFILE_MODEL_P): Undefine.
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.
327 2000-11-30 Ben Elliston <bje@redhat.com>
329 * arch.c, sh-desc.c, sh-desc.h: Regenerate.
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.
336 2000-11-27 Ben Elliston <bje@redhat.com>
338 * sim-main.h (WITH_PROFILE_MODEL_P): Define.
339 * sh64-sim.h (ISM_COMPACT, ISM_MEDIA): New enums.
341 * sh-desc.c, sh-desc.h: Regenerate.
342 * arch.c, cpu.h, cpuall.h: Regenerate.
343 * decode.h (WITH_PROFILE_MODEL_P): Remove.
345 * mloop-compact.in, mloop-media.in: New files.
346 * decode.h: Likewise.
348 2000-11-26 Ben Elliston <bje@redhat.com>
350 * sem-compact.c, sem-compact-switch.c: Generate.
351 * sem-media.c, sem-media-switch.c: Likewise.
353 2000-11-25 Ben Elliston <bje@redhat.com>
355 * sh-desc.c, sh-desc.h, sh-opc.h: Generate.
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.
363 2000-11-22 Ben Elliston <bje@redhat.com>
365 * sim-if.c: New file.
368 2000-11-16 Ben Elliston <bje@redhat.com>
370 * config.in: New file.
371 * tconfig.in: Likewise.
372 * configure.in: Likewise.
373 * configure: Generate.
374 * Makefile.in: New file.