1 2016-01-03 Mike Frysinger <vapier@gentoo.org>
3 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
4 * configure: Regenerate.
6 2016-01-02 Mike Frysinger <vapier@gentoo.org>
8 * configure.ac (SIM_AC_OPTION_ENDIAN): Change LITTLE_ENDIAN to
10 * configure: Regenerate.
12 2015-12-27 Mike Frysinger <vapier@gentoo.org>
14 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
16 2015-12-26 Mike Frysinger <vapier@gentoo.org>
18 * config.in, configure: Regenerate.
20 2015-12-24 Mike Frysinger <vapier@gentoo.org>
22 * sim-if.c (cris_option_install): Delete.
23 (sim_open): Call sim_add_option_table.
24 * tconfig.h: Delete sim-module.h include.
25 (MODULE_INSTALL_FN, MODULE_LIST): Delete.
27 2015-11-15 Mike Frysinger <vapier@gentoo.org>
29 * Makefile.in (SIM_OBJS): Delete sim-reason.o, sim-reg.o, and
32 2015-11-15 Mike Frysinger <vapier@gentoo.org>
34 * cr16_sim.h (cr16_callback): Delete.
35 * interp.c (cr16_callback): Delete.
36 (do_run): Delete cr16_callback. Replace
37 cr16_callback->printf_filtered with sim_io_printf.
38 (sim_open): Delete cr16_callback assignment.
39 (step_once, sim_create_inferior): Replace
40 cr16_callback->printf_filtered with sim_io_printf.
41 * simops.c (move_to_cr, trace_input_func, do_trace_output_flush,
42 do_trace_output_finish, trace_output_40, trace_output_32,
43 trace_output_16, trace_output_void, trace_output_flag): Replace
44 cr16_callback->printf_filtered with sim_io_printf and
45 cr16_callback->flush_stdout with sim_io_flush_stdout.
46 (OP_14C_14): Likewise. Rename cr16_callback to cb.
48 2015-11-15 Mike Frysinger <vapier@gentoo.org>
50 * Makefile.in (SIM_OBJS): Add sim-reason.o, sim-resume.o, and
52 * cr16_sim.h (struct _state): Delete exe and exception.
53 * interp.c (lookup_hash): Call sim_engine_halt instead of setting
55 (do_run): Delete unused s and func variables.
56 (stop_simulator, sim_stop, sim_stop_reason): Delete.
57 (sim_resume): Rename to ...
58 (step_once): ... this. Delete State.exception code and move
59 siggnal checking to sim_engine_run.
60 (sim_engine_run): New function.
61 * simops.c (EXCEPTION): Define.
62 (move_to_cr): Call EXCEPTION instead of setting State.exception.
63 (OP_1_4, OP_18_8, OP_10_10, OP_C0_8, OP_102_14, OP_148_14, OP_D_C,
64 OP_14_D, OP_15_D, OP_2C00_10, OP_16_D, OP_17_D, OP_31E_10, OP_6_10):
66 (OP_C_C): Likewise. Call sim_engine_halt instead of setting
68 (OP_0_20): Call sim_engine_halt instead of setting State.exception.
70 2015-11-15 Mike Frysinger <vapier@gentoo.org>
72 * Makefile.in (SIM_OBJS): Delete endian.o.
73 (INCLUDE): Delete endian.c.
74 * configure.ac (SIM_AC_OPTION_ENDIAN): Declare little endian.
75 (SIM_AC_OPTION_ALIGNMENT): release unaligned loads.
76 * configure: Regenerate.
77 * cr16_sim.h (IMAP_BLOCK_SIZE, DMAP_BLOCK_SIZE, SEGMENT_SIZE,
78 IMEM_SEGMENTS, DMEM_SEGMENTS, UMEM_SEGMENTS, cr16_memory, dmem_addr,
79 imem_addr, decode_pc, get_longword, get_word, write_word,
80 write_longword, READ_16): Delete.
81 (struct _state): Delete mem member.
82 (endian.c): Delete include.
83 (SB, RB, SW, RW, SLW): Rewrite to use sim-core functions.
84 (get_longword): New function.
85 (RLW): Rewrite to use get_longword.
86 * endian.c: Delete file.
87 * interp.c (map_memory, sim_size, last_segname, last_from, last_to,
88 IMAP0_OFFSET, DMAP0_OFFSET, DMAP2_SHADDOW, DMAP2_OFFSET,
89 dmap_register, imap_register, sim_cr16_translate_dmap_addr,
90 sim_cr16_translate_imap_addr, sim_cr16_translate_addr, map_memory,
91 xfer_mem, sim_write, sim_read, dmem_addr, imem_addr): Delete.
92 (do_run): Delete iaddr and replace imem_addr/get_longword with RW.
93 (sim_open): Call sim_do_commandf. Delete sim_size call.
94 (sim_resume): Delete iaddr and replace imem_addr/get_longword with
96 * simops.c (MEMPTR): Rewrite to use sim_core_trans_addr.
98 2015-11-15 Mike Frysinger <vapier@gentoo.org>
100 * cr16_sim.h (struct simops): Add SIM_DESC and SIM_CPU to func args.
101 (SET_CREG, SET_HW_CREG, SET_PSR_BIT): Pass sd and cpu to move_to_cr.
102 (dmem_addr, imem_addr, move_to_cr): Add SIM_DESC and SIM_CPU args.
103 (RB, SW, RW, SLW, RLW): Pass sd and cpu to dmem_addr.
104 * endian.c: Change cr16_sim.h include to sim-main.h.
105 * gencode.c: Likewise. Add SIM_DESC and SIM_CPU args to all OPs.
106 * interp.c (lookup_hash, map_memory, do_run, dmap_register,
107 imap_register, sim_cr16_translate_dmap_addr, xfer_mem,
108 sim_cr16_translate_imap_addr, sim_cr16_translate_addr): Add
109 SIM_DESC and SIM_CPU args and adjust all callers.
111 (sim_open): Do not assign trace_sd.
112 (sim_resume, sim_create_inferior): Set up cpu from the first one
114 (cr16_reg_store): Get sim state from cpu.
115 * simops.c (move_to_cr): Add SIM_DESC and SIM_CPU args.
116 (trace_input_func, trace_input, do_trace_output_finish,
117 do_trace_output_finish, trace_output_40, trace_output_32,
118 trace_output_16, trace_output_void, trace_output_flag): Add
120 (trace_input_func): Likewise. Change trace_sd to sd.
121 (OP_*): Add SIM_DESC and SIM_CPU args to all OP funcs.
123 2015-11-15 Mike Frysinger <vapier@gentoo.org>
125 * cr16_sim.h (get_longlong, write_longlong, WRITE_16, READ_64,
127 * endian.c (get_longlong, write_longlong): Likewise.
129 2015-11-15 Mike Frysinger <vapier@gentoo.org>
131 * Makefile.in (SIM_OBJS): Add sim-reg.o.
132 * interp.c (cr16_reg_fetch, cr16_reg_store): Add prototypes.
133 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
134 (cr16_extract_unsigned_integer, cr16_store_unsigned_integer):
135 New helper functions.
136 (sim_fetch_register): Rename to ...
137 (cr16_reg_fetch): ... this. Use cr16_store_unsigned_integer
138 to write out the updated register values.
139 (sim_store_register): Rename to ...
140 (cr16_reg_store): ... this. Use cr16_extract_unsigned_integer
141 to read in the updated register values.
143 2015-11-15 Mike Frysinger <vapier@gentoo.org>
145 * interp.c (sim_open): Delete sim_create_inferior call.
147 2015-11-14 Mike Frysinger <vapier@gentoo.org>
149 * interp.c (sim_close): Delete.
151 2015-11-10 Mike Frysinger <vapier@gentoo.org>
153 * interp.c (sim_cr16_translate_dmap_addr): Mark static.
154 (sim_cr16_translate_imap_addr): Likewise.
155 (sim_cr16_translate_addr): Likewise.
157 2015-06-23 Mike Frysinger <vapier@gentoo.org>
159 * configure: Regenerate.
161 2015-06-12 Mike Frysinger <vapier@gentoo.org>
163 * configure: Regenerate.
165 2015-06-12 Mike Frysinger <vapier@gentoo.org>
167 * configure: Regenerate.
169 2015-04-18 Mike Frysinger <vapier@gentoo.org>
171 * sim-main.h (SIM_CPU): Delete.
173 2015-04-18 Mike Frysinger <vapier@gentoo.org>
175 * sim-main.h (sim_cia): Delete.
177 2015-04-17 Mike Frysinger <vapier@gentoo.org>
179 * sim-main.h (CIA_GET, CIA_SET): Delete.
181 2015-04-17 Mike Frysinger <vapier@gentoo.org>
183 * interp.c (cr16_pc_get, cr16_pc_set): New functions.
184 (sim_open): Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
186 2015-04-15 Mike Frysinger <vapier@gentoo.org>
188 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
189 * sim-main.h (STATE_CPU): Delete.
191 2015-04-13 Mike Frysinger <vapier@gentoo.org>
193 * configure: Regenerate.
195 2015-04-06 Mike Frysinger <vapier@gentoo.org>
197 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
199 2015-04-01 Mike Frysinger <vapier@gentoo.org>
201 * interp.c (sim_set_profile, sim_set_profile_size): Delete.
203 2015-03-31 Mike Frysinger <vapier@gentoo.org>
205 * Makefile.in (simops.o): New rule.
207 2015-03-29 Mike Frysinger <vapier@gentoo.org>
209 * cr16_sim.h (text, text_start, text_end, prog_bfd): Delete.
210 (SEXT8, SEXT16, SEXT32): Undefine.
211 * interp.c: Delete run-sim.h and cr16_sim.h includes. Include
212 sim-main.h and sim-options.h.
213 (myname, sim_kind, init_text_p, prog_bfd_was_opened_p, prog_bfd,
214 text, text_start, text_end, decode_pc, sim_set_profile,
215 sim_set_profile_size, sim_set_trace, sim_info, sim_set_callbacks,
216 sim_trace, sim_complete_command, sim_do_command, sim_load): Delete.
217 (do_run): Delete prototype.
218 (INLINE): Delete define.
219 (do_run, xfer_mem): Pass in SIM_DESC. Set cr16_callback locally from
221 (sim_size): Mark static.
222 (sim_write, sim_read): Pass sd to xfer_mem.
223 (free_state): New function.
224 (trace_sd): Declare global variable.
225 (sim_open): Rewrite to use new common logic.
226 (sim_close): Delete body.
227 (sim_resume): Pass sd to do_run.
228 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
229 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
230 * sim-main.h: New file.
231 * simops.c: Change cr16_sim.h include to sim-main.h.
232 (trace_input_func): Rewrite pc checks to use trace_sd.
234 2015-03-29 Mike Frysinger <vapier@gentoo.org>
236 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
237 * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
238 ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
239 (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
241 2015-03-29 Mike Frysinger <vapier@gentoo.org>
243 * interp.c (old_segment_mapping, ins_type_counters, add_commas,
244 set_dmap_register, set_imap_register, HELD_SPI_IDX, HELD_SPU_IDX,
245 spu_register, spi_register, set_spi_register, set_spu_register):
247 (sim_cr16_translate_addr): Delete old_segment_mapping handling.
248 (sim_open): Likewise.
249 (sim_info): Delete function body.
251 2015-03-29 Mike Frysinger <vapier@gentoo.org>
253 * Makefile.in (gencode.o, cr16-opc.o): Add $(WARN_CFLAGS).
254 (gencode): Add $(BUILD_LDFLAGS).
255 * endian.c (get_word, get_longword, get_longlong, write_word,
256 write_longword, write_longlong): Convert old style prototypes.
257 * gencode.c: Include string.h.
258 (write_header): Convert old style prototype and fix printf format.
259 (write_template, write_opcodes): Likewise.
260 (check_opcodes): Mark static void and put behind #if 0.
261 * interp.c: Include inttypes.h and run-sim.h.
262 (add_commas): Delete prototype.
263 (decode_pc): Convert old style prototype.
264 (do_run): Change h->op compare to 0.
265 (add_commas, set_dmap_register, set_imap_register, HELD_SPI_IDX,
266 HELD_SPU_IDX, spu_register, spi_register, set_spi_register,
267 set_spu_register): Wrap in #if 0.
268 (sim_write, sim_read, sim_close, sim_stop, sim_set_callbacks,
269 sim_stop_reason, sim_fetch_register, sim_store_register,
270 sim_do_command): Convert old style prototypes.
271 (sim_create_inferior): Fix pointer cast to use uintptr_t.
272 * simops.c [HAVE_TIME_H]: Include time.h.
273 [HAVE_SYS_TIME_H]: Include sys/time.h.
274 [TARGET_SYS_utime]: Include utime.h.
275 [TARGET_SYS_wait]: Include sys/wait.h.
276 (strrchr): Delete prototype.
277 (cond_stat): Mark static.
278 (trace_input_func): Mark name static.
279 (trace_input_func, trace_output_void, trace_output_flag): Convert old style prototypes.
280 (trace_output_40): Wrap in #if 0.
281 (OP_*): Convert old style prototypes. Move trace_input call below
282 all variable decls. Initialize tmp to 0 when appropriate.
284 2015-03-29 Mike Frysinger <vapier@gentoo.org>
286 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DSIM_HAVE_ENVIRONMENT.
287 (interp.o, simops.o, endian.o, table.o): Delete rules.
288 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
289 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
290 SIM_AC_OPTION_INLINE.
291 * config.in, configure: Regenerate.
292 * interp.c (sim_trace): Define.
294 2015-03-16 Mike Frysinger <vapier@gentoo.org>
296 * config.in, configure: Regenerate.
298 2015-03-14 Mike Frysinger <vapier@gentoo.org>
300 * Makefile.in (SIM_EXTRA_CFLAGS): Add
301 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
302 (SIM_RUN_OBJS): Set to run.o.
304 2015-03-14 Mike Frysinger <vapier@gentoo.org>
306 * configure.ac (AC_CHECK_HEADERS): Delete.
307 * aclocal.m4, configure: Regenerate.
309 2014-08-19 Alan Modra <amodra@gmail.com>
311 * configure: Regenerate.
313 2014-08-15 Roland McGrath <mcgrathr@google.com>
315 * configure: Regenerate.
316 * config.in: Regenerate.
318 2014-03-10 Mike Frysinger <vapier@gentoo.org>
320 * interp.c (sim_do_command): Add const to cmd.
322 2014-03-05 Mike Frysinger <vapier@gentoo.org>
324 * interp.c (sim_load): Add const to prog.
326 2014-03-04 Mike Frysinger <vapier@gentoo.org>
328 * configure: Regenerate.
330 2013-09-23 Alan Modra <amodra@gmail.com>
332 * configure: Regenerate.
334 2013-06-03 Mike Frysinger <vapier@gentoo.org>
336 * aclocal.m4, configure: Regenerate.
338 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
340 * configure: Rebuild.
342 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
344 * cr16_sim.h: Add defines for TRAP handling.
345 * interp.c (sim_complete_command): New stub function.
346 * simops.c: Breakpoint handling code.
348 2012-06-17 Mike Frysinger <vapier@gentoo.org>
350 * interp.c: Include config.h first. Also include stdlib.h and
351 string.h so we can drop the sysdep.h include.
353 2012-06-15 Joel Brobecker <brobecker@adacore.com>
355 * config.in, configure: Regenerate.
357 2012-05-24 Pedro Alves <palves@redhat.com>
361 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
363 2012-03-24 Mike Frysinger <vapier@gentoo.org>
365 * aclocal.m4, config.in, configure: Regenerate.
367 2011-12-30 Mike Frysinger <vapier@gentoo.org>
370 * simops.c (OP_C_C): Only handle TARGET_SYS_fork, TARGET_SYS_execve,
371 TARGET_SYS_pipe, TARGET_SYS_rename, and TARGET_SYS_chown when they
374 2011-12-03 Mike Frysinger <vapier@gentoo.org>
376 * aclocal.m4: New file.
377 * configure: Regenerate.
379 2011-10-17 Mike Frysinger <vapier@gentoo.org>
381 * configure.ac: Change include to common/acinclude.m4.
383 2011-10-17 Mike Frysinger <vapier@gentoo.org>
385 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
386 call. Replace common.m4 include with SIM_AC_COMMON.
387 * configure: Regenerate.
389 2010-04-14 Mike Frysinger <vapier@gentoo.org>
391 * interp.c (sim_write): Add const to buffer arg.
393 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
395 * configure: Regenerate.
397 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
399 * config.in: Regenerate.
400 * configure: Likewise.
402 * configure: Regenerate.
404 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
406 * configure: Regenerate to track ../common/common.m4 changes.
409 * interp.c (hash): Remove incorrect prototype.
411 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
412 Daniel Jacobowitz <dan@codesourcery.com>
413 Joseph Myers <joseph@codesourcery.com>
415 * configure: Regenerate.
417 2008-05-02 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
419 * interp.c: Update the machine code decode algorithm using hash table.
420 * Makefile.in, cr16_sim.h, gencode.c and simops.c: Update for typos
421 and coding standards.
423 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
425 * ChangeLog, Makefile.in, configure, configure.in, cr16_sim.h,
426 gencode.c, interp.c, simops.c, endian.c: Created.