1 2015-12-24 Mike Frysinger <vapier@gentoo.org>
3 * sim-if.c (cris_option_install): Delete.
4 (sim_open): Call sim_add_option_table.
5 * tconfig.h: Delete sim-module.h include.
6 (MODULE_INSTALL_FN, MODULE_LIST): Delete.
8 2015-11-15 Mike Frysinger <vapier@gentoo.org>
10 * Makefile.in (SIM_OBJS): Delete sim-reason.o, sim-reg.o, and
13 2015-11-15 Mike Frysinger <vapier@gentoo.org>
15 * cr16_sim.h (cr16_callback): Delete.
16 * interp.c (cr16_callback): Delete.
17 (do_run): Delete cr16_callback. Replace
18 cr16_callback->printf_filtered with sim_io_printf.
19 (sim_open): Delete cr16_callback assignment.
20 (step_once, sim_create_inferior): Replace
21 cr16_callback->printf_filtered with sim_io_printf.
22 * simops.c (move_to_cr, trace_input_func, do_trace_output_flush,
23 do_trace_output_finish, trace_output_40, trace_output_32,
24 trace_output_16, trace_output_void, trace_output_flag): Replace
25 cr16_callback->printf_filtered with sim_io_printf and
26 cr16_callback->flush_stdout with sim_io_flush_stdout.
27 (OP_14C_14): Likewise. Rename cr16_callback to cb.
29 2015-11-15 Mike Frysinger <vapier@gentoo.org>
31 * Makefile.in (SIM_OBJS): Add sim-reason.o, sim-resume.o, and
33 * cr16_sim.h (struct _state): Delete exe and exception.
34 * interp.c (lookup_hash): Call sim_engine_halt instead of setting
36 (do_run): Delete unused s and func variables.
37 (stop_simulator, sim_stop, sim_stop_reason): Delete.
38 (sim_resume): Rename to ...
39 (step_once): ... this. Delete State.exception code and move
40 siggnal checking to sim_engine_run.
41 (sim_engine_run): New function.
42 * simops.c (EXCEPTION): Define.
43 (move_to_cr): Call EXCEPTION instead of setting State.exception.
44 (OP_1_4, OP_18_8, OP_10_10, OP_C0_8, OP_102_14, OP_148_14, OP_D_C,
45 OP_14_D, OP_15_D, OP_2C00_10, OP_16_D, OP_17_D, OP_31E_10, OP_6_10):
47 (OP_C_C): Likewise. Call sim_engine_halt instead of setting
49 (OP_0_20): Call sim_engine_halt instead of setting State.exception.
51 2015-11-15 Mike Frysinger <vapier@gentoo.org>
53 * Makefile.in (SIM_OBJS): Delete endian.o.
54 (INCLUDE): Delete endian.c.
55 * configure.ac (SIM_AC_OPTION_ENDIAN): Declare little endian.
56 (SIM_AC_OPTION_ALIGNMENT): release unaligned loads.
57 * configure: Regenerate.
58 * cr16_sim.h (IMAP_BLOCK_SIZE, DMAP_BLOCK_SIZE, SEGMENT_SIZE,
59 IMEM_SEGMENTS, DMEM_SEGMENTS, UMEM_SEGMENTS, cr16_memory, dmem_addr,
60 imem_addr, decode_pc, get_longword, get_word, write_word,
61 write_longword, READ_16): Delete.
62 (struct _state): Delete mem member.
63 (endian.c): Delete include.
64 (SB, RB, SW, RW, SLW): Rewrite to use sim-core functions.
65 (get_longword): New function.
66 (RLW): Rewrite to use get_longword.
67 * endian.c: Delete file.
68 * interp.c (map_memory, sim_size, last_segname, last_from, last_to,
69 IMAP0_OFFSET, DMAP0_OFFSET, DMAP2_SHADDOW, DMAP2_OFFSET,
70 dmap_register, imap_register, sim_cr16_translate_dmap_addr,
71 sim_cr16_translate_imap_addr, sim_cr16_translate_addr, map_memory,
72 xfer_mem, sim_write, sim_read, dmem_addr, imem_addr): Delete.
73 (do_run): Delete iaddr and replace imem_addr/get_longword with RW.
74 (sim_open): Call sim_do_commandf. Delete sim_size call.
75 (sim_resume): Delete iaddr and replace imem_addr/get_longword with
77 * simops.c (MEMPTR): Rewrite to use sim_core_trans_addr.
79 2015-11-15 Mike Frysinger <vapier@gentoo.org>
81 * cr16_sim.h (struct simops): Add SIM_DESC and SIM_CPU to func args.
82 (SET_CREG, SET_HW_CREG, SET_PSR_BIT): Pass sd and cpu to move_to_cr.
83 (dmem_addr, imem_addr, move_to_cr): Add SIM_DESC and SIM_CPU args.
84 (RB, SW, RW, SLW, RLW): Pass sd and cpu to dmem_addr.
85 * endian.c: Change cr16_sim.h include to sim-main.h.
86 * gencode.c: Likewise. Add SIM_DESC and SIM_CPU args to all OPs.
87 * interp.c (lookup_hash, map_memory, do_run, dmap_register,
88 imap_register, sim_cr16_translate_dmap_addr, xfer_mem,
89 sim_cr16_translate_imap_addr, sim_cr16_translate_addr): Add
90 SIM_DESC and SIM_CPU args and adjust all callers.
92 (sim_open): Do not assign trace_sd.
93 (sim_resume, sim_create_inferior): Set up cpu from the first one
95 (cr16_reg_store): Get sim state from cpu.
96 * simops.c (move_to_cr): Add SIM_DESC and SIM_CPU args.
97 (trace_input_func, trace_input, do_trace_output_finish,
98 do_trace_output_finish, trace_output_40, trace_output_32,
99 trace_output_16, trace_output_void, trace_output_flag): Add
101 (trace_input_func): Likewise. Change trace_sd to sd.
102 (OP_*): Add SIM_DESC and SIM_CPU args to all OP funcs.
104 2015-11-15 Mike Frysinger <vapier@gentoo.org>
106 * cr16_sim.h (get_longlong, write_longlong, WRITE_16, READ_64,
108 * endian.c (get_longlong, write_longlong): Likewise.
110 2015-11-15 Mike Frysinger <vapier@gentoo.org>
112 * Makefile.in (SIM_OBJS): Add sim-reg.o.
113 * interp.c (cr16_reg_fetch, cr16_reg_store): Add prototypes.
114 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
115 (cr16_extract_unsigned_integer, cr16_store_unsigned_integer):
116 New helper functions.
117 (sim_fetch_register): Rename to ...
118 (cr16_reg_fetch): ... this. Use cr16_store_unsigned_integer
119 to write out the updated register values.
120 (sim_store_register): Rename to ...
121 (cr16_reg_store): ... this. Use cr16_extract_unsigned_integer
122 to read in the updated register values.
124 2015-11-15 Mike Frysinger <vapier@gentoo.org>
126 * interp.c (sim_open): Delete sim_create_inferior call.
128 2015-11-14 Mike Frysinger <vapier@gentoo.org>
130 * interp.c (sim_close): Delete.
132 2015-11-10 Mike Frysinger <vapier@gentoo.org>
134 * interp.c (sim_cr16_translate_dmap_addr): Mark static.
135 (sim_cr16_translate_imap_addr): Likewise.
136 (sim_cr16_translate_addr): Likewise.
138 2015-06-23 Mike Frysinger <vapier@gentoo.org>
140 * configure: Regenerate.
142 2015-06-12 Mike Frysinger <vapier@gentoo.org>
144 * configure: Regenerate.
146 2015-06-12 Mike Frysinger <vapier@gentoo.org>
148 * configure: Regenerate.
150 2015-04-18 Mike Frysinger <vapier@gentoo.org>
152 * sim-main.h (SIM_CPU): Delete.
154 2015-04-18 Mike Frysinger <vapier@gentoo.org>
156 * sim-main.h (sim_cia): Delete.
158 2015-04-17 Mike Frysinger <vapier@gentoo.org>
160 * sim-main.h (CIA_GET, CIA_SET): Delete.
162 2015-04-17 Mike Frysinger <vapier@gentoo.org>
164 * interp.c (cr16_pc_get, cr16_pc_set): New functions.
165 (sim_open): Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
167 2015-04-15 Mike Frysinger <vapier@gentoo.org>
169 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
170 * sim-main.h (STATE_CPU): Delete.
172 2015-04-13 Mike Frysinger <vapier@gentoo.org>
174 * configure: Regenerate.
176 2015-04-06 Mike Frysinger <vapier@gentoo.org>
178 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
180 2015-04-01 Mike Frysinger <vapier@gentoo.org>
182 * interp.c (sim_set_profile, sim_set_profile_size): Delete.
184 2015-03-31 Mike Frysinger <vapier@gentoo.org>
186 * Makefile.in (simops.o): New rule.
188 2015-03-29 Mike Frysinger <vapier@gentoo.org>
190 * cr16_sim.h (text, text_start, text_end, prog_bfd): Delete.
191 (SEXT8, SEXT16, SEXT32): Undefine.
192 * interp.c: Delete run-sim.h and cr16_sim.h includes. Include
193 sim-main.h and sim-options.h.
194 (myname, sim_kind, init_text_p, prog_bfd_was_opened_p, prog_bfd,
195 text, text_start, text_end, decode_pc, sim_set_profile,
196 sim_set_profile_size, sim_set_trace, sim_info, sim_set_callbacks,
197 sim_trace, sim_complete_command, sim_do_command, sim_load): Delete.
198 (do_run): Delete prototype.
199 (INLINE): Delete define.
200 (do_run, xfer_mem): Pass in SIM_DESC. Set cr16_callback locally from
202 (sim_size): Mark static.
203 (sim_write, sim_read): Pass sd to xfer_mem.
204 (free_state): New function.
205 (trace_sd): Declare global variable.
206 (sim_open): Rewrite to use new common logic.
207 (sim_close): Delete body.
208 (sim_resume): Pass sd to do_run.
209 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
210 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
211 * sim-main.h: New file.
212 * simops.c: Change cr16_sim.h include to sim-main.h.
213 (trace_input_func): Rewrite pc checks to use trace_sd.
215 2015-03-29 Mike Frysinger <vapier@gentoo.org>
217 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
218 * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
219 ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
220 (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
222 2015-03-29 Mike Frysinger <vapier@gentoo.org>
224 * interp.c (old_segment_mapping, ins_type_counters, add_commas,
225 set_dmap_register, set_imap_register, HELD_SPI_IDX, HELD_SPU_IDX,
226 spu_register, spi_register, set_spi_register, set_spu_register):
228 (sim_cr16_translate_addr): Delete old_segment_mapping handling.
229 (sim_open): Likewise.
230 (sim_info): Delete function body.
232 2015-03-29 Mike Frysinger <vapier@gentoo.org>
234 * Makefile.in (gencode.o, cr16-opc.o): Add $(WARN_CFLAGS).
235 (gencode): Add $(BUILD_LDFLAGS).
236 * endian.c (get_word, get_longword, get_longlong, write_word,
237 write_longword, write_longlong): Convert old style prototypes.
238 * gencode.c: Include string.h.
239 (write_header): Convert old style prototype and fix printf format.
240 (write_template, write_opcodes): Likewise.
241 (check_opcodes): Mark static void and put behind #if 0.
242 * interp.c: Include inttypes.h and run-sim.h.
243 (add_commas): Delete prototype.
244 (decode_pc): Convert old style prototype.
245 (do_run): Change h->op compare to 0.
246 (add_commas, set_dmap_register, set_imap_register, HELD_SPI_IDX,
247 HELD_SPU_IDX, spu_register, spi_register, set_spi_register,
248 set_spu_register): Wrap in #if 0.
249 (sim_write, sim_read, sim_close, sim_stop, sim_set_callbacks,
250 sim_stop_reason, sim_fetch_register, sim_store_register,
251 sim_do_command): Convert old style prototypes.
252 (sim_create_inferior): Fix pointer cast to use uintptr_t.
253 * simops.c [HAVE_TIME_H]: Include time.h.
254 [HAVE_SYS_TIME_H]: Include sys/time.h.
255 [TARGET_SYS_utime]: Include utime.h.
256 [TARGET_SYS_wait]: Include sys/wait.h.
257 (strrchr): Delete prototype.
258 (cond_stat): Mark static.
259 (trace_input_func): Mark name static.
260 (trace_input_func, trace_output_void, trace_output_flag): Convert old style prototypes.
261 (trace_output_40): Wrap in #if 0.
262 (OP_*): Convert old style prototypes. Move trace_input call below
263 all variable decls. Initialize tmp to 0 when appropriate.
265 2015-03-29 Mike Frysinger <vapier@gentoo.org>
267 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DSIM_HAVE_ENVIRONMENT.
268 (interp.o, simops.o, endian.o, table.o): Delete rules.
269 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
270 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
271 SIM_AC_OPTION_INLINE.
272 * config.in, configure: Regenerate.
273 * interp.c (sim_trace): Define.
275 2015-03-16 Mike Frysinger <vapier@gentoo.org>
277 * config.in, configure: Regenerate.
279 2015-03-14 Mike Frysinger <vapier@gentoo.org>
281 * Makefile.in (SIM_EXTRA_CFLAGS): Add
282 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
283 (SIM_RUN_OBJS): Set to run.o.
285 2015-03-14 Mike Frysinger <vapier@gentoo.org>
287 * configure.ac (AC_CHECK_HEADERS): Delete.
288 * aclocal.m4, configure: Regenerate.
290 2014-08-19 Alan Modra <amodra@gmail.com>
292 * configure: Regenerate.
294 2014-08-15 Roland McGrath <mcgrathr@google.com>
296 * configure: Regenerate.
297 * config.in: Regenerate.
299 2014-03-10 Mike Frysinger <vapier@gentoo.org>
301 * interp.c (sim_do_command): Add const to cmd.
303 2014-03-05 Mike Frysinger <vapier@gentoo.org>
305 * interp.c (sim_load): Add const to prog.
307 2014-03-04 Mike Frysinger <vapier@gentoo.org>
309 * configure: Regenerate.
311 2013-09-23 Alan Modra <amodra@gmail.com>
313 * configure: Regenerate.
315 2013-06-03 Mike Frysinger <vapier@gentoo.org>
317 * aclocal.m4, configure: Regenerate.
319 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
321 * configure: Rebuild.
323 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
325 * cr16_sim.h: Add defines for TRAP handling.
326 * interp.c (sim_complete_command): New stub function.
327 * simops.c: Breakpoint handling code.
329 2012-06-17 Mike Frysinger <vapier@gentoo.org>
331 * interp.c: Include config.h first. Also include stdlib.h and
332 string.h so we can drop the sysdep.h include.
334 2012-06-15 Joel Brobecker <brobecker@adacore.com>
336 * config.in, configure: Regenerate.
338 2012-05-24 Pedro Alves <palves@redhat.com>
342 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
344 2012-03-24 Mike Frysinger <vapier@gentoo.org>
346 * aclocal.m4, config.in, configure: Regenerate.
348 2011-12-30 Mike Frysinger <vapier@gentoo.org>
351 * simops.c (OP_C_C): Only handle TARGET_SYS_fork, TARGET_SYS_execve,
352 TARGET_SYS_pipe, TARGET_SYS_rename, and TARGET_SYS_chown when they
355 2011-12-03 Mike Frysinger <vapier@gentoo.org>
357 * aclocal.m4: New file.
358 * configure: Regenerate.
360 2011-10-17 Mike Frysinger <vapier@gentoo.org>
362 * configure.ac: Change include to common/acinclude.m4.
364 2011-10-17 Mike Frysinger <vapier@gentoo.org>
366 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
367 call. Replace common.m4 include with SIM_AC_COMMON.
368 * configure: Regenerate.
370 2010-04-14 Mike Frysinger <vapier@gentoo.org>
372 * interp.c (sim_write): Add const to buffer arg.
374 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
376 * configure: Regenerate.
378 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
380 * config.in: Regenerate.
381 * configure: Likewise.
383 * configure: Regenerate.
385 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
387 * configure: Regenerate to track ../common/common.m4 changes.
390 * interp.c (hash): Remove incorrect prototype.
392 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
393 Daniel Jacobowitz <dan@codesourcery.com>
394 Joseph Myers <joseph@codesourcery.com>
396 * configure: Regenerate.
398 2008-05-02 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
400 * interp.c: Update the machine code decode algorithm using hash table.
401 * Makefile.in, cr16_sim.h, gencode.c and simops.c: Update for typos
402 and coding standards.
404 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
406 * ChangeLog, Makefile.in, configure, configure.in, cr16_sim.h,
407 gencode.c, interp.c, simops.c, endian.c: Created.