3 * aclocal.m4, config.in, configure: Regenerate.
4 * tconfig.in: Rename file ...
9 * tconfig.in [HAVE_DV_SOCKSER]: Delete.
13 * Makefile.in (SIM_RUN_OBJS): Delete.
17 * configure.ac: Default simulator hardware to off again
18 without emitting errors when off or dv-sockser.o unavailable.
19 * configure: Regenerate.
23 * configure: Regenerate.
27 * configure: Regenerate.
28 * config.in: Regenerate.
32 * configure: Regenerate.
36 * aclocal.m4, configure: Regenerate.
40 * configure: Regenerate.
44 * configure.ac: Fail if dv-sockser.o not available.
45 Error when --disable-sim-hardware is specified.
46 * configure: Regenerated.
50 * config.in, configure: Regenerate.
55 * interp.c: Include config.h before system header files.
59 * aclocal.m4, config.in, configure: Regenerate.
63 * aclocal.m4: New file.
64 * configure: Regenerate.
68 * configure.ac: Change include to common/acinclude.m4.
72 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
73 call. Replace common.m4 include with SIM_AC_COMMON.
74 * configure: Regenerate.
78 * sim-if.c (sim_do_command): Delete.
82 * sh64.c (trap_handler): Change zfree to free.
86 * sh-desc.h: Regenerate.
90 * decode-media.c, * decode-media.h: Regenerate.
94 * decode-compact.c, * decode-media.c, * defs-compact.h, * defs-media.h,
95 * sem-compact-switch.c, * sem-compact.c, * sem-media-switch.c,
96 * sem-media.c, * sh-desc.c, * sh-desc.h: Regenerate.
104 * configure: Regenerate.
108 * arch.c, * arch.h, * cpu.c, * cpu.h, * cpuall.h, * decode-compact.c,
109 * decode-compact.h, * decode-media.c, * decode-media.h,
110 * defs-compact.h, * defs-media.h, * sem-compact-switch.c,
111 * sem-compact.c, * sem-media-switch.c, * sem-media.c, * sh-desc.c,
112 * sh-desc.h, * sh-opc.h: Regenerate, update copyright year.
117 * cpuall.h: Regenerate.
118 * decode-compact.c: Regenerate.
119 * decode-compact.h: Regenerate.
120 * decode-media.c: Regenerate.
121 * decode-media.h: Regenerate.
122 * defs-compact.h: Regenerate.
123 * defs-media.h: Regenerate.
127 * arch.c: Regenerate.
128 * arch.h: Regenerate.
131 * cpuall.h: Regenerate.
132 * decode-compact.c: Regenerate.
133 * decode-compact.h: Regenerate.
134 * decode-media.c: Regenerate.
135 * decode-media.h: Regenerate.
136 * defs-compact.h: Regenerate.
137 * defs-media.h: Regenerate.
138 * sem-compact-switch.c: Regenerate.
139 * sem-compact.c: Regenerate.
140 * sem-media-switch.c: Regenerate.
141 * sem-media.c: Regenerate.
142 * sh-desc.c: Regenerate.
143 * sh-opc.h: Regenerate.
145 * Makefile.in (SIM_EXTRA_DEPS): Add sh-desc.h sh-opc.h.
146 (sh-desc.o): New rule.
147 (sh-desc.h,sh-desc.c,sh-opc.h): Replaces rule for desc.h.
148 (all generated file rules): Specify generated file with full path.
152 * sh-desc.h: Regenerate.
156 * config.in: Regenerate.
157 * configure: Likewise.
159 * configure: Regenerate.
163 * configure: Regenerate to track ../common/common.m4 changes.
170 * configure: Regenerate.
174 * config.in, configure: Regenerate.
178 * Contribute the following changes:
182 * sh64-sim.h (sh64_fipr,sh64_fiprs,sh64_fldp,sh64_fstp,sh64_ftrv)
183 (sh64_fpref): New functions.
184 * sh64.c (sh64_fipr,sh64_fiprs,sh64_fldp,sh64_fstp,sh64_ftrv)
185 (sh64_fpref): New functions.
186 (sh_models): Add sh2e, sh2a, sh2a_nofpu, sh4_nofpu, sh4a,
187 sh4a_nofpu and sh4al.
188 (sh2e_mach): New MACH.
189 (sh2a_fpu_mach): New MACH.
190 (sh2a_nofpu_mach): New MACH.
191 (sh4_nofpu): New MACH.
192 (sh4a_mach): New MACH.
193 (sh4a_nofpu_mach): New MACH.
194 (sh4al_mach): New MACH.
195 * Makefile.in (stamp-*): Depend on $(CGEN_CPU_DIR)/sh-sim.cpu. Pass
196 archfile to CGEN script.
197 * arch.c: Regenerated.
198 * arch.h: Regenerated.
199 * cpu.c: Regenerated.
200 * cpu.h: Regenerated.
201 * cpuall.h: Regenerated.
202 * decode-compact.c: Regenerated.
203 * decode-compact.h: Regenerated.
204 * decode-media.c: Regenerated.
205 * decode-media.h: Regenerated.
206 * defs-compact.h: Regenerated.
207 * defs-media.h: Regenerated.
208 * sem-compact-switch.c: Regenerated.
209 * sem-compact.c: Regenerated.
210 * sem-media-switch.c: Regenerated.
211 * sem-media.c: Regenerated.
212 * sh-desc.c: Regenerated.
213 * sh-desc.h: Regenerated.
214 * sh-opc.h: Regenerated.
218 * configure: Regenerated.
222 * configure: Regenerated.
226 * sh-desc.h: Move extern declaration of sh_cgen_ifld_table after
231 * configure.ac: New file.
232 * configure.in: Remove.
233 * configure: Regenerate.
234 * defs-media.h (sem_fields): Add missing sfmt_ldhil member.
235 * sim-if.c (sim_open): Use struct bfd instead of struct _bfd.
236 (sim_create_inferior): Ditto.
240 * configure: Regenerate for ../common/aclocal.m4 update.
244 * sem-media-switch.c, sem-media.c: Regenerate.
248 * sh64.c: Update path of "callback.h".
252 * sh64.c: Include correct file for register numbers.
256 * sim-if.c (sh64_disassemble_insn): Use print_insn_sh instead of
261 * Makefile.in (stamp-arch): Use $(CGEN_CPU_DIR).
262 (stamp-desc): Likewise.
263 (stamp-cpu): Likewise.
264 (stamp-defs-compact): Likewise.
265 (stamp-defs-media): Likewise.
266 (stamp-decode-compact): Likewise.
267 (stamp-decode-media): Likewise.
271 * sim-if.c (sim_open): Set sh64_idesc_{media,compact} to NULL.
272 * sh64-sim.h (sh64_idesc_{compact,media}): Declare extern.
273 * sh64.c (sh64_idesc_{compact,media}): Make non-static.
277 * sh64.c (SYS_argc, SYS_argn, SYS_argnlen): Define.
278 (trap_handler): Implement these syscalls.
279 (count_argc): New function.
283 * sh64.c (trap_handler): Implement time.
285 * sh64.c (fetch_str): New function.
286 (trap_handler): Re-implement write, and implement lseek, read,
291 * sh64.c (sh64_fetch_register): When fetching the PC, return the
292 PC value and set the LSB according to the current ISA.
296 * sh64.c (trap_handler): Use sim_engine_halt to indicate a program
297 has terminated, not exit!
301 * sh64.c (sh64_fcnvds): Re-implement.
303 * sh64.c: Include "bfd.h".
304 (trap_handler): New function. Consolidate function bodies of
305 sh64_trapa and sh64_compact_trapa.
306 (sh64_trapa): Use it.
307 (sh64_compact_trapa): Likewise.
311 * sem-media.c, sem-media-switch.c: Regenerate.
312 * sem-compact.c, sem-compact-switch.c: Likewise.
314 * sh64.c (sh64_trapa): Adhere to SH64 sys call conventions.
316 * cpu.h, sh-desc.c, sh-desc.h, sh-opc.h: Regenerate.
317 * decode-media.c, decode-media.h, defs-media.h: Likewise.
318 * sem-compact.c, sem-compact-switch.c: Likewise.
319 * sem-media.c, sem-media-switch.c: Likewise.
323 * sim-main.h (CIA_SET): Encode the current instruction set mode
324 when setting the cia.
328 * sh64.c (sh64_store_register): Do not set insn set mode--allow
329 sh64_h_pc_set() to do it.
330 (shmedia_init_cpu): Do not initialise the insn set mode--let the
331 loader set it based on bit 0 of the executable's starting address.
332 (shcompact_init_cpu): Likewise.
333 * mloop-compact.c (sh64_compact_pbb_begin): Emit a warning message
334 about malformed programs which have illegal insns in delay slots.
335 (sh64_compact_pbb_cti_chain): Examine the least significant bit of
336 the new pc, not the current instruction set mode to determine if
337 the next pbb in the chain will consist of SHmedia instructions.
338 * mloop-media.c (sh64_media_pbb_cti_chain): Likewise for SHcompact
339 switches. Set bit 0 when setting the pc for the next SHmedia pbb.
341 * cpu.c, cpu.h: Regenerate.
342 * sem-compact.c, sem-compact-switch.c: Likewise.
343 * sem-media.c, sem-media-switch.c: Likewise.
345 * sh64.c (sh64_compact_trapa): Use sim_io_write_{stdout,error}(),
346 not stdio functions to emit output when executing write traps.
350 * sh64.c (sh64_compact_trapa): Support writing to stderr. Flush
351 output stream after each (compound) write.
355 * sem-media.c, sem-media-switch.c: Regenerate.
359 * sem-compact.c, sem-compact-switch.c: Regenerate.
364 * cpu.c, cpu.h: Regenerate.
365 * sem-media.c, sem-media-switch.c: Likewise.
369 * sim-if.c (sh64_disassemble_insn): Set arch and mach fields using
372 * sem-compact.c, sem-compact-switch.c: Regenerate.
376 * sh64.c (sh64_nsb): Re-implement correctly.
380 * sh64.c (sh64_nsb): Re-implement.
384 * cpu.c, cpu.h: Regenerate.
385 * sem-compact.c, sem-compact-switch.c: Likewise.
386 * sem-media.c, sem-media-switch.c: Likewise.
387 * sh-desc.c: Likewise.
391 * mloop-compact.in, mloop-media.in: Remove.
392 * mloop-compact.c, mloop-media.c: New files.
393 * eng-compact.c, eng-media.c: Likewise.
394 * Makefile.in (mloop-compact.c): Remove target.
395 (stamp-mloop-compact): Likewise.
396 (mloop-media.c): Likewise.
397 (stamp-mloop-media): Likewise.
398 (sh64-clean): Update.
399 (stamp-mloop): Remove.
403 * sh64.c (sh64_prepare_run): Rename from shmedia_prepare_run.
404 (shcompact_prepare_run): Remove.
405 (sh2_mach, sh3_mach, sh3e_mach, sh4_mach, sh5_mach): Update.
409 * sh64.c (sh64_idesc_media, sh64_idesc_compact): New variables.
411 (sh64_engine_run_full): Only compute idesc tables once.
412 (sh64_engine_run_fast): Likewise.
413 (shmedia_prepare_run): Do nothing.
414 (shcompact_prepare_run): Likewise.
416 * sem-compact.c, sem-compact-switch.c: Regenerate.
417 * sem-media.c, sem-media-switch.c: Likewise.
421 * sem-media.c, sem-media-switch.c: Regenerate.
425 * sh64.c (sh64_store_register): When storing a new PC, set ISA
426 mode based on the value of bit 0.
428 * sh64.c: Include "sim-sh64.h" for GDB interfacing.
429 (sh64_fetch_register): Implement.
430 (sh64_store_register): Likewise.
432 * sh64-sim.h (sh64_fmacs): Declare.
433 (sh64_ftrcdl, sh64_ftrcdq, sh64_ftrcsl): Likewise.
435 * sem-media.c, sem-media-switch.c: Regenerate.
439 * sh64-sim.h (sh64_compact_trapa): Renamed from sh64_trapa.
440 (sh64_trapa): Renamed from sh64_trap.
441 * sh64.c (sh64_trapa): Call sh64_compact_trapa for handling.
442 Apply renaming described above.
444 * decode-media.c, decode-media.h, defs-media.h: Regenerate.
445 * sem-media.c sem-media-switch.c: Likewise.
446 * sh-desc.c, sh-desc.h, sh-opc.h: Likewise.
450 * cpu.c, cpu.h, sh-desc.c: Regenerate.
451 * sem-media.c, sem-media-switch.c: Likewise.
452 * sem-compact.c, sem-compact-switch.c: Likewise.
453 * sh64-sim.h (sh64_ftrvs): Declare.
454 * sh64.c (sh64_ftrvs): Bug fixes.
456 * sh64.c (sh64_fcmpgtd): Fix order of arguments to sim_fpu_is_gt.
457 (sh64_fcmpgts): Likewise.
461 * decode-media.c, decode-media.h: Regenerate.
462 * defs-media.h: Likewise.
463 * sem-media.c, sem-media-switch.c: Likewise.
464 * sh-desc.c: Likewise.
468 * decode-media.c, decode-media.h: Regenerate.
469 * defs-media.h: Likewise.
470 * sem-media.c, sem-media-switch.c: Likewise.
474 * decode-media.c, decode-media.h: Regenerate.
475 * sem-media.c, sem-media-switch.c: Likewise.
477 * defs-media.h: Regenete.
478 * decode-compact.c, decode-media.c: Likewise.
482 * sh64.c (sh64_fcmpund): Return a BI.
483 (sh64_fcmpuns): Likewise.
484 (sh64_nsb): Treat source value as unsigned.
485 (sh64_compact_model_insn_before): New function.
486 (sh64_media_model_insn_before): Likewise.
487 (sh64_compact_model_insn_after): Likewise.
488 (sh64_media_model_insn_after): Likewise.
489 (sh_models): Use sh5_mach for "sh5".
490 * sh64-sim.h: Add missing function prototypes.
492 * cpu.c, cpu.h, defs-media.h, sh-desc.c: Regenerate.
493 * decode-media.c, decode-media.h: Likewise.
494 * sem-media.c, sem-media-switch.c: Likewise.
498 * mloop-compact.in, mloop-media.in: Use @prefix@.
499 * Makefile.in (stamp-mloop-compact): Pass -outfile-suffix option
500 to make generated files safe in the presence of parallel makes.
501 (stamp-mloop-media): Likewise.
503 * decode-media.c, defs-media.h: Regenerate.
507 * sh64-sim.h: Add function prototypes from sh64.c.
509 * Makefile.in (SH64_OBJS): Add ISA variant objects.
510 (SIM_EXTRA_DEPS): Do not depend on opcodes headers.
511 (SH64_INCLUDE_DEPS): Update for ISA variants.
512 (stamp-mloop-compact, stamp-mloop-media): New targets.
513 (decode-compact.o, sem-compact.o): New rules.
514 (decode-media.o, sem-media.o): Likewise.
515 (sh64-clean): Update.
516 (stamp-all, stamp-mloop, stamp-decode, stamp-defs): New targets.
517 (stamp-desc, stamp-cpu): Likewise.
518 (stamp-defs-compact, stamp-defs-media): Likewise.
519 (stamp-decode-compact, stamp-decode-media): Likewise.
521 * defs-compact.h, defs-media.h: Regenerate.
525 * sh64-sim.h (sh64_fcmpeqd, sh64_fcmpeqs): Declare.
526 (sh64_fcmpged, sh64_fcmpges): Likewise.
527 (sh64_fcmpgtd, sh64_fcmpgts): Likewise.
529 * sh64.c (sh64_endian): New function.
530 (sh64_fcmpeqd, sh64_fcmpeqs): Return a BI.
531 (sh64_fcmpged, sh64_fcmpges): Likewise.
532 (sh64_fcmpgtd, sh64_fcmpgts): Likewise.
533 (sh64_trap): Implement a basic syscall facility.
534 (sh64_trapa): Exit with return code in R5, not 0.
535 (sh64_model_sh5_u_exec): Remove.
536 (sh64_engine_run_full): New function.
537 (sh64_engine_run_fast): Likewise.
538 (shmedia_prepare_run): Likewise.
539 (shcompact_prepare_run): Likewise.
540 (sh64_get_idata): Likewise.
541 (sh64_init_cpu): Likewise.
542 (shmedia_init_cpu): Likewise.
543 (shcompact_init_cpu): Likewise.
544 (sh64_model_init): Likewise.
546 (sh5_imp_properties): Likewise.
547 (sh2_mach, sh3_mach, sh4_mach, sh5_mach): Define.
549 * sem-compact.c, sem-compact-switch.c: Regenerate.
553 * sh64-sim.h (sh64_endian): Declare.
554 * sim-main.h (sim_cia): Use UDI, not USI.
555 (WITH_PROFILE_MODEL_P): Remove.
556 * sim-if.c (sim_sh64_disassemble_insn): Remove.
557 (sh64_disassemble_insn): New function.
558 (sim_open): Use as this CPU's disassembler.
560 * decode.h (WITH_PROFILE_MODEL_P): Undefine.
562 * decode-compact.c, decode-media.c: Regenerate.
563 * defs-compact.h, defs-media.h: Likewise.
564 * sem-compact.c, sem-compact-switch.c: Likewise.
565 * sh-desc.c, sh-desc.h: Likewise.
566 * cpu.c, cpu.h, cpuall.h: Likewise.
570 * arch.c, sh-desc.c, sh-desc.h: Regenerate.
572 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
573 * configure.in (SIM_AC_OPTION_BIGENDIAN): Do not hard-wire a
574 target byte order, but default to big endian.
575 * configure: Regenerate.
579 * sim-main.h (WITH_PROFILE_MODEL_P): Define.
580 * sh64-sim.h (ISM_COMPACT, ISM_MEDIA): New enums.
582 * sh-desc.c, sh-desc.h: Regenerate.
583 * arch.c, cpu.h, cpuall.h: Regenerate.
584 * decode.h (WITH_PROFILE_MODEL_P): Remove.
586 * mloop-compact.in, mloop-media.in: New files.
587 * decode.h: Likewise.
591 * sem-compact.c, sem-compact-switch.c: Generate.
592 * sem-media.c, sem-media-switch.c: Likewise.
596 * sh-desc.c, sh-desc.h, sh-opc.h: Generate.
598 * arch.c, arch.h, cpuall.h, cpu.c, cpu.h: Generate.
599 * decode-compact.c, decode-compact.h: Likewise.
600 * decode-media.c, decode-media.h: Likewise.
601 * sh64-sim.h: New file.
602 * sim-main.h: Likewise.
606 * sim-if.c: New file.
611 * config.in: New file.
612 * tconfig.in: Likewise.
613 * configure.in: Likewise.
614 * configure: Generate.
615 * Makefile.in: New file.