3 * configure: Regenerated.
7 * configure: Regenerated.
11 * sh-desc.h: Move extern declaration of sh_cgen_ifld_table after
16 * configure.ac: New file.
17 * configure.in: Remove.
18 * configure: Regenerate.
19 * defs-media.h (sem_fields): Add missing sfmt_ldhil member.
20 * sim-if.c (sim_open): Use struct bfd instead of struct _bfd.
21 (sim_create_inferior): Ditto.
25 * configure: Regenerate for ../common/aclocal.m4 update.
29 * sem-media-switch.c, sem-media.c: Regenerate.
33 * sh64.c: Update path of "callback.h".
37 * sh64.c: Include correct file for register numbers.
41 * sim-if.c (sh64_disassemble_insn): Use print_insn_sh instead of
46 * Makefile.in (stamp-arch): Use $(CGEN_CPU_DIR).
47 (stamp-desc): Likewise.
48 (stamp-cpu): Likewise.
49 (stamp-defs-compact): Likewise.
50 (stamp-defs-media): Likewise.
51 (stamp-decode-compact): Likewise.
52 (stamp-decode-media): Likewise.
56 * sim-if.c (sim_open): Set sh64_idesc_{media,compact} to NULL.
57 * sh64-sim.h (sh64_idesc_{compact,media}): Declare extern.
58 * sh64.c (sh64_idesc_{compact,media}): Make non-static.
62 * sh64.c (SYS_argc, SYS_argn, SYS_argnlen): Define.
63 (trap_handler): Implement these syscalls.
64 (count_argc): New function.
68 * sh64.c (trap_handler): Implement time.
70 * sh64.c (fetch_str): New function.
71 (trap_handler): Re-implement write, and implement lseek, read,
76 * sh64.c (sh64_fetch_register): When fetching the PC, return the
77 PC value and set the LSB according to the current ISA.
81 * sh64.c (trap_handler): Use sim_engine_halt to indicate a program
82 has terminated, not exit!
86 * sh64.c (sh64_fcnvds): Re-implement.
88 * sh64.c: Include "bfd.h".
89 (trap_handler): New function. Consolidate function bodies of
90 sh64_trapa and sh64_compact_trapa.
92 (sh64_compact_trapa): Likewise.
96 * sem-media.c, sem-media-switch.c: Regenerate.
97 * sem-compact.c, sem-compact-switch.c: Likewise.
99 * sh64.c (sh64_trapa): Adhere to SH64 sys call conventions.
101 * cpu.h, sh-desc.c, sh-desc.h, sh-opc.h: Regenerate.
102 * decode-media.c, decode-media.h, defs-media.h: Likewise.
103 * sem-compact.c, sem-compact-switch.c: Likewise.
104 * sem-media.c, sem-media-switch.c: Likewise.
108 * sim-main.h (CIA_SET): Encode the current instruction set mode
109 when setting the cia.
113 * sh64.c (sh64_store_register): Do not set insn set mode--allow
114 sh64_h_pc_set() to do it.
115 (shmedia_init_cpu): Do not initialise the insn set mode--let the
116 loader set it based on bit 0 of the executable's starting address.
117 (shcompact_init_cpu): Likewise.
118 * mloop-compact.c (sh64_compact_pbb_begin): Emit a warning message
119 about malformed programs which have illegal insns in delay slots.
120 (sh64_compact_pbb_cti_chain): Examine the least significant bit of
121 the new pc, not the current instruction set mode to determine if
122 the next pbb in the chain will consist of SHmedia instructions.
123 * mloop-media.c (sh64_media_pbb_cti_chain): Likewise for SHcompact
124 switches. Set bit 0 when setting the pc for the next SHmedia pbb.
126 * cpu.c, cpu.h: Regenerate.
127 * sem-compact.c, sem-compact-switch.c: Likewise.
128 * sem-media.c, sem-media-switch.c: Likewise.
130 * sh64.c (sh64_compact_trapa): Use sim_io_write_{stdout,error}(),
131 not stdio functions to emit output when executing write traps.
135 * sh64.c (sh64_compact_trapa): Support writing to stderr. Flush
136 output stream after each (compound) write.
140 * sem-media.c, sem-media-switch.c: Regenerate.
144 * sem-compact.c, sem-compact-switch.c: Regenerate.
149 * cpu.c, cpu.h: Regenerate.
150 * sem-media.c, sem-media-switch.c: Likewise.
154 * sim-if.c (sh64_disassemble_insn): Set arch and mach fields using
157 * sem-compact.c, sem-compact-switch.c: Regenerate.
161 * sh64.c (sh64_nsb): Re-implement correctly.
165 * sh64.c (sh64_nsb): Re-implement.
169 * cpu.c, cpu.h: Regenerate.
170 * sem-compact.c, sem-compact-switch.c: Likewise.
171 * sem-media.c, sem-media-switch.c: Likewise.
172 * sh-desc.c: Likewise.
176 * mloop-compact.in, mloop-media.in: Remove.
177 * mloop-compact.c, mloop-media.c: New files.
178 * eng-compact.c, eng-media.c: Likewise.
179 * Makefile.in (mloop-compact.c): Remove target.
180 (stamp-mloop-compact): Likewise.
181 (mloop-media.c): Likewise.
182 (stamp-mloop-media): Likewise.
183 (sh64-clean): Update.
184 (stamp-mloop): Remove.
188 * sh64.c (sh64_prepare_run): Rename from shmedia_prepare_run.
189 (shcompact_prepare_run): Remove.
190 (sh2_mach, sh3_mach, sh3e_mach, sh4_mach, sh5_mach): Update.
194 * sh64.c (sh64_idesc_media, sh64_idesc_compact): New variables.
196 (sh64_engine_run_full): Only compute idesc tables once.
197 (sh64_engine_run_fast): Likewise.
198 (shmedia_prepare_run): Do nothing.
199 (shcompact_prepare_run): Likewise.
201 * sem-compact.c, sem-compact-switch.c: Regenerate.
202 * sem-media.c, sem-media-switch.c: Likewise.
206 * sem-media.c, sem-media-switch.c: Regenerate.
210 * sh64.c (sh64_store_register): When storing a new PC, set ISA
211 mode based on the value of bit 0.
213 * sh64.c: Include "sim-sh64.h" for GDB interfacing.
214 (sh64_fetch_register): Implement.
215 (sh64_store_register): Likewise.
217 * sh64-sim.h (sh64_fmacs): Declare.
218 (sh64_ftrcdl, sh64_ftrcdq, sh64_ftrcsl): Likewise.
220 * sem-media.c, sem-media-switch.c: Regenerate.
224 * sh64-sim.h (sh64_compact_trapa): Renamed from sh64_trapa.
225 (sh64_trapa): Renamed from sh64_trap.
226 * sh64.c (sh64_trapa): Call sh64_compact_trapa for handling.
227 Apply renaming described above.
229 * decode-media.c, decode-media.h, defs-media.h: Regenerate.
230 * sem-media.c sem-media-switch.c: Likewise.
231 * sh-desc.c, sh-desc.h, sh-opc.h: Likewise.
235 * cpu.c, cpu.h, sh-desc.c: Regenerate.
236 * sem-media.c, sem-media-switch.c: Likewise.
237 * sem-compact.c, sem-compact-switch.c: Likewise.
238 * sh64-sim.h (sh64_ftrvs): Declare.
239 * sh64.c (sh64_ftrvs): Bug fixes.
241 * sh64.c (sh64_fcmpgtd): Fix order of arguments to sim_fpu_is_gt.
242 (sh64_fcmpgts): Likewise.
246 * decode-media.c, decode-media.h: Regenerate.
247 * defs-media.h: Likewise.
248 * sem-media.c, sem-media-switch.c: Likewise.
249 * sh-desc.c: Likewise.
253 * decode-media.c, decode-media.h: Regenerate.
254 * defs-media.h: Likewise.
255 * sem-media.c, sem-media-switch.c: Likewise.
259 * decode-media.c, decode-media.h: Regenerate.
260 * sem-media.c, sem-media-switch.c: Likewise.
262 * defs-media.h: Regenete.
263 * decode-compact.c, decode-media.c: Likewise.
267 * sh64.c (sh64_fcmpund): Return a BI.
268 (sh64_fcmpuns): Likewise.
269 (sh64_nsb): Treat source value as unsigned.
270 (sh64_compact_model_insn_before): New function.
271 (sh64_media_model_insn_before): Likewise.
272 (sh64_compact_model_insn_after): Likewise.
273 (sh64_media_model_insn_after): Likewise.
274 (sh_models): Use sh5_mach for "sh5".
275 * sh64-sim.h: Add missing function prototypes.
277 * cpu.c, cpu.h, defs-media.h, sh-desc.c: Regenerate.
278 * decode-media.c, decode-media.h: Likewise.
279 * sem-media.c, sem-media-switch.c: Likewise.
283 * mloop-compact.in, mloop-media.in: Use @prefix@.
284 * Makefile.in (stamp-mloop-compact): Pass -outfile-suffix option
285 to make generated files safe in the presence of parallel makes.
286 (stamp-mloop-media): Likewise.
288 * decode-media.c, defs-media.h: Regenerate.
292 * sh64-sim.h: Add function prototypes from sh64.c.
294 * Makefile.in (SH64_OBJS): Add ISA variant objects.
295 (SIM_EXTRA_DEPS): Do not depend on opcodes headers.
296 (SH64_INCLUDE_DEPS): Update for ISA variants.
297 (stamp-mloop-compact, stamp-mloop-media): New targets.
298 (decode-compact.o, sem-compact.o): New rules.
299 (decode-media.o, sem-media.o): Likewise.
300 (sh64-clean): Update.
301 (stamp-all, stamp-mloop, stamp-decode, stamp-defs): New targets.
302 (stamp-desc, stamp-cpu): Likewise.
303 (stamp-defs-compact, stamp-defs-media): Likewise.
304 (stamp-decode-compact, stamp-decode-media): Likewise.
306 * defs-compact.h, defs-media.h: Regenerate.
310 * sh64-sim.h (sh64_fcmpeqd, sh64_fcmpeqs): Declare.
311 (sh64_fcmpged, sh64_fcmpges): Likewise.
312 (sh64_fcmpgtd, sh64_fcmpgts): Likewise.
314 * sh64.c (sh64_endian): New function.
315 (sh64_fcmpeqd, sh64_fcmpeqs): Return a BI.
316 (sh64_fcmpged, sh64_fcmpges): Likewise.
317 (sh64_fcmpgtd, sh64_fcmpgts): Likewise.
318 (sh64_trap): Implement a basic syscall facility.
319 (sh64_trapa): Exit with return code in R5, not 0.
320 (sh64_model_sh5_u_exec): Remove.
321 (sh64_engine_run_full): New function.
322 (sh64_engine_run_fast): Likewise.
323 (shmedia_prepare_run): Likewise.
324 (shcompact_prepare_run): Likewise.
325 (sh64_get_idata): Likewise.
326 (sh64_init_cpu): Likewise.
327 (shmedia_init_cpu): Likewise.
328 (shcompact_init_cpu): Likewise.
329 (sh64_model_init): Likewise.
331 (sh5_imp_properties): Likewise.
332 (sh2_mach, sh3_mach, sh4_mach, sh5_mach): Define.
334 * sem-compact.c, sem-compact-switch.c: Regenerate.
338 * sh64-sim.h (sh64_endian): Declare.
339 * sim-main.h (sim_cia): Use UDI, not USI.
340 (WITH_PROFILE_MODEL_P): Remove.
341 * sim-if.c (sim_sh64_disassemble_insn): Remove.
342 (sh64_disassemble_insn): New function.
343 (sim_open): Use as this CPU's disassembler.
345 * decode.h (WITH_PROFILE_MODEL_P): Undefine.
347 * decode-compact.c, decode-media.c: Regenerate.
348 * defs-compact.h, defs-media.h: Likewise.
349 * sem-compact.c, sem-compact-switch.c: Likewise.
350 * sh-desc.c, sh-desc.h: Likewise.
351 * cpu.c, cpu.h, cpuall.h: Likewise.
355 * arch.c, sh-desc.c, sh-desc.h: Regenerate.
357 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
358 * configure.in (SIM_AC_OPTION_BIGENDIAN): Do not hard-wire a
359 target byte order, but default to big endian.
360 * configure: Regenerate.
364 * sim-main.h (WITH_PROFILE_MODEL_P): Define.
365 * sh64-sim.h (ISM_COMPACT, ISM_MEDIA): New enums.
367 * sh-desc.c, sh-desc.h: Regenerate.
368 * arch.c, cpu.h, cpuall.h: Regenerate.
369 * decode.h (WITH_PROFILE_MODEL_P): Remove.
371 * mloop-compact.in, mloop-media.in: New files.
372 * decode.h: Likewise.
376 * sem-compact.c, sem-compact-switch.c: Generate.
377 * sem-media.c, sem-media-switch.c: Likewise.
381 * sh-desc.c, sh-desc.h, sh-opc.h: Generate.
383 * arch.c, arch.h, cpuall.h, cpu.c, cpu.h: Generate.
384 * decode-compact.c, decode-compact.h: Likewise.
385 * decode-media.c, decode-media.h: Likewise.
386 * sh64-sim.h: New file.
387 * sim-main.h: Likewise.
391 * sim-if.c: New file.
396 * config.in: New file.
397 * tconfig.in: Likewise.
398 * configure.in: Likewise.
399 * configure: Generate.
400 * Makefile.in: New file.