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