3 * configure: Regenerate.
7 * configure: Regenerate.
11 * configure: Regenerate.
15 * sim-main.h (SIM_CPU): Delete.
19 * sim-main.h (sim_cia): Delete.
23 * sim-main.h (CIA_GET, CIA_SET): Delete.
27 * interp.c (cr16_pc_get, cr16_pc_set): New functions.
28 (sim_open): Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
32 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
33 * sim-main.h (STATE_CPU): Delete.
37 * configure: Regenerate.
41 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
45 * interp.c (sim_set_profile, sim_set_profile_size): Delete.
49 * Makefile.in (simops.o): New rule.
53 * cr16_sim.h (text, text_start, text_end, prog_bfd): Delete.
54 (SEXT8, SEXT16, SEXT32): Undefine.
55 * interp.c: Delete run-sim.h and cr16_sim.h includes. Include
56 sim-main.h and sim-options.h.
57 (myname, sim_kind, init_text_p, prog_bfd_was_opened_p, prog_bfd,
58 text, text_start, text_end, decode_pc, sim_set_profile,
59 sim_set_profile_size, sim_set_trace, sim_info, sim_set_callbacks,
60 sim_trace, sim_complete_command, sim_do_command, sim_load): Delete.
61 (do_run): Delete prototype.
62 (INLINE): Delete define.
63 (do_run, xfer_mem): Pass in SIM_DESC. Set cr16_callback locally from
65 (sim_size): Mark static.
66 (sim_write, sim_read): Pass sd to xfer_mem.
67 (free_state): New function.
68 (trace_sd): Declare global variable.
69 (sim_open): Rewrite to use new common logic.
70 (sim_close): Delete body.
71 (sim_resume): Pass sd to do_run.
72 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
73 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
74 * sim-main.h: New file.
75 * simops.c: Change cr16_sim.h include to sim-main.h.
76 (trace_input_func): Rewrite pc checks to use trace_sd.
80 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
81 * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
82 ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
83 (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
87 * interp.c (old_segment_mapping, ins_type_counters, add_commas,
88 set_dmap_register, set_imap_register, HELD_SPI_IDX, HELD_SPU_IDX,
89 spu_register, spi_register, set_spi_register, set_spu_register):
91 (sim_cr16_translate_addr): Delete old_segment_mapping handling.
93 (sim_info): Delete function body.
97 * Makefile.in (gencode.o, cr16-opc.o): Add $(WARN_CFLAGS).
98 (gencode): Add $(BUILD_LDFLAGS).
99 * endian.c (get_word, get_longword, get_longlong, write_word,
100 write_longword, write_longlong): Convert old style prototypes.
101 * gencode.c: Include string.h.
102 (write_header): Convert old style prototype and fix printf format.
103 (write_template, write_opcodes): Likewise.
104 (check_opcodes): Mark static void and put behind #if 0.
105 * interp.c: Include inttypes.h and run-sim.h.
106 (add_commas): Delete prototype.
107 (decode_pc): Convert old style prototype.
108 (do_run): Change h->op compare to 0.
109 (add_commas, set_dmap_register, set_imap_register, HELD_SPI_IDX,
110 HELD_SPU_IDX, spu_register, spi_register, set_spi_register,
111 set_spu_register): Wrap in #if 0.
112 (sim_write, sim_read, sim_close, sim_stop, sim_set_callbacks,
113 sim_stop_reason, sim_fetch_register, sim_store_register,
114 sim_do_command): Convert old style prototypes.
115 (sim_create_inferior): Fix pointer cast to use uintptr_t.
116 * simops.c [HAVE_TIME_H]: Include time.h.
117 [HAVE_SYS_TIME_H]: Include sys/time.h.
118 [TARGET_SYS_utime]: Include utime.h.
119 [TARGET_SYS_wait]: Include sys/wait.h.
120 (strrchr): Delete prototype.
121 (cond_stat): Mark static.
122 (trace_input_func): Mark name static.
123 (trace_input_func, trace_output_void, trace_output_flag): Convert old style prototypes.
124 (trace_output_40): Wrap in #if 0.
125 (OP_*): Convert old style prototypes. Move trace_input call below
126 all variable decls. Initialize tmp to 0 when appropriate.
130 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DSIM_HAVE_ENVIRONMENT.
131 (interp.o, simops.o, endian.o, table.o): Delete rules.
132 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
133 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
134 SIM_AC_OPTION_INLINE.
135 * config.in, configure: Regenerate.
136 * interp.c (sim_trace): Define.
140 * config.in, configure: Regenerate.
144 * Makefile.in (SIM_EXTRA_CFLAGS): Add
145 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
146 (SIM_RUN_OBJS): Set to run.o.
150 * configure.ac (AC_CHECK_HEADERS): Delete.
151 * aclocal.m4, configure: Regenerate.
155 * configure: Regenerate.
159 * configure: Regenerate.
160 * config.in: Regenerate.
164 * interp.c (sim_do_command): Add const to cmd.
168 * interp.c (sim_load): Add const to prog.
172 * configure: Regenerate.
176 * configure: Regenerate.
180 * aclocal.m4, configure: Regenerate.
184 * configure: Rebuild.
188 * cr16_sim.h: Add defines for TRAP handling.
189 * interp.c (sim_complete_command): New stub function.
190 * simops.c: Breakpoint handling code.
194 * interp.c: Include config.h first. Also include stdlib.h and
195 string.h so we can drop the sysdep.h include.
199 * config.in, configure: Regenerate.
205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
209 * aclocal.m4, config.in, configure: Regenerate.
214 * simops.c (OP_C_C): Only handle TARGET_SYS_fork, TARGET_SYS_execve,
215 TARGET_SYS_pipe, TARGET_SYS_rename, and TARGET_SYS_chown when they
220 * aclocal.m4: New file.
221 * configure: Regenerate.
225 * configure.ac: Change include to common/acinclude.m4.
229 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
230 call. Replace common.m4 include with SIM_AC_COMMON.
231 * configure: Regenerate.
235 * interp.c (sim_write): Add const to buffer arg.
239 * configure: Regenerate.
243 * config.in: Regenerate.
244 * configure: Likewise.
246 * configure: Regenerate.
250 * configure: Regenerate to track ../common/common.m4 changes.
253 * interp.c (hash): Remove incorrect prototype.
259 * configure: Regenerate.
263 * interp.c: Update the machine code decode algorithm using hash table.
264 * Makefile.in, cr16_sim.h, gencode.c and simops.c: Update for typos
265 and coding standards.
269 * ChangeLog, Makefile.in, configure, configure.in, cr16_sim.h,
270 gencode.c, interp.c, simops.c, endian.c: Created.