1 2021-02-13 Mike Frysinger <vapier@gentoo.org>
3 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
4 * aclocal.m4, configure: Regenerate.
6 2021-02-06 Mike Frysinger <vapier@gentoo.org>
8 * configure: Regenerate.
10 2021-01-11 Mike Frysinger <vapier@gentoo.org>
12 * config.in, configure: Regenerate.
13 * interp.c, simops.c: Delete HAVE_STRING_H, HAVE_STRINGS_H,
14 HAVE_STDLIB_H, and strings.h include.
16 2021-01-09 Mike Frysinger <vapier@gentoo.org>
18 * d10v_sim.h (State): Change to an extern.
19 * interp.c (State): Define.
21 2021-01-09 Mike Frysinger <vapier@gentoo.org>
23 * configure: Regenerate.
25 2021-01-09 Mike Frysinger <vapier@gentoo.org>
27 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
28 * configure: Regenerate.
30 2021-01-08 Mike Frysinger <vapier@gentoo.org>
32 * configure: Regenerate.
34 2021-01-04 Mike Frysinger <vapier@gentoo.org>
36 * configure: Regenerate.
38 2017-09-06 John Baldwin <jhb@FreeBSD.org>
40 * configure: Regenerate.
42 2016-01-10 Mike Frysinger <vapier@gentoo.org>
44 * config.in, configure: Regenerate.
46 2016-01-10 Mike Frysinger <vapier@gentoo.org>
48 * configure: Regenerate.
50 2016-01-10 Mike Frysinger <vapier@gentoo.org>
52 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
53 * configure: Regenerate.
55 2016-01-10 Mike Frysinger <vapier@gentoo.org>
57 * configure: Regenerate.
59 2016-01-10 Mike Frysinger <vapier@gentoo.org>
61 * configure: Regenerate.
63 2016-01-10 Mike Frysinger <vapier@gentoo.org>
65 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
66 * configure: Regenerate.
68 2016-01-10 Mike Frysinger <vapier@gentoo.org>
70 * configure: Regenerate.
72 2016-01-10 Mike Frysinger <vapier@gentoo.org>
74 * configure: Regenerate.
76 2016-01-09 Mike Frysinger <vapier@gentoo.org>
78 * config.in, configure: Regenerate.
80 2016-01-06 Mike Frysinger <vapier@gentoo.org>
82 * interp.c (sim_open): Mark argv const.
83 (sim_create_inferior): Mark argv and env const.
85 2016-01-04 Mike Frysinger <vapier@gentoo.org>
87 * endian.c (get_word): Delete all arch/big endian logic.
88 (get_longword, write_word, write_longword): Likewise.
90 2016-01-03 Mike Frysinger <vapier@gentoo.org>
92 * interp.c (sim_open): Update sim_parse_args comment.
94 2016-01-03 Mike Frysinger <vapier@gentoo.org>
96 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
97 * configure: Regenerate.
99 2016-01-02 Mike Frysinger <vapier@gentoo.org>
101 * configure: Regenerate.
103 2015-12-30 Mike Frysinger <vapier@gentoo.org>
105 * wrapper.c (d10v_reg_store, d10v_reg_fetch): Define.
106 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
107 (sim_store_register): Rename to ...
108 (d10v_reg_store): ... this. Rename cpu to sd.
109 (sim_fetch_register): Rename to ...
110 (d10v_reg_fetch): ... this. Rename cpu to sd.
112 2015-12-27 Mike Frysinger <vapier@gentoo.org>
114 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
116 2015-12-26 Mike Frysinger <vapier@gentoo.org>
118 * config.in, configure: Regenerate.
120 2015-11-15 Mike Frysinger <vapier@gentoo.org>
122 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
124 2015-11-15 Mike Frysinger <vapier@gentoo.org>
126 * interp.c (sim_open): Delete sim_create_inferior call.
128 2015-11-15 Mike Frysinger <vapier@gentoo.org>
130 * d10v_sim.h (d10v_callback): Delete.
131 * interp.c (d10v_callback): Delete.
132 (do_long, do_2_short, do_parallel, set_dmap_register,
133 set_imap_register, xfer_mem, dmem_addr, imem_addr, sim_info,
134 sim_create_inferior): Replace d10v_callback->printf_filtered
136 (sim_open): Delete d10v_callback assignment.
137 * simops.c (move_to_cr, trace_input_func, do_trace_output_flush,
138 do_trace_output_finish, trace_output_40, trace_output_32,
139 trace_output_16, trace_output_void, trace_output_flag, OP_5F20,
140 OP_5201, OP_27000000, OP_3220, OP_3400, OP_3000, OP_6C1F, OP_6C01,
141 OP_6E1F, OP_6E01): Replace d10v_callback->printf_filtered with
142 sim_io_printf and d10v_callback->flush_stdout with
144 (OP_5F00): Likewise. Rename d10v_callback to cb.
146 2015-11-15 Mike Frysinger <vapier@gentoo.org>
148 * Makefile.in (SIM_OBJS): Add sim-reason.o, sim-resume.o, and
150 * d10v_sim.h (struct d10v_memory): Delete fault member.
151 (struct _state): Delete exception member.
152 * interp.c (lookup_hash): Call sim_engine_halt instead of setting
154 (do_2_short, do_parallel): Delete State.exception checks.
155 (sim_size): Mark static.
156 (map_memory): Call sim_engine_halt instead of returning fault.
157 Call xcalloc instead of calloc and checking the return.
158 (dmem_addr): Call sim_engine_halt when phys_size is 0.
159 (imem_addr): Likewise.
160 (stop_simulator, sim_stop, sim_stop_reason): Delete.
161 (sim_resume): Rename to ...
162 (step_once): ... this. Delete State.exception code and move
163 siggnal checking to sim_engine_run.
164 (sim_engine_run): New function.
165 * simops.c (EXCEPTION): Define.
166 (move_to_cr): Call EXCEPTION instead of setting State.exception.
167 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
168 OP_6601, OP_6201, OP_6200, OP_33010000, OP_5201, OP_27000000,
169 OP_2F000000, OP_3220, OP_3200, OP_3400, OP_3000, OP_34000000,
170 OP_6800, OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000,
171 OP_6A00, OP_6E1F, OP_6A01, OP_6E01, OP_37010000, OP_5FE0): Likewise.
172 (OP_5F20): Call sim_engine_halt instead of setting State.exception.
173 (OP_5F00): Call sim_engine_halt and EXCEPTION instead of setting
176 2015-11-15 Mike Frysinger <vapier@gentoo.org>
178 * d10v_sim.h (struct simops): Add SIM_DESC and SIM_CPU to func args.
179 (SET_CREG, SET_HW_CREG, SET_PSW_BIT): Pass sd and cpu to move_to_cr.
180 (dmem_addr, imem_addr, move_to_cr): Add SIM_DESC and SIM_CPU args.
181 (RB, SW, RW, SLW, RLW): Pass sd and cpu to dmem_addr.
182 * endian.c: Change d10v_sim.h include to sim-main.h.
183 * gencode.c: Likewise. Add SIM_DESC and SIM_CPU args to all OPs.
184 * interp.c (lookup_hash, do_long, do_2_short, do_parallel,
185 map_memory, set_dmap_register, dmap_register, set_imap_register,
186 imap_register, sim_d10v_translate_dmap_addr, xfer_mem,
187 sim_d10v_translate_imap_addr, sim_d10v_translate_addr): Add
188 SIM_DESC and SIM_CPU args and adjust all callers.
190 (sim_open): Do not assign trace_sd.
191 (sim_resume, sim_create_inferior, sim_fetch_register,
192 sim_store_register): Set up cpu from the first one in sd.
193 * simops.c (move_to_cr): Add SIM_DESC and SIM_CPU args.
194 (trace_input_func, trace_input, do_trace_output_finish,
195 do_trace_output_finish, trace_output_40, trace_output_32,
196 trace_output_16, trace_output_void, trace_output_flag): Add
198 (trace_input_func): Likewise. Change trace_sd to sd.
199 (OP_*): Add SIM_DESC and SIM_CPU args to all OP funcs.
201 2015-11-14 Mike Frysinger <vapier@gentoo.org>
203 * interp.c (sim_close): Delete.
205 2015-11-10 Mike Frysinger <vapier@gentoo.org>
207 * interp.c (sim_d10v_translate_dmap_addr): Mark static.
208 (sim_d10v_translate_imap_addr): Likewise.
209 (sim_d10v_translate_addr): Likewise.
211 2015-06-23 Mike Frysinger <vapier@gentoo.org>
213 * configure: Regenerate.
215 2015-06-12 Mike Frysinger <vapier@gentoo.org>
217 * configure: Regenerate.
219 2015-06-12 Mike Frysinger <vapier@gentoo.org>
221 * configure: Regenerate.
223 2015-04-18 Mike Frysinger <vapier@gentoo.org>
225 * sim-main.h (SIM_CPU): Delete.
227 2015-04-18 Mike Frysinger <vapier@gentoo.org>
229 * sim-main.h (sim_cia): Delete.
231 2015-04-17 Mike Frysinger <vapier@gentoo.org>
233 * sim-main.h (CIA_GET, CIA_SET): Delete.
235 2015-04-17 Mike Frysinger <vapier@gentoo.org>
237 * interp.c (d10v_pc_get, d10v_pc_set): New functions.
238 (sim_open): Declare new local var i. Call CPU_PC_FETCH &
239 CPU_PC_STORE for all cpus.
241 2015-04-15 Mike Frysinger <vapier@gentoo.org>
243 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
244 * sim-main.h (STATE_CPU): Delete.
246 2015-04-13 Mike Frysinger <vapier@gentoo.org>
248 * configure: Regenerate.
250 2015-04-06 Mike Frysinger <vapier@gentoo.org>
252 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
254 2015-04-02 Mike Frysinger <vapier@gentoo.org>
256 * interp.c (lookup_hash): Change SIGILL to GDB_SIGNAL_ILL.
257 (sim_resume): Change SIGBUS/SIGSEGV to GDB_SIGNAL_BUS, SIGILL to
258 GDB_SIGNAL_ILL, and SIGTRAP to GDB_SIGNAL_TRAP.
260 2015-04-01 Mike Frysinger <vapier@gentoo.org>
262 * interp.c (sim_set_profile, sim_set_profile_size): Delete.
264 2015-03-31 Mike Frysinger <vapier@gentoo.org>
266 * Makefile.in (simops.o): New rule.
268 2015-03-30 Mike Frysinger <vapier@gentoo.org>
270 * d10v_sim.h (text, text_start, text_end, prog_bfd): Delete.
271 (SEXT8, SEXT16, SEXT32, MASK32): Undefine.
272 * interp.c: Delete run-sim.h and d10v_sim.h includes. Include
273 sim-main.h and sim-options.h.
274 (myname, sim_kind, init_text_p, prog_bfd_was_opened_p, prog_bfd,
275 text, text_start, text_end, decode_pc, sim_set_profile,
276 sim_set_profile_size, sim_set_trace, sim_set_callbacks,
277 sim_trace, sim_do_command, sim_load): Delete.
278 (INLINE): Delete define.
279 (free_state): New function.
280 (trace_sd): Declare global variable.
281 (sim_open): Rewrite to use new common logic.
282 (sim_close): Delete body.
283 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
284 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
285 * sim-main.h: New file.
286 * simops.c: Change d10v_sim.h include to sim-main.h.
287 (trace_input_func): Rewrite pc checks to use trace_sd.
289 2015-03-30 Mike Frysinger <vapier@gentoo.org>
291 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
292 * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
293 ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
294 (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
296 2015-03-30 Mike Frysinger <vapier@gentoo.org>
298 * Makefile.in (gencode.o, d10v-opc.o): Add $(WARN_CFLAGS).
299 (gencode): Add $(BUILD_LDFLAGS).
300 * endian.c (get_word, get_longword, get_longlong, write_word,
301 write_longword, write_longlong): Convert old style prototypes.
302 * gencode.c: Include string.h.
303 (main): Convert old style prototype.
304 (write_header): Convert old style prototype and fix printf format.
305 (write_template, write_opcodes): Likewise.
306 (check_opcodes): Mark static void.
307 * interp.c: Include inttypes.h and run-sim.h.
308 (hash, lookup_hash, decode_pc, do_long, do_2_short, do_parallel,
309 add_commas, sim_size, sim_write, sim_read, sim_open, sim_close,
310 sim_set_profile, sim_set_profile_size, sim_stop, +sim_resume,
311 sim_info, sim_set_callbacks, sim_stop_reason, sim_fetch_register,
312 sim_store_register, sim_do_command, sim_load): Convert old style
314 (sim_create_inferior): Fix pointer cast to use uintptr_t.
315 * simops.c (strrchr): Delete prototype.
316 (trace_input_func): Mark name static.
317 (trace_input_func, trace_output_void, trace_output_flag): Convert old style
319 (OP_*): Convert old style prototypes.
321 2015-03-30 Mike Frysinger <vapier@gentoo.org>
323 * Makefile.in (interp.o, simops.o, endian.o, table.o): Delete rules.
324 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
325 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
326 SIM_AC_OPTION_INLINE.
327 * config.in, configure: Regenerate.
328 * interp.c (sim_trace): Define.
330 2015-03-16 Mike Frysinger <vapier@gentoo.org>
332 * config.in, configure: Regenerate.
334 2015-03-14 Mike Frysinger <vapier@gentoo.org>
336 * Makefile.in (SIM_EXTRA_CFLAGS): Add
337 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
338 (SIM_RUN_OBJS): Set to run.o.
340 2015-03-14 Mike Frysinger <vapier@gentoo.org>
342 * configure.ac (AC_CHECK_HEADERS): Delete.
343 * aclocal.m4, configure: Regenerate.
345 2014-08-19 Alan Modra <amodra@gmail.com>
347 * configure: Regenerate.
349 2014-08-15 Roland McGrath <mcgrathr@google.com>
351 * configure: Regenerate.
352 * config.in: Regenerate.
354 2014-03-10 Mike Frysinger <vapier@gentoo.org>
356 * interp.c (sim_do_command): Add const to cmd.
358 2014-03-05 Mike Frysinger <vapier@gentoo.org>
360 * interp.c (sim_load): Add const to prog.
362 2014-03-04 Mike Frysinger <vapier@gentoo.org>
364 * configure: Regenerate.
366 2013-09-23 Alan Modra <amodra@gmail.com>
368 * configure: Regenerate.
370 2013-06-03 Mike Frysinger <vapier@gentoo.org>
372 * aclocal.m4, configure: Regenerate.
374 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
376 * configure: Rebuild.
378 2012-06-19 Joel Brobecker <brobecker@adacore.com>
380 * interp.c: #include "config.h" instead of "sysdep.h".
381 Add conditional include of string.h or strings.h, as well as
382 conditional include of stdlib.h.
384 2012-06-15 Joel Brobecker <brobecker@adacore.com>
386 * config.in, configure: Regenerate.
388 2012-05-24 Pedro Alves <palves@redhat.com>
392 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
394 2012-03-24 Mike Frysinger <vapier@gentoo.org>
396 * aclocal.m4, config.in, configure: Regenerate.
398 2011-12-03 Mike Frysinger <vapier@gentoo.org>
400 * aclocal.m4: New file.
401 * configure: Regenerate.
403 2011-10-17 Mike Frysinger <vapier@gentoo.org>
405 * configure.ac: Change include to common/acinclude.m4.
407 2011-10-17 Mike Frysinger <vapier@gentoo.org>
409 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
410 call. Replace common.m4 include with SIM_AC_COMMON.
411 * configure: Regenerate.
413 2010-04-14 Mike Frysinger <vapier@gentoo.org>
415 * interp.c (sim_write): Add const to buffer arg.
417 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
419 * configure: Regenerate.
421 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
423 * config.in: Regenerate.
424 * configure: Likewise.
426 * configure: Regenerate.
428 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
430 * configure: Regenerate to track ../common/common.m4 changes.
433 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
434 Daniel Jacobowitz <dan@codesourcery.com>
435 Joseph Myers <joseph@codesourcery.com>
437 * configure: Regenerate.
439 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
441 * acconfig.h: Remove.
442 * config.in: Regenerate.
444 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
446 * configure: Regenerated.
448 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
450 * configure: Regenerated.
452 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
454 * configure: Regenerated.
456 2006-04-18 Nick Clifton <nickc@redhat.com>
458 * interp.c (sim_stop_reason): Fix typo.
460 2005-11-28 Mark Mitchell <mark@codesourcery.com>
462 * interp.c (gdb/signals.h): Include it.
463 (sim_stop_reason): Use TARGET_SIGNAL_*.
465 2005-03-23 Mark Kettenis <kettenis@gnu.org>
467 * configure: Regenerate.
469 2005-01-14 Andrew Cagney <cagney@gnu.org>
471 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
472 explicit call to AC_CONFIG_HEADER.
473 * configure: Regenerate.
475 2005-01-12 Andrew Cagney <cagney@gnu.org>
477 * configure.ac: Update to use ../common/common.m4.
478 * configure: Re-generate.
480 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
482 * configure: Regenerated to track ../common/aclocal.m4 changes.
484 2005-01-07 Andrew Cagney <cagney@gnu.org>
486 * configure.ac: Rename configure.in, require autoconf 2.59.
487 * configure: Re-generate.
489 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
491 * configure: Regenerate for ../common/aclocal.m4 update.
493 2004-06-28 Andrew Cagney <cagney@gnu.org>
495 * interp.c (sim_resume): Rename ui_loop_hook to
496 deprecated_ui_loop_hook.
498 2003-10-30 Andrew Cagney <cagney@redhat.com>
500 * simops.c: Replace "struct symbol_cache_entry" with "struct
503 2003-06-22 Andrew Cagney <cagney@redhat.com>
505 * interp.c (xfer_mem): Simplify. Only do a single partial
506 transfer. Problem reported by Tom Rix.
508 2003-05-07 Andrew Cagney <cagney@redhat.com>
510 * interp.c (sim_d10v_translate_addr): Add "regcache" parameter.
511 (sim_d10v_translate_imap_addr): Ditto.
512 (sim_d10v_translate_dmap_addr): Ditto.
513 (xfer_mem): Pass NULL regcache to sim_d10v_translate_addr.
514 (dmem_addr): Pass NULL regcache to sim_d10v_translate_dmap_addr.
515 (dmap_register, imap_register): Add "regcache" parameter.
516 (imem_addr): Pass NULL regcache to sim_d10v_translate_imap_addr.
517 (sim_fetch_register): Pass NULL regcache to imap_register and
520 2003-02-27 Andrew Cagney <cagney@redhat.com>
522 * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
524 2002-11-13 Andrew Cagney <cagney@redhat.com>
526 * simops.c: Include <string.h>.
528 2002-06-17 Andrew Cagney <cagney@redhat.com>
530 * d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
532 2002-06-16 Andrew Cagney <ac131313@redhat.com>
534 * configure: Regenerated to track ../common/aclocal.m4 changes.
536 2002-06-13 Tom Rix <trix@redhat.com>
538 * interp.c (xfer_mem): Fix transfers across multiple segments.
540 2002-06-09 Andrew Cagney <cagney@redhat.com>
542 * Makefile.in (INCLUDE): Update path to callback.h.
543 * gencode.c: Do not include "callback.h".
544 * d10v_sim.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
547 2002-06-08 Andrew Cagney <cagney@redhat.com>
549 * interp.c (sim_fetch_register): Fix name of enum used in cast.
550 (sim_store_register): Ditto.
552 2002-06-02 Elena Zannoni <ezannoni@redhat.com>
554 From Jason Eckhardt <jle@redhat.com>
555 * d10v_sim.h (INC_ADDR): Correctly handle the case where MOD_E is
556 less than MOD_S (post-decrement).
558 2002-06-01 Andrew Cagney <ac131313@redhat.com>
560 * interp.c (sim_fetch_register, sim_store_register): Use a switch
561 statement and enums from "sim-d10v.h".
563 2002-05-28 Elena Zannoni <ezannoni@redhat.com>
565 * interp.c (sim_create_inferior): Add comment.
567 From Alan Matsuoka <alanm@redhat.com>:
568 From 2001-04-27 Jason Eckhardt <jle@cygnus.com>:
569 * simops.c (OP_4400): Output "mvf0f" instead of "mf0f".
570 (OP_4401): Output "mvf0t" instead of "mf0t".
571 (OP_460B): Do not output a flag register.
572 (OP_4609): Do not output a flag register.
574 2002-05-23 Andrew Cagney <ac131313@redhat.com>
576 * Makefile.in (INCLUDE): Add "gdb/sim-d10v.h".
577 * interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
579 2001-08-01 John R. Moore <jmoore@redhat.com>
581 * interp.c (sim_create_inferior): Removed a hack that stated
582 it was setting r0/r1 with argc/argv.
584 2001-04-15 J.T. Conklin <jtc@redback.com>
586 * Makefile.in (simops.o): Add simops.h to dependency list.
588 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
590 * configure: Regenerated to track ../common/aclocal.m4 changes.
592 Tue Apr 18 16:26:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
594 * interp.c (sim_resume): Deliver SIGILL.
595 (lookup_hash): Do not print SIGILL message.
597 Tue Feb 22 18:24:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
599 * Makefile.in (SIM_EXTRA_CFLAGS): Define SIM_HAVE_ENVIRONMENT.
600 * interp.c (sim_set_trace): Replace sim_trace. Enable tracing.
602 Tue Feb 8 17:41:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
604 * d10v_sim.h (SIG_D10V_BUS): Define.
606 * simops.c (address_exception): Delete function.
607 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
608 OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800,
609 OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00,
610 OP_6E1F, OP_6A01, OP_6E01, OP_37010000): Replace call to
611 address_exception with code that sets SIG_D10V_BUS.
613 * interp.c (sim_resume): When SIGBUS or SIGSEGV, deliver a bus
614 error to the simulator before resuming execution.
615 (sim_trace): Check stop reason and use that to determine sim_trace
617 (sim_stop_reason): For SIG_D10V_BUS return a SIGBUS / SIGSEGV
620 Tue Jan 18 16:07:42 MST 2000 Diego Novillo <dnovillo@cygnus.com>
622 * interp.c (sim_create_inferior): Change internal initial value for
625 Mon Jan 3 02:06:07 2000 Andrew Cagney <cagney@b1.cygnus.com>
627 * interp.c (lookup_hash): Stop the update of the PC when there was
628 an illegal instruction exception.
630 Mon Jan 3 00:14:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
632 * simops.c (address_exception): New function.
633 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
634 OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800,
635 OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00,
636 OP_6E1F, OP_6A01, OP_6E01, OP_37010000): For "ld", "ld2w", "st"
637 and "st2w" check that the address is aligned.
639 1999-12-30 Chandra Chavva <cchavva@cygnus.com>
641 * d10v_sim.h (INC_ADDR): Added code to assign
642 proper address for loads with predec operations.
644 1999-11-25 Nick Clifton <nickc@cygnus.com>
646 * simops.c (OP_4E0F): New function: Simulate new bit pattern for
649 Fri Oct 29 18:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
651 * simops.c (move_to_cr): Don't allow user to set PSW.DM in either
654 Thu Oct 28 01:26:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
656 * simops.c (OP_5F20): Use SET_HW_PSW when updating PSW.
657 (PSW_HW_MASK): Declare.
659 * d10v_sim.h (move_to_cr): Add ``psw_hw_p'' parameter.
660 (SET_CREG, SET_PSW_BIT): Update.
661 (SET_HW_CREG, SET_HW_PSW): Define.
663 Sun Oct 24 21:38:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
665 * interp.c (sim_d10v_translate_dmap_addr): Fix extraction of IOSP
668 Sun Oct 24 16:04:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
670 * interp.c (sim_d10v_translate_addr): New function.
671 (xfer_mem): Rewrite. Use sim_d10v_translate_addr.
672 (map_memory): Make INLINE.
674 Sun Oct 24 13:45:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
676 * interp.c (sim_d10v_translate_dmap_addr): New function.
677 (dmem_addr): Rewrite. Use sim_d10v_translate_dmap_addr. Change
678 offset parameter to type uint16.
679 * d10v_sim.h (dmem_addr): Update declaration.
681 Sun Oct 24 13:07:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
683 * interp.c (imap_register, set_imap_register, dmap_register,
684 set_imap_register): Use map_memory.
686 (sim_create_inferior): Initialize all DMAP registers. NOTE that
687 DMAP2, in internal memory mode, is set to 0x0000 and NOT
688 0x2000. This is consistent with the older d10v boards.
690 Sun Oct 24 11:22:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
692 * interp.c (sim_d10v_translate_imap_addr): New function.
693 (imem_addr): Rewrite. Use sim_d10v_translate_imap_addr.
694 (last_from, last_to): Declare.
696 Sun Oct 24 01:21:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
698 * d10v_sim.h (struct d10v_memory): Define. Support very long
700 (struct _state): Replace imem, dmem and umem by mem.
701 (IMAP_BLOCK_SIZE, DMAP_BLOCK_SIZE, SEGMENT_SIZE, IMEM_SEGMENTS,
702 DMEM_SEGMENTS, UMEM_SEGMENTS): Define.
704 * interp.c (map_memory): New function.
705 (sim_size, xfer_memory, imem_addr, dmem_addr): Update.
706 (UMEM_SEGMENTS): Moveed to "d10v_sim.h".
707 (IMEM_SIZEDMEM_SIZE): Delete.
709 Sat Oct 23 20:06:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
711 * interp.c: Include "sim-d10v.h".
712 (imap_register, set_imap_register, dmap_register,
713 set_dmap_register, spi_register, spu_register, set_spi_register,
714 set_spu_register): New functions.
715 (sim_create_inferior): Update.
716 (sim_fetch_register, sim_store_register): Rewrite. Use enums
717 defined in sim-d10v.h.
719 * d10v_sim.h (DEBUG_MEMORY): Define.
720 (IMAP0, IMAP1, DMAP, SET_IMAP0, SET_IMAP1, SET_DMAP): Delete.
722 Sat Oct 23 18:41:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
724 * interp.c (sim_open): Allow a debug value to be passed to the -t
726 (lookup_hash): Don't exit on an illegal instruction.
727 (do_long, do_2_short, do_parallel): Check for failed instruction
730 Mon Oct 18 18:03:24 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
732 * simops.c (OP_3220): Fix trace output for illegal accumulator
735 1999-09-14 Nick Clifton <nickc@cygnus.com>
737 * simops.c: Disable setting of DM bit in PSW.
739 Wed Sep 8 19:34:55 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
741 * simops.c (op_types): Added new memory indirect type OP_MEMREF3.
742 (trace_input_func): Added support for OP_MEMREF3.
743 (OP_32010000): New instruction ld.
744 (OP_33010000): New instruction ld2w.
745 (OP_5209): New instruction sac.
746 (OP_4209): New instruction sachi.
747 (OP_3220): New instruction slae.
748 (OP_36010000): New instruction st.
749 (OP_37010000): New instruction st2w.
751 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
753 * interp.c (old_segment_mapping): New global.
754 (xfer_mem): Change the default segment mapping to be the way
755 that Mitsubishi prefers, but use the previous mapping if
756 old_segment_mapping is true.
757 (sim_open): Add an option -oldseg to get the old mapping.
758 (sim_create_inferior): Init mapping registers based on the
759 value of old_segment_mapping.
761 1999-09-07 Nick Clifton <nickc@cygnus.com>
763 * simops.c (OP_6601): Do not write back decremented address if
764 either of the destination registers was the same as the address
766 (OP_6201): Do not write back incremented address if either of the
767 destination registers was the same as the address register.
769 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
771 * configure: Regenerated to track ../common/aclocal.m4 changes.
773 1999-05-08 Felix Lee <flee@cygnus.com>
775 * configure: Regenerated to track ../common/aclocal.m4 changes.
777 1999-04-02 Keith Seitz <keiths@cygnus.com>
779 * interp.c (ui_loop_hook_counter): New global (when NEED_UI_LOOP_HOOK
781 (sim_resume): If the counter has expired, call the ui_loop_hook,
783 (UI_LOOP_POLL_INTERVAL): Define. Used to tweak the frequency of
785 * Makefile.in (SIM_EXTRA_CFLAGS): Include NEED_UI_LOOP_HOOK.
787 Wed Mar 10 19:32:13 1999 Nick Clifton <nickc@cygnus.com>
789 * simops.c: If load instruction with auto increment/decrement
790 addressing is used when the destination register is the same as
791 the address register, then ignore the auto increment/decrement.
793 Wed Mar 10 19:32:13 1999 Martin M. Hunt <hunt@cygnus.com>
795 * simops.c (OP_5F00): Ifdef SYS_stat case because
796 not all systems have it defined.
798 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
800 * simops.c (OP_5607): Correct saturation comparison/assignment.
801 (OP_1201, OP_1203, OP_17001200, OP_17001202,
802 OP_2A00, OP_2800, OP_2C00, OP_3200, OP_3201,
803 OP_1001, OP_1003, OP_17001000, OP_17001002): Ditto.
805 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
807 * simops.c (OP_5605): Sign extend MIN32 and MAX32 before saturation
813 1999-01-13 Jason Molenda (jsm@bugshack.cygnus.com)
815 * simops.c (OP_1223): Sign extend MIN32 and MAX32 before saturation
818 Tue Nov 24 17:04:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
820 * simops.c (sys/syscall.h): Include targ-vals.h instead.
821 (SYS_*): Replace with TARGET_SYS_*.
823 * Makefile.in: Add dependency on targ-vals.h.
824 (NL_TARGET): Define as NL_TARGET_d10v.
826 Wed Sep 30 00:06:32 1998 Andrew Cagney <cagney@amy.cygnus.com>
828 * interp.c (xfer_mem): Missing break, instruction memory case
829 flowed into unified memory case.
831 Wed Sep 30 10:14:18 1998 Nick Clifton <nickc@cygnus.com>
833 * simops.c: If load instruction with auto increment/decrement
834 addressing is used when the destination register is the same as
835 the address register, then ignore the auto increment/decrement.
837 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
839 * configure: Regenerated to track ../common/aclocal.m4 changes.
841 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
843 * configure: Regenerated to track ../common/aclocal.m4 changes.
846 Sun Apr 26 15:20:23 1998 Tom Tromey <tromey@cygnus.com>
848 * acconfig.h: New file.
849 * configure.in: Reverted change of Apr 24; use sinclude again.
851 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
853 * configure: Regenerated to track ../common/aclocal.m4 changes.
856 Fri Apr 24 11:20:06 1998 Tom Tromey <tromey@cygnus.com>
858 * configure.in: Don't call sinclude.
860 Fri Apr 24 11:04:46 1998 Andrew Cagney <cagney@chook.cygnus.com>
862 * interp.c (struct hash_entry): OPCODE and MASK are unsigned.
864 * d10v_sim.h (remote-sim.h, sim-config.h): Include.
866 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
868 * configure: Regenerated to track ../common/aclocal.m4 changes.
870 Wed Apr 1 12:59:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
872 * simops.c (trace_input_func): Use move_from_cr / CREGS to obtain
874 (OP_OP_1000000, add3): Trace inputs before performing add.
875 (OP_5F00, <*>): Trace input registers before making system call.
876 (OP_5F00, <kill>): Trace R0, R1 not REGn.
877 (OP_5F00, <getpid>): Always return 47.
879 * d10v_sim.h (SLOT, SLOT_NR, SLOT_PEND_MASK, SLOT_PEND,
880 SLOT_DISCARD, SLOT_FLUSH): Define. An implementation of write
882 (struct _state): Add struct slot slot to global state variable.
883 (struct _state): Delete fields SM, EA, DB, DM, IE, RP, MD, FX, ST,
884 F0, F1, C from global State variable.
885 (struct _state): Add struct trace to global State variable.
886 (GPR, SET_GPR): Define. SET_GPR uses SLOT_PEND.
887 (PSW*, SET_PSW*): Define. SET_PSW* uses SET_CREG.
888 (CREG, SET_CREG, SET_*): Define. SET_CREG uses func move_to_cr.
889 (INC_ADDR): Re-implement. Use SET_GPR to update registers.
890 (JMP): Re-implement. Use SET_* to update registers.
892 * interp.c: Use new SET_* et.al. macros to fetch / store
894 (get_operands): Squirrel away trace values at start of each
896 (do_2_short): Flush pending writes before issuing second
898 (sim_resume): Flush pending writes at end of instruction cycle.
899 (sim_fetch_register, sim_store_register, sim_create_inferior):
900 After scheduling updates to registers using SET_*, flush updates.
901 (sim_resume): Re-order handling of RPT/repeat and IBA/hbreak so
902 that each sets pc using SET_* and last SET_* eventually winds out.
904 * simops.c: Use new SET_* et.al. macros to fetch / store
906 (move_to_cr): Add MASK argument for selective update of CREG bits.
907 Re-implement using new SET_* macros.
908 (trace_output_func, trace_output): Delete. Replace with.
909 (do_trace_output_flush, trace_output_finish, trace_output_40,
910 trace_output_32, trace_output_16, trace_output_void,
911 trace_output_flag): New functions. Handle specific trace cases.
912 (OP_*): Re-write tracing to use new trace_output_* functions.
913 (OP_*): Re-write to use new SET_* et.al. macros.
914 (FUNC, PARM[1-4], RETVAL, RETVAL32): Redo definition.
915 (RETVAL_HIGH, RETVAL_LOW): Delete, use RETVAL32.
917 Wed Apr 1 12:55:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
919 * configure.in (SIM_AC_OPTION_WARNINGS): Add.
920 configure: Re-generate.
922 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
924 * configure: Regenerated to track ../common/aclocal.m4 changes.
926 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
928 * configure: Regenerated to track ../common/aclocal.m4 changes.
930 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
932 * configure: Regenerated to track ../common/aclocal.m4 changes.
934 Tue Feb 17 12:38:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
936 * interp.c (sim_store_register, sim_fetch_register): Pass in
937 length parameter. Return -1.
939 Mon Oct 27 14:43:33 1997 Fred Fish <fnf@cygnus.com>
941 * (dmem_addr): If address is illegal or in I/O space, signal a bus
942 error. Allocate unified memory on demand. Fix DMEM address
945 Mon Feb 16 10:27:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
947 * simops.c (OP_5F20): Implement "dbt".
948 (OP_5F60): Implement "rtd".
950 * d10v_sim.h (DPC_CR): Define enum.
951 (DBT_VECTOR_START): Define
954 Fri Feb 13 15:15:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
956 * simops.c (move_to_cr): Sync regs[SP_IDX] with State.sp according
959 * d10v_sim.h (struct _state): Add sp, as holding area for SPI/SPU.
962 Wed Feb 11 16:53:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
964 * simops.c (OP_5F00): Call error instead of abort for unknown
967 * d10v_sim.h (enum): Define DPSW_CR.
969 * simops.c (move_to_cr): Mask out hardwired zero bits in DPSW.
971 Tue Feb 10 18:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
973 * interp.c (sim_write_phys): Delete.
974 (sim_load): Call sim_load_file with sim_write and LMA.
976 Mon Feb 9 12:05:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
978 * interp.c: Rewrite xfer_mem so that it translates addresses as -
979 0x00... - DMAP translated memory, 0x01... IMAP translated memory,
980 0x10... - on-chip data, 0x11... - on-chip insn, 0x12... - unified
983 (imem_addr): New function - translate IMEM address.
984 (sim_resume): Use imem_addr to translate insn address, abort if
986 (sim_create_inferior): Write ARGV to memory using sim_write. Pass
987 argc/argv using r0/r1 not r2/r3.
988 (sim_size): Do not initialize IMAP/DMAP here.
989 (sim_open): Call sim_create_inferior and sim_size to initialize
991 (sim_create_inferior): Initialize IMAP/DMAP to hardware reset
993 (init_system): Delete.
994 (xfer_mem, sim_fetch_register, sim_store_register): Do not call
996 (decode_pc): Check prog_bfd is defined before looking up .text
999 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
1001 * configure: Regenerated to track ../common/aclocal.m4 changes.
1003 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
1005 * configure: Regenerated to track ../common/aclocal.m4 changes.
1007 Sun Jan 25 22:23:01 1998 Michael Meissner <meissner@cygnus.com>
1009 * interp.c (sim_stop_reason): Exit status is now in r0, not r2.
1011 Sat Jan 24 19:00:30 1998 Michael Meissner <meissner@cygnus.com>
1013 * d10v_sim.h (DEBUG_TRAP): New debug flag.
1015 * simops.c (OP_5F00): If DEBUG_TRAP is on, turn traps 0-14 into
1016 printing the registers.
1018 Thu Jan 22 17:54:01 1998 Michael Meissner <meissner@cygnus.com>
1020 * simops.c (op_types): New ABI, args are r0..r3, system call # is
1022 (trace_{in,out}put_func): Ditto.
1024 (OP_24800000): Ditto.
1028 Thu Jan 22 14:30:36 1998 Fred Fish <fnf@cygnus.com>
1030 * interp.c (UMEM_SEGMENTS): New define, set to 128.
1031 (sim_size): Use UMEM_SEGMENTS rather than hardwired constant.
1032 (sim_close): Reset prog_bfd to NULL after closing it. Also
1033 reset prog_bfd_was_opened_p after closing prog_bfd.
1034 (sim_load): Reset prog_bfd_was_opened_p after closing prog_bfd.
1035 (sim_create_inferior): Get start address from abfd not prog_bfd.
1036 (xfer_mem): Do bounds checking on addresses and return zero length
1037 read/write on bad addresses, rather than aborting. Prepare to
1038 be able to handle xfers that cross segment boundaries, but not
1039 yet implemented. Only emit debug message when d10v_debug is
1040 set as well as DEBUG being defined.
1042 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
1044 * configure: Regenerated to track ../common/aclocal.m4 changes.
1046 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1048 * configure: Regenerated to track ../common/aclocal.m4 changes.
1051 Tue Dec 9 10:28:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
1053 * d10v_sim.h (RPT_S): Index cregs with RPT_S_CR not RPT_E_CR.
1054 (BPSW): Ditto for BPSW_CR and not PSW_CR.
1056 * simops.c (OP_5F40): JMP to BPC instead of assigning PC directly.
1058 Mon Dec 8 12:58:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
1060 * simops.c (OP_5F00): From Martin Hunt <hunt@cygnus.com>. Change
1061 reserved trap from 0 to 15. Add trap emulation code for 0-14.
1063 * interp.c (sim_resume): From Martin Hunt <hunt@cygnus.com>. Check
1066 * d10v_sim.h (AE_VECTOR_START, RIE_VECTOR_START,
1067 SDBT_VECTOR_START, TRAP_VECTOR_START): Define.
1069 * simops.c (OP_5F00): For "trap", mask out all but SM bit in PSW,
1071 (OP_5F00): For "trap", update BPSW with move_to_cr.
1073 Fri Dec 5 15:31:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
1075 * d10v_sim.h (enum): Enumerate CR register names.
1076 (enum): Enumerate PSW bit values.
1077 (PSW): Obtain value uing move_from_cr.
1078 (MOD_S, MOD_E, BPSW): Make r-values.
1079 (move_from_cr, move_to_cr): Declare functions.
1081 * interp.c (sim_fetch_register, sim_store_register): Use
1082 move_from_cr and move_to_cr for CR register transfers.
1084 * simops.c (move_from_cr, move_to_cr): New functions.
1085 (OP_5F40): Move BPSW to PSW using move_to_cr and move_from_cr.
1086 (OP_5600): For "mvtc", use function move_to_cr.
1087 (OP_5200): For "mvfc", use function move_from_cr.
1089 Fri Dec 5 13:33:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1091 * simops.c (OP_5600): For "mvtc" MOD_E and MOD_S, ensure that the
1094 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
1096 * configure: Regenerated to track ../common/aclocal.m4 changes.
1098 Thu Dec 4 16:51:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
1100 * d10v_sim.h (struct _state): Add DM - PSW debug mask.
1102 * simops.c (OP_5600): For "mvtc", save PSW.DM.
1103 (OP_5200): Ditto for "mvfc".
1105 Wed Dec 3 17:27:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1107 * d10v_sim.h (SEXT56): Define.
1109 * simops.c (OP_4201): For "rac", sign extend 56 bit value before
1112 * d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using
1115 Tue Dec 2 15:38:34 1997 Fred Fish <fnf@cygnus.com>
1117 * interp.c (sim_resume): Call do_2_short with LEFT_FIRST or
1118 RIGHT_FIRST, as appropriate, instead of hardcoded ints that
1119 don't match enum values.
1121 Tue Dec 2 15:01:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
1123 * simops.c (OP_3A00): For "macu", perform multiply stage using 32
1124 bit rather than 16 bit precision.
1125 (OP_3C00): For "mulxu", store unsigned product in ACC.
1126 (OP_3800): For "msbu", subtract unsigned product from ACC,
1127 (OP_0): For "sub", compute carry by comparing inputs.
1129 Tue Dec 2 11:04:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1131 * simops.c (OP_1000): For "sub2w", compute carry by comparing
1134 Mon Nov 17 20:57:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
1136 * simops.c (OP_1): Use 32 bit unsigned arithmetic for subtract,
1137 carry indicated by value > 0xffff.
1139 Fri Nov 14 12:51:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1141 * interp.c (sim_resume): Don't set up SIGINT handler using signal,
1143 (sim_resume): Fix race condition of a direct assignment to
1144 stop_simulator, conditionally call sim_stop.
1145 (sim_stop_reason): Check stop_simulator returning SIGINT. Clear
1146 stop_simulator ready for next sim_resume call.
1147 (sim_ctrl_c): Delete function.
1149 Thu Nov 13 19:29:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
1151 * interp.c (sim_resume): For "REP", only check/update the PC when
1152 a branch instruction has not been executed.
1154 Mon Nov 10 17:50:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
1156 * simops.c (OP_4201): "rachi". Sign extend bit 40 of ACC. Sign
1157 extend bit 44 all constants.
1158 (OP_4201): Replace GCC specific 0x..LL with SIGNED64 macro.
1160 Fri Oct 24 10:26:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1162 * d10v_sim.h: Include sim-types.h.
1163 (uint8, in816, uiny16, int32, uint32, int64, uint64): Typedef
1164 using unsigned8 et.al. from sim-types.h.
1165 (SEXT32, SEXT40, SEXT44, SEXT60): Replace GCC specific 0x..LL with
1168 Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1170 * interp.c (sim_write_phys): New function, write to physical
1171 instead of virtual memory.
1173 * interp.c (sim_load): Pass lma_p and sim_write_phys to
1176 Mon Oct 13 10:55:07 1997 Fred Fish <cygnus.com>
1178 * simops.c (OP_6A01): Change OP_POSTDEC to OP_POSTINC and move
1179 exception generation code to OP_6E01.
1180 (OP_6E01): Change OP_POSTINC to OP_POSTDEC and insert exception
1183 Sat Oct 11 09:02:08 1997 Fred Fish <fnf@cygnus.com>
1185 * simops.c (OP_6401): postdecrement on r15 is OK, remove exception.
1188 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1190 * configure: Regenerated to track ../common/aclocal.m4 changes.
1192 Sat Sep 27 12:51:34 1997 Fred Fish <fnf@cygnus.com>
1194 * interp.c (pc_addr): Discard upper bit(s) of PC in case
1195 IMAP1 selects unified memory.
1196 * d10v_sim.h (INC_ADDR): Align MOD_E to increment before testing
1199 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1201 * configure: Regenerated to track ../common/aclocal.m4 changes.
1203 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1205 * configure: Regenerated to track ../common/aclocal.m4 changes.
1207 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1209 * configure: Regenerated to track ../common/aclocal.m4 changes.
1211 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1213 * configure: Regenerated to track ../common/aclocal.m4 changes.
1215 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1217 * configure: Regenerated to track ../common/aclocal.m4 changes.
1219 Wed Sep 10 22:30:24 1997 Martin M. Hunt <hunt@cygnus.com>
1221 * interp.c (sim_resume): Increment PC at end of rep
1224 * simops.c (OP_4201): Fix rachi instruction.
1226 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1228 * configure: Regenerated to track ../common/aclocal.m4 changes.
1230 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1232 * configure: Regenerated to track ../common/aclocal.m4 changes.
1235 Tue Aug 26 10:37:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
1237 * interp.c (sim_kill): Delete.
1238 (sim_create_inferior): Add ABFD argument.
1239 (sim_load): Move setting of PC from here.
1240 (sim_create_inferior): To here.
1241 (start_address): Delete variable.
1243 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1245 * configure: Regenerated to track ../common/aclocal.m4 changes.
1248 Mon Aug 25 15:39:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1250 * interp.c (sim_open): Add ABFD argument.
1252 Tue May 20 10:14:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
1254 * interp.c (sim_open): Add callback argument.
1255 (sim_set_callbacks): Remove SIM_DESC argument.
1257 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1259 * configure: Regenerated to track ../common/aclocal.m4 changes.
1261 Tue Apr 22 10:29:23 1997 Doug Evans <dje@canuck.cygnus.com>
1263 * interp.c (sim_open): Undo patch to add -E support.
1265 Fri Apr 18 13:39:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
1267 * interp.c (sim_stop): New function.
1269 Thu Apr 17 02:42:00 1997 Doug Evans <dje@canuck.cygnus.com>
1271 * Makefile.in (SIM_OBJS): Add sim-load.o.
1272 * d10v_sim.h (exec_bfd): Rename to prog_bfd.
1273 * interp.c: #include bfd.h.
1274 (myname, sim_kind, start_address): New static locals.
1275 (prog_bfd_was_opened_p, prog_bfd): New static locals.
1276 (decode_pc): Update to use prog_bfd.
1277 (sim_open): Set sim_kind, myname. Ignore -E arg.
1278 (sim_close): Close prog_bfd if simulator opened it.
1279 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1280 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
1281 Call sim_load_file to load file into simulator.
1282 * simops.c (trace_input_func): exec_bfd renamed to prog_bfd.
1284 Wed Apr 16 16:12:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1286 * simops.c (OP_5F00): Only provide system calls SYS_execv,
1287 SYS_wait, SYS_wait, SYS_utime, SYS_time if defined by the host.
1289 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1291 * configure: Regenerated to track ../common/aclocal.m4 changes.
1294 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1296 * interp.c (sim_open): New arg `kind'.
1298 * configure: Regenerated to track ../common/aclocal.m4 changes.
1300 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1302 * configure: Regenerated to track ../common/aclocal.m4 changes.
1304 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1306 * configure: Re-generate.
1308 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1310 * configure: Regenerate to track ../common/aclocal.m4 changes.
1312 * simops.c (OP_5F00): Remove old traps 1-3. Make trap 15 the same
1313 as trap 0, which will be deprecated. Only set errno, if an error
1314 in fact was returned.
1316 Thu Mar 13 12:41:20 1997 Doug Evans <dje@canuck.cygnus.com>
1318 * interp.c: Delete redundant prototypes of sim_foo fns.
1319 (sim_open): New SIM_DESC result. Argument is now in argv form.
1320 (other sim_*): New SIM_DESC argument.
1322 Thu Mar 13 10:29:04 1997 Michael Meissner <meissner@cygnus.com>
1324 * simops.c (trace_{input,output}_func): Call flush_stdout from the
1327 (OP_6{4,6,C,A}01): Test for post decrement on the stack pointer.
1328 (OP_{1200,1000000,201,5FE0,1003,17001002}): Fix problems in
1329 setting the carry bit after an add or a subtract.
1331 Wed Feb 12 16:04:15 1997 Michael Meissner <meissner@cygnus.com>
1333 * simops.c (OP_{1403,15002A02,3{0,4}0{0,1}}): Only use the bottom
1334 40 bits of accumulators. Sign/zero extend as appropriate.
1336 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1338 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1339 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1340 * configure.in: sinclude ../common/aclocal.m4.
1341 * configure: Regenerated.
1343 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1345 * configure configure.in Makefile.in: Update to new configure
1346 scheme which is more compatible with WinGDB builds.
1347 * configure.in: Improve comment on how to run autoconf.
1348 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1349 * Makefile.in: Use autoconf substitution to install common
1352 Fri Dec 27 22:54:05 1996 Angela Marie Thomas (angela@cygnus.com)
1354 * gencode.c: patch to not #include "d10v_sim.h" which
1355 unecessarily includes bfd.h and causes wingdb configure
1358 Mon Dec 16 13:39:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1360 * interp.c (xfer_mem): Change unified memory to 0x0.
1362 Thu Nov 28 20:42:56 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1364 * simops.c (OP_3E01): Fix tracing information.
1365 (OP_300{0,1}): Do not propigate sign.
1367 Mon Nov 25 19:47:40 1996 Doug Evans <dje@canuck.cygnus.com>
1369 * config.in (WORDS_BIGENDIAN): Add.
1370 * configure: Regenerated.
1371 * d10v_sim.h: #include "config.h"
1373 Sat Nov 23 09:34:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1375 * gencode.c (write_opcodes): Eliminate warnings when generated
1376 table.c is compiled.
1378 Wed Nov 20 19:41:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1380 * interp.c (sim_open): Cast result of calloc, and make sure NULL
1382 (dmem_addr): If address is illegal or in I/O space, signal a bus
1384 (pc_addr): Signal bus error, not illegal instruction for bogus
1387 Wed Nov 20 01:23:03 1996 Doug Evans <dje@canuck.cygnus.com>
1389 * Makefile.in: Delete all stuff moved to ../common/Make-common.in.
1390 (SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define.
1391 * configure.in: Simplify using macros in ../common/aclocal.m4.
1392 Call AC_CHECK_HEADERS(unistd.h).
1393 * configure: Regenerated.
1394 * config.in: New file.
1395 * interp.c: #include "callback.h".
1396 * simops.c: #include "config.h". #include <unistd.h> if present.
1398 Fri Nov 8 16:19:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1400 * d10v-sim.h (simops): Add flag is_long.
1401 (State): Add pc_changed. Instructions which update the PC should
1402 use the JMP macro which sets this.
1403 (JMP): New macro. Sets the PC and the pc_changed flag.
1405 * gencode.c (write_opcodes): Add is_long field.
1407 * interp.c (lookup_hash): If we blindly apply a short opcode's mask
1408 to a long opcode we could get a false match. Check the opcode size.
1409 (hash): Add a size field to the hash table.
1410 (sim_open): Initialize size field in hash table.
1411 (sim_resume): Change to logic for setting the PC. Used to increment the
1412 PC if it had not been changed. This didn't allow single-instruction loops.
1413 Now checks the flag State.pc_changed. Also now stops when ^C is received.
1414 (dmem_addr): Fix translation of data segments to unified memory.
1415 (sim_ctrl_c): New function. When ^C is received, set stop_simulator flag.
1417 * simops.c: Changed all branch and jump instructions to use new JMP macro.
1418 (OP_20000000): Corrected trace information to show this is a ldi.l, not
1419 a ldi.s instruction.
1421 Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1423 * interp.c (sim_fetch_register, sim_store_register): Fix bug where
1424 updating the accumulators was overwriting other parts of the global
1427 Wed Oct 30 17:35:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1429 * interp.c (bfd.h) Don't include it here any more.
1430 (text{,_start,_end}): Move here from simops.c and make extern.
1431 (decode_pc): New function to return the PC as an address that the
1433 (dmem_addr): Print decoded PC in error message.
1436 * simops.c (bfd.h) Don't include it here any more.
1437 (text{,_start,_end}): Move to simops.c.
1438 (trace_input_func): Move decoding of PC, and looking up .text
1441 * d10v_sim.h (bfd.h): Include it here.
1442 (text{,_start,_end}): Add external declarations.
1446 Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1448 * interp.c (sim_size): Now allocates unified memory for imap segments
1449 0,1,2, and 127. Initializes imap0 and imap1 to 0x1000. Initializes dmap to 0.
1450 (sim_write): Just call xfer_mem().
1451 (sim_read): Just call xfer_mem().
1452 (xfer_mem): New function. Does appropriate memory mapping and copies bytes.
1453 (dmem_addr): New function. Reads dmap register and translates data
1454 addresses to local addresses.
1455 (pc_addr): New function. Reads imap register and computes local address
1456 corresponding to contents of the PC.
1457 (sim_resume): Change to use pc_addr().
1458 (sim_create_inferior): Change reinitialization code. Also reinitializes
1460 (sim_fetch_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
1461 (sim_store_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
1463 * simops.c (MEMPTR): Redefine to use dmem_addr().
1464 (OP_5F00): Replace references to STate.imem with dmem_addr().
1466 * d10v-sim.h (State): Remove mem_min and mem_max. Add umem[128].
1467 (RB,SW,RW,SLW,RLW): Redefine to use dmem_addr().
1468 (IMAP0,IMAP1,DMAP,SET_IMAP,SET_IMAP1,SET_DMAP): Define.
1470 Tue Oct 22 15:22:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1472 * d10v_sim.h (_ins_type): Reorganize, so that we can provide
1473 better statistics, like not counting NOPS as parallel
1474 instructions, and printing total cycles.
1475 (ins_type_counters): Make unsigned long.
1476 (left_nops,right_nops): Fold into ins_type_counters.
1478 * simops.c (trace_input_func): Print new instruction types.
1479 Handle OP_R2R3 as input types.
1480 (OP_{38000000,7000}): Correctly sign extend bytes.
1481 (OP_5E00): Don't count NOPs as parallel instructions.
1482 (OP_460B): Remove unused variable.
1485 * interp.c (ins_type_counters): Make unsigned long.
1486 (left_nops,right_nops): Delete.
1487 (most functions): Add prototypes.
1488 (INLINE): If GCC and optimize define as __inline__.
1489 ({,lookup_}hash,get_operands): Declare as INLINE.
1490 (do_parallel): Count conditional operations.
1491 (add_commas): New function, to add commas every 3 digits.
1492 (sim_size): Call add_commas to print numbers.
1493 (sim_{open,resume}): Delete unused variables.
1494 (sim_info): Provide better statistics.
1495 (sim_read): Add int return type.
1497 Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1499 * interp.c (sim_resume): Change the way single-stepping and exceptions
1500 are handled so single-stepping works again.
1502 Thu Oct 17 12:24:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1504 * endian.c: Optimize simulated loads/stores on x86, AIX, and big
1507 * configure.in (--enable-sim-bswap): New switch to enable using
1508 the BSWAP instruction on x86's.
1509 * configure: Regenerate.
1511 * Makefile.in ({SWAP,CONFIG}_CFLAGS): Add --enable-sim-bswap
1514 Wed Oct 16 13:50:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1516 * endian.c: New file. Move endian functions here from interp.c.
1517 Optimize code, and make it work as either inline functions or as a
1520 * interp.c: Move endian functions from here to endian.c.
1522 * Makefile.in (INCLUDE): Add endian.c.
1523 (run,libsim.a): Add dependency on endian.o.
1524 (endian.o): Add dependency.
1526 * d10v_sim.h (read/write support): Always go through the machine
1527 independent endian functions. If compiling with GCC and
1528 optimizing, include endian.c so the endian functions are inlined.
1530 * simops.c (OP_5F00): Correct tracing of accumulators.
1532 Tue Oct 15 10:57:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1534 * simops.c (OP_5F00): Add support for getpid, kill system calls.
1536 * interp.c (do_{2_short,parallel}): If an exception is raised,
1537 don't execute the second instruction.
1539 Sat Oct 12 22:17:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1541 * simops.c (OP_{31000000,6601,6201,6200}): Store address in a
1542 temporary in case the register is overriden when loading.
1543 (OP_6200): Output type is OP_DREG for tracing.
1545 Fri Oct 4 23:46:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1547 * d10v_sim.h (struct _state): Add mem_{min,max} fields.
1549 * interp.c (sim_size): Initialize mem_{min,max} fields.
1550 (sim_write): Update mem_{min,max} fields.
1551 (sim_resume): If PC is not in the minimum/maximum memory range,
1553 (sim_create_inferior): Preserve mem_{min,max} fields.
1555 Fri Sep 27 13:11:58 1996 Mark Alexander <marka@cygnus.com>
1557 * simops.c (OP_5F00): Add support for time() system call.
1559 Wed Sep 25 16:31:41 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1561 * simops.c (OP_{6E01,6A01,6E1F,6A00}): Print both words being
1563 (OP_5F00,trace_{in,out}put_func): Add finer grain tracing for
1566 Mon Sep 23 17:55:30 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1568 * simops.c (op_types): Add OP_{CONSTANT8,R2,R3}.
1569 (trace_input_func): Add support for OP_{CONSTANT8,R2,R3}.
1570 (OP_{4900,24800000,4800,4A00,4B00,4D00,4C00}): Add OP_R2 and OP_R3
1571 to call/subroutine returns to trace the first two arguments and
1572 the return value. For small jumps, use CONSTANT8, not CONSTANT16.
1574 Fri Sep 20 15:36:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1576 * interp.c (sim_create_inferior): Reinitialize State every time
1577 sim_create_inferior() is called.
1579 Thu Sep 19 21:38:20 1996 Michael Meissner <meissner@wogglebug.ziplink.net>
1581 * simops.c (OP_{401,2000000,601,3000000,23000000}): Get sign right
1583 (OP_401): Fix tracing information.
1585 Thu Sep 19 10:30:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1587 * simops.c (SIZE_{PC,LINE_NUMBER}): New default sizes for output.
1588 (trace_input_func): Use them.
1589 (trace_input_func): Make sure there is a trailing space after the
1591 (OP_6200): Fix tracing info.
1593 * Makefile.in (run): Add dependencies on libbfd.a and
1596 Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1598 * d10v_sim.h (DEBUG_INSTRUCTION): New debug value to include line
1599 numbers and function names in debug trace.
1600 (DEBUG): If not defined, set to DEBUG_TRACE, DEBUG_VALUES, and
1602 (SIG_D10V_{STOP,EXIT}): Values to represent the stop instruction
1603 and exit system call trap being executed.
1605 * interp.c (sim_stop_reason): Set exit code correctly for stop
1606 instruction and exit system call trap.
1608 * configure.in (--enable-sim-cflags): Remove trace case.
1609 (--enable-sim-debug): New switch to set the debug values.
1610 * configure: Regenerate.
1612 * simops.c (trace_{input,output}_func): Rename from
1613 trace_{input,output}.
1614 (trace_{input,output}): Call trace_{input,output}_func if
1615 d10v_debug is non-zero.
1616 (SIZE_INSTRUCTION): Cut down to 8.
1617 (SIZE_OPERANDS): Cut down to 18.
1618 (SIZE_LOCATION): New value for size of line number, function name
1620 (init_text_p,text{,_start,_end}): New static variables for
1621 printing line number and function name.
1622 (exec_bfd): New external that run.c sets.
1623 (trace_input_func): Print line number and function name if
1624 available and if desired.
1625 (OP_4E09): Don't print out DBT message.
1626 (OP_5FE0): Set exception field to SIG_D10V_STOP.
1627 (OP_5F00): Set exception field to SIG_D10V_EXIT.
1629 Sat Sep 14 22:18:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1631 * interp.c (do_2_short): If the instruction encodes jump->ins,
1632 don't do the second instruction if the jump succeeds.
1634 Fri Sep 13 22:35:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1636 * simops.c (OP_5F00): Use unknown traps to print all GPRs,
1637 accumulators, PC, and F0/F1/C flags.
1639 Thu Sep 12 12:50:11 1996 Mark Alexander <marka@cygnus.com>
1641 * simops.c (OP_5F00): Fix problems with system calls.
1643 Thu Sep 12 12:19:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1645 * simops.c (OP_5F00): Correct tracing information for trap.
1647 Wed Sep 11 18:55:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1649 * Makefile.in (CSEARCH): Correctly find opcodes directory.
1651 Mon Sep 9 13:27:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1653 * simops.c (trace_output): Properly align accumulator output.
1654 (OP_3{0,2,4}00): Properly parenthesize test expression. Add error
1655 if shift count is too high.
1656 (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book.
1657 (OP_4E09): Make cpfg properly trace the input flags.
1658 (op_types): Add OP_FLAG_OUTPUT.
1659 (trace_{input,output}): Support OP_FLAG_OUTPUT.
1660 (OP_31000000): This ld2w varient is a 16-bit memory reference, not
1661 an 8-bit memory reference instruction for tracing purposes.
1662 (OP_201): Addi needs to set the carry.
1664 Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1666 * simops.c (OP_2600, OP_2601): Changed min and max comparisons
1667 to use signed register values.
1669 Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1671 * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug
1673 (_ins_type): New enumeration to specify which container an
1674 instruction is in, and whether it is part of a parallel operation.
1675 (_state): Add ins_type field.
1676 ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types.
1677 (ins_type_counters): Counters for the various instruction types.
1678 ({left,right}_nops): Counters for the number of nops in each
1680 (d10v_debug): New variable to indicate whether debugging is turned
1683 * simops.c: (all functions): Change all #ifdef DEBUG code so that
1684 the input and output values can be traced, along with the
1685 instruction type. Make the -t option enable tracing.
1686 (all functions): Change printf calls to use the printf_filtered
1687 function in the callback table.
1689 * interp.c (_leftright): New enumeration to say whether 2 short
1690 instructions are done left first or right first.
1691 (do_{long,2_short,parallel}): Indicate in the machine state which
1692 type of instruction this is. Count each of the types of
1693 instructions executed.
1694 (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug
1696 (sim_resume): Pass left/right indication to do_2_short.
1697 (all functions): Change printf calls to use the printf_filtered
1698 function in the callback table.
1699 (sim_trace): Turn on debug flag if DEBUG was defined, and call
1701 (sim_info): Print out statistics on instructions.
1702 (sim_{trace,create_inferior}): Eliminate extraneous output unless
1704 (sim_open): If args == -t and DEBUG was defined, set d10v_debug.
1705 Only initialize the hash table the first time sim_open is called.
1707 * Makefile.in: Make objects depend on d10v_sim.h.
1708 ({,SIM_}CFLAGS): Include configure dependent switches. Setting
1709 CFLAGS does not override host/target defines or SIM_CFLAGS.
1710 (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode.
1711 (run): By default, the math library is not needed to be linked
1713 ({BFD,LIBIBERTY}_LIB): Define as variables so they can be
1715 (VPATH): Don't set to anything but @srcdir@ to work with non-GNU
1717 ({run,callback}.o): Provide explicit paths to their appropriate
1719 (gencode{,.o},d10v-opc.o): Split compilation into creating object
1720 and linking. Instead of linking in libopcodes.a, just compile
1721 d10v-opc.o directly to handle canadian cross.
1722 (CSEARCH): Add opcodes directory.
1724 * configure.in (--enable-sim-cflags): New switch to allow user to
1726 (CC_FOR_BUILD): Deal with canadian crosses.
1727 * configure: Regenerate.
1729 Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com>
1731 * simops.c: Include correct syscall.h for d10v, not host's.
1732 Fix #ifdef SYS_stat.
1734 Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1736 * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef.
1737 Add trap 2 to be printf and trap 3 to be putchar.
1739 Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com>
1741 * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support
1742 for low-level system calls.
1744 Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1746 * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems.
1748 Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1750 * d10v_sim.h (SEXT32): Added.
1751 * interp.c: Commented out printfs.
1752 * simops.c: Fixed error in sb and st2w.
1754 Thu Aug 15 13:30:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1756 * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining
1757 DSP instructions. Added modulo addressing.
1759 Sun Aug 11 12:57:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1761 * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot.
1763 Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1765 * d10v_sim.h, simops.c: Snapshot.
1767 Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1769 * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h,
1770 gencode.c, interp.c, simops.c: Created.