1 2016-01-10 Mike Frysinger <vapier@gentoo.org>
3 * configure: Regenerate.
5 2016-01-10 Mike Frysinger <vapier@gentoo.org>
7 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
8 * configure: Regenerate.
10 2016-01-10 Mike Frysinger <vapier@gentoo.org>
12 * configure: Regenerate.
14 2016-01-10 Mike Frysinger <vapier@gentoo.org>
16 * configure: Regenerate.
18 2016-01-10 Mike Frysinger <vapier@gentoo.org>
20 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
21 * configure: Regenerate.
23 2016-01-10 Mike Frysinger <vapier@gentoo.org>
25 * configure: Regenerate.
27 2016-01-10 Mike Frysinger <vapier@gentoo.org>
29 * configure: Regenerate.
31 2016-01-09 Mike Frysinger <vapier@gentoo.org>
33 * config.in, configure: Regenerate.
35 2016-01-06 Mike Frysinger <vapier@gentoo.org>
37 * interp.c (sim_open): Mark argv const.
38 (sim_create_inferior): Mark argv and env const.
40 2016-01-04 Mike Frysinger <vapier@gentoo.org>
42 * configure: Regenerate.
44 2016-01-03 Mike Frysinger <vapier@gentoo.org>
46 * interp.c (sim_open): Update sim_parse_args comment.
48 2016-01-03 Mike Frysinger <vapier@gentoo.org>
50 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
51 * configure: Regenerate.
53 2016-01-02 Mike Frysinger <vapier@gentoo.org>
55 * configure.ac (SIM_AC_OPTION_ENDIAN): Change LITTLE_ENDIAN to
57 * configure: Regenerate.
59 2015-12-27 Mike Frysinger <vapier@gentoo.org>
61 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
63 2015-12-26 Mike Frysinger <vapier@gentoo.org>
65 * config.in, configure: Regenerate.
67 2015-12-24 Mike Frysinger <vapier@gentoo.org>
69 * sim-if.c (cris_option_install): Delete.
70 (sim_open): Call sim_add_option_table.
71 * tconfig.h: Delete sim-module.h include.
72 (MODULE_INSTALL_FN, MODULE_LIST): Delete.
74 2015-11-15 Mike Frysinger <vapier@gentoo.org>
76 * Makefile.in (SIM_OBJS): Delete sim-reason.o, sim-reg.o, and
79 2015-11-15 Mike Frysinger <vapier@gentoo.org>
81 * cr16_sim.h (cr16_callback): Delete.
82 * interp.c (cr16_callback): Delete.
83 (do_run): Delete cr16_callback. Replace
84 cr16_callback->printf_filtered with sim_io_printf.
85 (sim_open): Delete cr16_callback assignment.
86 (step_once, sim_create_inferior): Replace
87 cr16_callback->printf_filtered with sim_io_printf.
88 * simops.c (move_to_cr, trace_input_func, do_trace_output_flush,
89 do_trace_output_finish, trace_output_40, trace_output_32,
90 trace_output_16, trace_output_void, trace_output_flag): Replace
91 cr16_callback->printf_filtered with sim_io_printf and
92 cr16_callback->flush_stdout with sim_io_flush_stdout.
93 (OP_14C_14): Likewise. Rename cr16_callback to cb.
95 2015-11-15 Mike Frysinger <vapier@gentoo.org>
97 * Makefile.in (SIM_OBJS): Add sim-reason.o, sim-resume.o, and
99 * cr16_sim.h (struct _state): Delete exe and exception.
100 * interp.c (lookup_hash): Call sim_engine_halt instead of setting
102 (do_run): Delete unused s and func variables.
103 (stop_simulator, sim_stop, sim_stop_reason): Delete.
104 (sim_resume): Rename to ...
105 (step_once): ... this. Delete State.exception code and move
106 siggnal checking to sim_engine_run.
107 (sim_engine_run): New function.
108 * simops.c (EXCEPTION): Define.
109 (move_to_cr): Call EXCEPTION instead of setting State.exception.
110 (OP_1_4, OP_18_8, OP_10_10, OP_C0_8, OP_102_14, OP_148_14, OP_D_C,
111 OP_14_D, OP_15_D, OP_2C00_10, OP_16_D, OP_17_D, OP_31E_10, OP_6_10):
113 (OP_C_C): Likewise. Call sim_engine_halt instead of setting
115 (OP_0_20): Call sim_engine_halt instead of setting State.exception.
117 2015-11-15 Mike Frysinger <vapier@gentoo.org>
119 * Makefile.in (SIM_OBJS): Delete endian.o.
120 (INCLUDE): Delete endian.c.
121 * configure.ac (SIM_AC_OPTION_ENDIAN): Declare little endian.
122 (SIM_AC_OPTION_ALIGNMENT): release unaligned loads.
123 * configure: Regenerate.
124 * cr16_sim.h (IMAP_BLOCK_SIZE, DMAP_BLOCK_SIZE, SEGMENT_SIZE,
125 IMEM_SEGMENTS, DMEM_SEGMENTS, UMEM_SEGMENTS, cr16_memory, dmem_addr,
126 imem_addr, decode_pc, get_longword, get_word, write_word,
127 write_longword, READ_16): Delete.
128 (struct _state): Delete mem member.
129 (endian.c): Delete include.
130 (SB, RB, SW, RW, SLW): Rewrite to use sim-core functions.
131 (get_longword): New function.
132 (RLW): Rewrite to use get_longword.
133 * endian.c: Delete file.
134 * interp.c (map_memory, sim_size, last_segname, last_from, last_to,
135 IMAP0_OFFSET, DMAP0_OFFSET, DMAP2_SHADDOW, DMAP2_OFFSET,
136 dmap_register, imap_register, sim_cr16_translate_dmap_addr,
137 sim_cr16_translate_imap_addr, sim_cr16_translate_addr, map_memory,
138 xfer_mem, sim_write, sim_read, dmem_addr, imem_addr): Delete.
139 (do_run): Delete iaddr and replace imem_addr/get_longword with RW.
140 (sim_open): Call sim_do_commandf. Delete sim_size call.
141 (sim_resume): Delete iaddr and replace imem_addr/get_longword with
143 * simops.c (MEMPTR): Rewrite to use sim_core_trans_addr.
145 2015-11-15 Mike Frysinger <vapier@gentoo.org>
147 * cr16_sim.h (struct simops): Add SIM_DESC and SIM_CPU to func args.
148 (SET_CREG, SET_HW_CREG, SET_PSR_BIT): Pass sd and cpu to move_to_cr.
149 (dmem_addr, imem_addr, move_to_cr): Add SIM_DESC and SIM_CPU args.
150 (RB, SW, RW, SLW, RLW): Pass sd and cpu to dmem_addr.
151 * endian.c: Change cr16_sim.h include to sim-main.h.
152 * gencode.c: Likewise. Add SIM_DESC and SIM_CPU args to all OPs.
153 * interp.c (lookup_hash, map_memory, do_run, dmap_register,
154 imap_register, sim_cr16_translate_dmap_addr, xfer_mem,
155 sim_cr16_translate_imap_addr, sim_cr16_translate_addr): Add
156 SIM_DESC and SIM_CPU args and adjust all callers.
158 (sim_open): Do not assign trace_sd.
159 (sim_resume, sim_create_inferior): Set up cpu from the first one
161 (cr16_reg_store): Get sim state from cpu.
162 * simops.c (move_to_cr): Add SIM_DESC and SIM_CPU args.
163 (trace_input_func, trace_input, do_trace_output_finish,
164 do_trace_output_finish, trace_output_40, trace_output_32,
165 trace_output_16, trace_output_void, trace_output_flag): Add
167 (trace_input_func): Likewise. Change trace_sd to sd.
168 (OP_*): Add SIM_DESC and SIM_CPU args to all OP funcs.
170 2015-11-15 Mike Frysinger <vapier@gentoo.org>
172 * cr16_sim.h (get_longlong, write_longlong, WRITE_16, READ_64,
174 * endian.c (get_longlong, write_longlong): Likewise.
176 2015-11-15 Mike Frysinger <vapier@gentoo.org>
178 * Makefile.in (SIM_OBJS): Add sim-reg.o.
179 * interp.c (cr16_reg_fetch, cr16_reg_store): Add prototypes.
180 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
181 (cr16_extract_unsigned_integer, cr16_store_unsigned_integer):
182 New helper functions.
183 (sim_fetch_register): Rename to ...
184 (cr16_reg_fetch): ... this. Use cr16_store_unsigned_integer
185 to write out the updated register values.
186 (sim_store_register): Rename to ...
187 (cr16_reg_store): ... this. Use cr16_extract_unsigned_integer
188 to read in the updated register values.
190 2015-11-15 Mike Frysinger <vapier@gentoo.org>
192 * interp.c (sim_open): Delete sim_create_inferior call.
194 2015-11-14 Mike Frysinger <vapier@gentoo.org>
196 * interp.c (sim_close): Delete.
198 2015-11-10 Mike Frysinger <vapier@gentoo.org>
200 * interp.c (sim_cr16_translate_dmap_addr): Mark static.
201 (sim_cr16_translate_imap_addr): Likewise.
202 (sim_cr16_translate_addr): Likewise.
204 2015-06-23 Mike Frysinger <vapier@gentoo.org>
206 * configure: Regenerate.
208 2015-06-12 Mike Frysinger <vapier@gentoo.org>
210 * configure: Regenerate.
212 2015-06-12 Mike Frysinger <vapier@gentoo.org>
214 * configure: Regenerate.
216 2015-04-18 Mike Frysinger <vapier@gentoo.org>
218 * sim-main.h (SIM_CPU): Delete.
220 2015-04-18 Mike Frysinger <vapier@gentoo.org>
222 * sim-main.h (sim_cia): Delete.
224 2015-04-17 Mike Frysinger <vapier@gentoo.org>
226 * sim-main.h (CIA_GET, CIA_SET): Delete.
228 2015-04-17 Mike Frysinger <vapier@gentoo.org>
230 * interp.c (cr16_pc_get, cr16_pc_set): New functions.
231 (sim_open): Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
233 2015-04-15 Mike Frysinger <vapier@gentoo.org>
235 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
236 * sim-main.h (STATE_CPU): Delete.
238 2015-04-13 Mike Frysinger <vapier@gentoo.org>
240 * configure: Regenerate.
242 2015-04-06 Mike Frysinger <vapier@gentoo.org>
244 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
246 2015-04-01 Mike Frysinger <vapier@gentoo.org>
248 * interp.c (sim_set_profile, sim_set_profile_size): Delete.
250 2015-03-31 Mike Frysinger <vapier@gentoo.org>
252 * Makefile.in (simops.o): New rule.
254 2015-03-29 Mike Frysinger <vapier@gentoo.org>
256 * cr16_sim.h (text, text_start, text_end, prog_bfd): Delete.
257 (SEXT8, SEXT16, SEXT32): Undefine.
258 * interp.c: Delete run-sim.h and cr16_sim.h includes. Include
259 sim-main.h and sim-options.h.
260 (myname, sim_kind, init_text_p, prog_bfd_was_opened_p, prog_bfd,
261 text, text_start, text_end, decode_pc, sim_set_profile,
262 sim_set_profile_size, sim_set_trace, sim_info, sim_set_callbacks,
263 sim_trace, sim_complete_command, sim_do_command, sim_load): Delete.
264 (do_run): Delete prototype.
265 (INLINE): Delete define.
266 (do_run, xfer_mem): Pass in SIM_DESC. Set cr16_callback locally from
268 (sim_size): Mark static.
269 (sim_write, sim_read): Pass sd to xfer_mem.
270 (free_state): New function.
271 (trace_sd): Declare global variable.
272 (sim_open): Rewrite to use new common logic.
273 (sim_close): Delete body.
274 (sim_resume): Pass sd to do_run.
275 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
276 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
277 * sim-main.h: New file.
278 * simops.c: Change cr16_sim.h include to sim-main.h.
279 (trace_input_func): Rewrite pc checks to use trace_sd.
281 2015-03-29 Mike Frysinger <vapier@gentoo.org>
283 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
284 * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
285 ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
286 (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
288 2015-03-29 Mike Frysinger <vapier@gentoo.org>
290 * interp.c (old_segment_mapping, ins_type_counters, add_commas,
291 set_dmap_register, set_imap_register, HELD_SPI_IDX, HELD_SPU_IDX,
292 spu_register, spi_register, set_spi_register, set_spu_register):
294 (sim_cr16_translate_addr): Delete old_segment_mapping handling.
295 (sim_open): Likewise.
296 (sim_info): Delete function body.
298 2015-03-29 Mike Frysinger <vapier@gentoo.org>
300 * Makefile.in (gencode.o, cr16-opc.o): Add $(WARN_CFLAGS).
301 (gencode): Add $(BUILD_LDFLAGS).
302 * endian.c (get_word, get_longword, get_longlong, write_word,
303 write_longword, write_longlong): Convert old style prototypes.
304 * gencode.c: Include string.h.
305 (write_header): Convert old style prototype and fix printf format.
306 (write_template, write_opcodes): Likewise.
307 (check_opcodes): Mark static void and put behind #if 0.
308 * interp.c: Include inttypes.h and run-sim.h.
309 (add_commas): Delete prototype.
310 (decode_pc): Convert old style prototype.
311 (do_run): Change h->op compare to 0.
312 (add_commas, set_dmap_register, set_imap_register, HELD_SPI_IDX,
313 HELD_SPU_IDX, spu_register, spi_register, set_spi_register,
314 set_spu_register): Wrap in #if 0.
315 (sim_write, sim_read, sim_close, sim_stop, sim_set_callbacks,
316 sim_stop_reason, sim_fetch_register, sim_store_register,
317 sim_do_command): Convert old style prototypes.
318 (sim_create_inferior): Fix pointer cast to use uintptr_t.
319 * simops.c [HAVE_TIME_H]: Include time.h.
320 [HAVE_SYS_TIME_H]: Include sys/time.h.
321 [TARGET_SYS_utime]: Include utime.h.
322 [TARGET_SYS_wait]: Include sys/wait.h.
323 (strrchr): Delete prototype.
324 (cond_stat): Mark static.
325 (trace_input_func): Mark name static.
326 (trace_input_func, trace_output_void, trace_output_flag): Convert old style prototypes.
327 (trace_output_40): Wrap in #if 0.
328 (OP_*): Convert old style prototypes. Move trace_input call below
329 all variable decls. Initialize tmp to 0 when appropriate.
331 2015-03-29 Mike Frysinger <vapier@gentoo.org>
333 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DSIM_HAVE_ENVIRONMENT.
334 (interp.o, simops.o, endian.o, table.o): Delete rules.
335 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
336 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
337 SIM_AC_OPTION_INLINE.
338 * config.in, configure: Regenerate.
339 * interp.c (sim_trace): Define.
341 2015-03-16 Mike Frysinger <vapier@gentoo.org>
343 * config.in, configure: Regenerate.
345 2015-03-14 Mike Frysinger <vapier@gentoo.org>
347 * Makefile.in (SIM_EXTRA_CFLAGS): Add
348 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
349 (SIM_RUN_OBJS): Set to run.o.
351 2015-03-14 Mike Frysinger <vapier@gentoo.org>
353 * configure.ac (AC_CHECK_HEADERS): Delete.
354 * aclocal.m4, configure: Regenerate.
356 2014-08-19 Alan Modra <amodra@gmail.com>
358 * configure: Regenerate.
360 2014-08-15 Roland McGrath <mcgrathr@google.com>
362 * configure: Regenerate.
363 * config.in: Regenerate.
365 2014-03-10 Mike Frysinger <vapier@gentoo.org>
367 * interp.c (sim_do_command): Add const to cmd.
369 2014-03-05 Mike Frysinger <vapier@gentoo.org>
371 * interp.c (sim_load): Add const to prog.
373 2014-03-04 Mike Frysinger <vapier@gentoo.org>
375 * configure: Regenerate.
377 2013-09-23 Alan Modra <amodra@gmail.com>
379 * configure: Regenerate.
381 2013-06-03 Mike Frysinger <vapier@gentoo.org>
383 * aclocal.m4, configure: Regenerate.
385 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
387 * configure: Rebuild.
389 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
391 * cr16_sim.h: Add defines for TRAP handling.
392 * interp.c (sim_complete_command): New stub function.
393 * simops.c: Breakpoint handling code.
395 2012-06-17 Mike Frysinger <vapier@gentoo.org>
397 * interp.c: Include config.h first. Also include stdlib.h and
398 string.h so we can drop the sysdep.h include.
400 2012-06-15 Joel Brobecker <brobecker@adacore.com>
402 * config.in, configure: Regenerate.
404 2012-05-24 Pedro Alves <palves@redhat.com>
408 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
410 2012-03-24 Mike Frysinger <vapier@gentoo.org>
412 * aclocal.m4, config.in, configure: Regenerate.
414 2011-12-30 Mike Frysinger <vapier@gentoo.org>
417 * simops.c (OP_C_C): Only handle TARGET_SYS_fork, TARGET_SYS_execve,
418 TARGET_SYS_pipe, TARGET_SYS_rename, and TARGET_SYS_chown when they
421 2011-12-03 Mike Frysinger <vapier@gentoo.org>
423 * aclocal.m4: New file.
424 * configure: Regenerate.
426 2011-10-17 Mike Frysinger <vapier@gentoo.org>
428 * configure.ac: Change include to common/acinclude.m4.
430 2011-10-17 Mike Frysinger <vapier@gentoo.org>
432 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
433 call. Replace common.m4 include with SIM_AC_COMMON.
434 * configure: Regenerate.
436 2010-04-14 Mike Frysinger <vapier@gentoo.org>
438 * interp.c (sim_write): Add const to buffer arg.
440 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
442 * configure: Regenerate.
444 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
446 * config.in: Regenerate.
447 * configure: Likewise.
449 * configure: Regenerate.
451 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
453 * configure: Regenerate to track ../common/common.m4 changes.
456 * interp.c (hash): Remove incorrect prototype.
458 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
459 Daniel Jacobowitz <dan@codesourcery.com>
460 Joseph Myers <joseph@codesourcery.com>
462 * configure: Regenerate.
464 2008-05-02 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
466 * interp.c: Update the machine code decode algorithm using hash table.
467 * Makefile.in, cr16_sim.h, gencode.c and simops.c: Update for typos
468 and coding standards.
470 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
472 * ChangeLog, Makefile.in, configure, configure.in, cr16_sim.h,
473 gencode.c, interp.c, simops.c, endian.c: Created.