sim: unify sim-hload
[deliverable/binutils-gdb.git] / sim / d10v / ChangeLog
1 2015-12-27 Mike Frysinger <vapier@gentoo.org>
2
3 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
4
5 2015-12-26 Mike Frysinger <vapier@gentoo.org>
6
7 * config.in, configure: Regenerate.
8
9 2015-11-15 Mike Frysinger <vapier@gentoo.org>
10
11 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
12
13 2015-11-15 Mike Frysinger <vapier@gentoo.org>
14
15 * interp.c (sim_open): Delete sim_create_inferior call.
16
17 2015-11-15 Mike Frysinger <vapier@gentoo.org>
18
19 * d10v_sim.h (d10v_callback): Delete.
20 * interp.c (d10v_callback): Delete.
21 (do_long, do_2_short, do_parallel, set_dmap_register,
22 set_imap_register, xfer_mem, dmem_addr, imem_addr, sim_info,
23 sim_create_inferior): Replace d10v_callback->printf_filtered
24 with sim_io_printf.
25 (sim_open): Delete d10v_callback assignment.
26 * simops.c (move_to_cr, trace_input_func, do_trace_output_flush,
27 do_trace_output_finish, trace_output_40, trace_output_32,
28 trace_output_16, trace_output_void, trace_output_flag, OP_5F20,
29 OP_5201, OP_27000000, OP_3220, OP_3400, OP_3000, OP_6C1F, OP_6C01,
30 OP_6E1F, OP_6E01): Replace d10v_callback->printf_filtered with
31 sim_io_printf and d10v_callback->flush_stdout with
32 sim_io_flush_stdout.
33 (OP_5F00): Likewise. Rename d10v_callback to cb.
34
35 2015-11-15 Mike Frysinger <vapier@gentoo.org>
36
37 * Makefile.in (SIM_OBJS): Add sim-reason.o, sim-resume.o, and
38 sim-stop.o.
39 * d10v_sim.h (struct d10v_memory): Delete fault member.
40 (struct _state): Delete exception member.
41 * interp.c (lookup_hash): Call sim_engine_halt instead of setting
42 State.exception.
43 (do_2_short, do_parallel): Delete State.exception checks.
44 (sim_size): Mark static.
45 (map_memory): Call sim_engine_halt instead of returning fault.
46 Call xcalloc instead of calloc and checking the return.
47 (dmem_addr): Call sim_engine_halt when phys_size is 0.
48 (imem_addr): Likewise.
49 (stop_simulator, sim_stop, sim_stop_reason): Delete.
50 (sim_resume): Rename to ...
51 (step_once): ... this. Delete State.exception code and move
52 siggnal checking to sim_engine_run.
53 (sim_engine_run): New function.
54 * simops.c (EXCEPTION): Define.
55 (move_to_cr): Call EXCEPTION instead of setting State.exception.
56 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
57 OP_6601, OP_6201, OP_6200, OP_33010000, OP_5201, OP_27000000,
58 OP_2F000000, OP_3220, OP_3200, OP_3400, OP_3000, OP_34000000,
59 OP_6800, OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000,
60 OP_6A00, OP_6E1F, OP_6A01, OP_6E01, OP_37010000, OP_5FE0): Likewise.
61 (OP_5F20): Call sim_engine_halt instead of setting State.exception.
62 (OP_5F00): Call sim_engine_halt and EXCEPTION instead of setting
63 State.exception.
64
65 2015-11-15 Mike Frysinger <vapier@gentoo.org>
66
67 * d10v_sim.h (struct simops): Add SIM_DESC and SIM_CPU to func args.
68 (SET_CREG, SET_HW_CREG, SET_PSW_BIT): Pass sd and cpu to move_to_cr.
69 (dmem_addr, imem_addr, move_to_cr): Add SIM_DESC and SIM_CPU args.
70 (RB, SW, RW, SLW, RLW): Pass sd and cpu to dmem_addr.
71 * endian.c: Change d10v_sim.h include to sim-main.h.
72 * gencode.c: Likewise. Add SIM_DESC and SIM_CPU args to all OPs.
73 * interp.c (lookup_hash, do_long, do_2_short, do_parallel,
74 map_memory, set_dmap_register, dmap_register, set_imap_register,
75 imap_register, sim_d10v_translate_dmap_addr, xfer_mem,
76 sim_d10v_translate_imap_addr, sim_d10v_translate_addr): Add
77 SIM_DESC and SIM_CPU args and adjust all callers.
78 (trace_sd): Delete.
79 (sim_open): Do not assign trace_sd.
80 (sim_resume, sim_create_inferior, sim_fetch_register,
81 sim_store_register): Set up cpu from the first one in sd.
82 * simops.c (move_to_cr): Add SIM_DESC and SIM_CPU args.
83 (trace_input_func, trace_input, do_trace_output_finish,
84 do_trace_output_finish, trace_output_40, trace_output_32,
85 trace_output_16, trace_output_void, trace_output_flag): Add
86 SIM_DESC arg.
87 (trace_input_func): Likewise. Change trace_sd to sd.
88 (OP_*): Add SIM_DESC and SIM_CPU args to all OP funcs.
89
90 2015-11-14 Mike Frysinger <vapier@gentoo.org>
91
92 * interp.c (sim_close): Delete.
93
94 2015-11-10 Mike Frysinger <vapier@gentoo.org>
95
96 * interp.c (sim_d10v_translate_dmap_addr): Mark static.
97 (sim_d10v_translate_imap_addr): Likewise.
98 (sim_d10v_translate_addr): Likewise.
99
100 2015-06-23 Mike Frysinger <vapier@gentoo.org>
101
102 * configure: Regenerate.
103
104 2015-06-12 Mike Frysinger <vapier@gentoo.org>
105
106 * configure: Regenerate.
107
108 2015-06-12 Mike Frysinger <vapier@gentoo.org>
109
110 * configure: Regenerate.
111
112 2015-04-18 Mike Frysinger <vapier@gentoo.org>
113
114 * sim-main.h (SIM_CPU): Delete.
115
116 2015-04-18 Mike Frysinger <vapier@gentoo.org>
117
118 * sim-main.h (sim_cia): Delete.
119
120 2015-04-17 Mike Frysinger <vapier@gentoo.org>
121
122 * sim-main.h (CIA_GET, CIA_SET): Delete.
123
124 2015-04-17 Mike Frysinger <vapier@gentoo.org>
125
126 * interp.c (d10v_pc_get, d10v_pc_set): New functions.
127 (sim_open): Declare new local var i. Call CPU_PC_FETCH &
128 CPU_PC_STORE for all cpus.
129
130 2015-04-15 Mike Frysinger <vapier@gentoo.org>
131
132 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
133 * sim-main.h (STATE_CPU): Delete.
134
135 2015-04-13 Mike Frysinger <vapier@gentoo.org>
136
137 * configure: Regenerate.
138
139 2015-04-06 Mike Frysinger <vapier@gentoo.org>
140
141 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
142
143 2015-04-02 Mike Frysinger <vapier@gentoo.org>
144
145 * interp.c (lookup_hash): Change SIGILL to GDB_SIGNAL_ILL.
146 (sim_resume): Change SIGBUS/SIGSEGV to GDB_SIGNAL_BUS, SIGILL to
147 GDB_SIGNAL_ILL, and SIGTRAP to GDB_SIGNAL_TRAP.
148
149 2015-04-01 Mike Frysinger <vapier@gentoo.org>
150
151 * interp.c (sim_set_profile, sim_set_profile_size): Delete.
152
153 2015-03-31 Mike Frysinger <vapier@gentoo.org>
154
155 * Makefile.in (simops.o): New rule.
156
157 2015-03-30 Mike Frysinger <vapier@gentoo.org>
158
159 * d10v_sim.h (text, text_start, text_end, prog_bfd): Delete.
160 (SEXT8, SEXT16, SEXT32, MASK32): Undefine.
161 * interp.c: Delete run-sim.h and d10v_sim.h includes. Include
162 sim-main.h and sim-options.h.
163 (myname, sim_kind, init_text_p, prog_bfd_was_opened_p, prog_bfd,
164 text, text_start, text_end, decode_pc, sim_set_profile,
165 sim_set_profile_size, sim_set_trace, sim_set_callbacks,
166 sim_trace, sim_do_command, sim_load): Delete.
167 (INLINE): Delete define.
168 (free_state): New function.
169 (trace_sd): Declare global variable.
170 (sim_open): Rewrite to use new common logic.
171 (sim_close): Delete body.
172 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
173 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
174 * sim-main.h: New file.
175 * simops.c: Change d10v_sim.h include to sim-main.h.
176 (trace_input_func): Rewrite pc checks to use trace_sd.
177
178 2015-03-30 Mike Frysinger <vapier@gentoo.org>
179
180 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
181 * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
182 ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
183 (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
184
185 2015-03-30 Mike Frysinger <vapier@gentoo.org>
186
187 * Makefile.in (gencode.o, d10v-opc.o): Add $(WARN_CFLAGS).
188 (gencode): Add $(BUILD_LDFLAGS).
189 * endian.c (get_word, get_longword, get_longlong, write_word,
190 write_longword, write_longlong): Convert old style prototypes.
191 * gencode.c: Include string.h.
192 (main): Convert old style prototype.
193 (write_header): Convert old style prototype and fix printf format.
194 (write_template, write_opcodes): Likewise.
195 (check_opcodes): Mark static void.
196 * interp.c: Include inttypes.h and run-sim.h.
197 (hash, lookup_hash, decode_pc, do_long, do_2_short, do_parallel,
198 add_commas, sim_size, sim_write, sim_read, sim_open, sim_close,
199 sim_set_profile, sim_set_profile_size, sim_stop, +sim_resume,
200 sim_info, sim_set_callbacks, sim_stop_reason, sim_fetch_register,
201 sim_store_register, sim_do_command, sim_load): Convert old style
202 prototypes.
203 (sim_create_inferior): Fix pointer cast to use uintptr_t.
204 * simops.c (strrchr): Delete prototype.
205 (trace_input_func): Mark name static.
206 (trace_input_func, trace_output_void, trace_output_flag): Convert old style
207 prototypes.
208 (OP_*): Convert old style prototypes.
209
210 2015-03-30 Mike Frysinger <vapier@gentoo.org>
211
212 * Makefile.in (interp.o, simops.o, endian.o, table.o): Delete rules.
213 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
214 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
215 SIM_AC_OPTION_INLINE.
216 * config.in, configure: Regenerate.
217 * interp.c (sim_trace): Define.
218
219 2015-03-16 Mike Frysinger <vapier@gentoo.org>
220
221 * config.in, configure: Regenerate.
222
223 2015-03-14 Mike Frysinger <vapier@gentoo.org>
224
225 * Makefile.in (SIM_EXTRA_CFLAGS): Add
226 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
227 (SIM_RUN_OBJS): Set to run.o.
228
229 2015-03-14 Mike Frysinger <vapier@gentoo.org>
230
231 * configure.ac (AC_CHECK_HEADERS): Delete.
232 * aclocal.m4, configure: Regenerate.
233
234 2014-08-19 Alan Modra <amodra@gmail.com>
235
236 * configure: Regenerate.
237
238 2014-08-15 Roland McGrath <mcgrathr@google.com>
239
240 * configure: Regenerate.
241 * config.in: Regenerate.
242
243 2014-03-10 Mike Frysinger <vapier@gentoo.org>
244
245 * interp.c (sim_do_command): Add const to cmd.
246
247 2014-03-05 Mike Frysinger <vapier@gentoo.org>
248
249 * interp.c (sim_load): Add const to prog.
250
251 2014-03-04 Mike Frysinger <vapier@gentoo.org>
252
253 * configure: Regenerate.
254
255 2013-09-23 Alan Modra <amodra@gmail.com>
256
257 * configure: Regenerate.
258
259 2013-06-03 Mike Frysinger <vapier@gentoo.org>
260
261 * aclocal.m4, configure: Regenerate.
262
263 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
264
265 * configure: Rebuild.
266
267 2012-06-19 Joel Brobecker <brobecker@adacore.com>
268
269 * interp.c: #include "config.h" instead of "sysdep.h".
270 Add conditional include of string.h or strings.h, as well as
271 conditional include of stdlib.h.
272
273 2012-06-15 Joel Brobecker <brobecker@adacore.com>
274
275 * config.in, configure: Regenerate.
276
277 2012-05-24 Pedro Alves <palves@redhat.com>
278
279 PR gdb/7205
280
281 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
282
283 2012-03-24 Mike Frysinger <vapier@gentoo.org>
284
285 * aclocal.m4, config.in, configure: Regenerate.
286
287 2011-12-03 Mike Frysinger <vapier@gentoo.org>
288
289 * aclocal.m4: New file.
290 * configure: Regenerate.
291
292 2011-10-17 Mike Frysinger <vapier@gentoo.org>
293
294 * configure.ac: Change include to common/acinclude.m4.
295
296 2011-10-17 Mike Frysinger <vapier@gentoo.org>
297
298 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
299 call. Replace common.m4 include with SIM_AC_COMMON.
300 * configure: Regenerate.
301
302 2010-04-14 Mike Frysinger <vapier@gentoo.org>
303
304 * interp.c (sim_write): Add const to buffer arg.
305
306 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
307
308 * configure: Regenerate.
309
310 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
311
312 * config.in: Regenerate.
313 * configure: Likewise.
314
315 * configure: Regenerate.
316
317 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
318
319 * configure: Regenerate to track ../common/common.m4 changes.
320 * config.in: Ditto.
321
322 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
323 Daniel Jacobowitz <dan@codesourcery.com>
324 Joseph Myers <joseph@codesourcery.com>
325
326 * configure: Regenerate.
327
328 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
329
330 * acconfig.h: Remove.
331 * config.in: Regenerate.
332
333 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
334
335 * configure: Regenerated.
336
337 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
338
339 * configure: Regenerated.
340
341 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
342
343 * configure: Regenerated.
344
345 2006-04-18 Nick Clifton <nickc@redhat.com>
346
347 * interp.c (sim_stop_reason): Fix typo.
348
349 2005-11-28 Mark Mitchell <mark@codesourcery.com>
350
351 * interp.c (gdb/signals.h): Include it.
352 (sim_stop_reason): Use TARGET_SIGNAL_*.
353
354 2005-03-23 Mark Kettenis <kettenis@gnu.org>
355
356 * configure: Regenerate.
357
358 2005-01-14 Andrew Cagney <cagney@gnu.org>
359
360 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
361 explicit call to AC_CONFIG_HEADER.
362 * configure: Regenerate.
363
364 2005-01-12 Andrew Cagney <cagney@gnu.org>
365
366 * configure.ac: Update to use ../common/common.m4.
367 * configure: Re-generate.
368
369 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
370
371 * configure: Regenerated to track ../common/aclocal.m4 changes.
372
373 2005-01-07 Andrew Cagney <cagney@gnu.org>
374
375 * configure.ac: Rename configure.in, require autoconf 2.59.
376 * configure: Re-generate.
377
378 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
379
380 * configure: Regenerate for ../common/aclocal.m4 update.
381
382 2004-06-28 Andrew Cagney <cagney@gnu.org>
383
384 * interp.c (sim_resume): Rename ui_loop_hook to
385 deprecated_ui_loop_hook.
386
387 2003-10-30 Andrew Cagney <cagney@redhat.com>
388
389 * simops.c: Replace "struct symbol_cache_entry" with "struct
390 bfd_symbol".
391
392 2003-06-22 Andrew Cagney <cagney@redhat.com>
393
394 * interp.c (xfer_mem): Simplify. Only do a single partial
395 transfer. Problem reported by Tom Rix.
396
397 2003-05-07 Andrew Cagney <cagney@redhat.com>
398
399 * interp.c (sim_d10v_translate_addr): Add "regcache" parameter.
400 (sim_d10v_translate_imap_addr): Ditto.
401 (sim_d10v_translate_dmap_addr): Ditto.
402 (xfer_mem): Pass NULL regcache to sim_d10v_translate_addr.
403 (dmem_addr): Pass NULL regcache to sim_d10v_translate_dmap_addr.
404 (dmap_register, imap_register): Add "regcache" parameter.
405 (imem_addr): Pass NULL regcache to sim_d10v_translate_imap_addr.
406 (sim_fetch_register): Pass NULL regcache to imap_register and
407 dmap_register.
408
409 2003-02-27 Andrew Cagney <cagney@redhat.com>
410
411 * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
412
413 2002-11-13 Andrew Cagney <cagney@redhat.com>
414
415 * simops.c: Include <string.h>.
416
417 2002-06-17 Andrew Cagney <cagney@redhat.com>
418
419 * d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
420
421 2002-06-16 Andrew Cagney <ac131313@redhat.com>
422
423 * configure: Regenerated to track ../common/aclocal.m4 changes.
424
425 2002-06-13 Tom Rix <trix@redhat.com>
426
427 * interp.c (xfer_mem): Fix transfers across multiple segments.
428
429 2002-06-09 Andrew Cagney <cagney@redhat.com>
430
431 * Makefile.in (INCLUDE): Update path to callback.h.
432 * gencode.c: Do not include "callback.h".
433 * d10v_sim.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
434 * interp.c: Ditto.
435
436 2002-06-08 Andrew Cagney <cagney@redhat.com>
437
438 * interp.c (sim_fetch_register): Fix name of enum used in cast.
439 (sim_store_register): Ditto.
440
441 2002-06-02 Elena Zannoni <ezannoni@redhat.com>
442
443 From Jason Eckhardt <jle@redhat.com>
444 * d10v_sim.h (INC_ADDR): Correctly handle the case where MOD_E is
445 less than MOD_S (post-decrement).
446
447 2002-06-01 Andrew Cagney <ac131313@redhat.com>
448
449 * interp.c (sim_fetch_register, sim_store_register): Use a switch
450 statement and enums from "sim-d10v.h".
451
452 2002-05-28 Elena Zannoni <ezannoni@redhat.com>
453
454 * interp.c (sim_create_inferior): Add comment.
455
456 From Alan Matsuoka <alanm@redhat.com>:
457 From 2001-04-27 Jason Eckhardt <jle@cygnus.com>:
458 * simops.c (OP_4400): Output "mvf0f" instead of "mf0f".
459 (OP_4401): Output "mvf0t" instead of "mf0t".
460 (OP_460B): Do not output a flag register.
461 (OP_4609): Do not output a flag register.
462
463 2002-05-23 Andrew Cagney <ac131313@redhat.com>
464
465 * Makefile.in (INCLUDE): Add "gdb/sim-d10v.h".
466 * interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
467
468 2001-08-01 John R. Moore <jmoore@redhat.com>
469
470 * interp.c (sim_create_inferior): Removed a hack that stated
471 it was setting r0/r1 with argc/argv.
472
473 2001-04-15 J.T. Conklin <jtc@redback.com>
474
475 * Makefile.in (simops.o): Add simops.h to dependency list.
476
477 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
478
479 * configure: Regenerated to track ../common/aclocal.m4 changes.
480
481 Tue Apr 18 16:26:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
482
483 * interp.c (sim_resume): Deliver SIGILL.
484 (lookup_hash): Do not print SIGILL message.
485
486 Tue Feb 22 18:24:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
487
488 * Makefile.in (SIM_EXTRA_CFLAGS): Define SIM_HAVE_ENVIRONMENT.
489 * interp.c (sim_set_trace): Replace sim_trace. Enable tracing.
490
491 Tue Feb 8 17:41:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
492
493 * d10v_sim.h (SIG_D10V_BUS): Define.
494
495 * simops.c (address_exception): Delete function.
496 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
497 OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800,
498 OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00,
499 OP_6E1F, OP_6A01, OP_6E01, OP_37010000): Replace call to
500 address_exception with code that sets SIG_D10V_BUS.
501
502 * interp.c (sim_resume): When SIGBUS or SIGSEGV, deliver a bus
503 error to the simulator before resuming execution.
504 (sim_trace): Check stop reason and use that to determine sim_trace
505 return value.
506 (sim_stop_reason): For SIG_D10V_BUS return a SIGBUS / SIGSEGV
507 sigrc.
508
509 Tue Jan 18 16:07:42 MST 2000 Diego Novillo <dnovillo@cygnus.com>
510
511 * interp.c (sim_create_inferior): Change internal initial value for
512 DMAP2 to 0x2000.
513
514 Mon Jan 3 02:06:07 2000 Andrew Cagney <cagney@b1.cygnus.com>
515
516 * interp.c (lookup_hash): Stop the update of the PC when there was
517 an illegal instruction exception.
518
519 Mon Jan 3 00:14:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
520
521 * simops.c (address_exception): New function.
522 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
523 OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800,
524 OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00,
525 OP_6E1F, OP_6A01, OP_6E01, OP_37010000): For "ld", "ld2w", "st"
526 and "st2w" check that the address is aligned.
527
528 1999-12-30 Chandra Chavva <cchavva@cygnus.com>
529
530 * d10v_sim.h (INC_ADDR): Added code to assign
531 proper address for loads with predec operations.
532
533 1999-11-25 Nick Clifton <nickc@cygnus.com>
534
535 * simops.c (OP_4E0F): New function: Simulate new bit pattern for
536 cpfg instruction.
537
538 Fri Oct 29 18:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
539
540 * simops.c (move_to_cr): Don't allow user to set PSW.DM in either
541 DPSW and BPSW.
542
543 Thu Oct 28 01:26:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
544
545 * simops.c (OP_5F20): Use SET_HW_PSW when updating PSW.
546 (PSW_HW_MASK): Declare.
547
548 * d10v_sim.h (move_to_cr): Add ``psw_hw_p'' parameter.
549 (SET_CREG, SET_PSW_BIT): Update.
550 (SET_HW_CREG, SET_HW_PSW): Define.
551
552 Sun Oct 24 21:38:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
553
554 * interp.c (sim_d10v_translate_dmap_addr): Fix extraction of IOSP
555 for DMAP3.
556
557 Sun Oct 24 16:04:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
558
559 * interp.c (sim_d10v_translate_addr): New function.
560 (xfer_mem): Rewrite. Use sim_d10v_translate_addr.
561 (map_memory): Make INLINE.
562
563 Sun Oct 24 13:45:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
564
565 * interp.c (sim_d10v_translate_dmap_addr): New function.
566 (dmem_addr): Rewrite. Use sim_d10v_translate_dmap_addr. Change
567 offset parameter to type uint16.
568 * d10v_sim.h (dmem_addr): Update declaration.
569
570 Sun Oct 24 13:07:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
571
572 * interp.c (imap_register, set_imap_register, dmap_register,
573 set_imap_register): Use map_memory.
574 (DMAP): Update.
575 (sim_create_inferior): Initialize all DMAP registers. NOTE that
576 DMAP2, in internal memory mode, is set to 0x0000 and NOT
577 0x2000. This is consistent with the older d10v boards.
578
579 Sun Oct 24 11:22:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
580
581 * interp.c (sim_d10v_translate_imap_addr): New function.
582 (imem_addr): Rewrite. Use sim_d10v_translate_imap_addr.
583 (last_from, last_to): Declare.
584
585 Sun Oct 24 01:21:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
586
587 * d10v_sim.h (struct d10v_memory): Define. Support very long
588 memories.
589 (struct _state): Replace imem, dmem and umem by mem.
590 (IMAP_BLOCK_SIZE, DMAP_BLOCK_SIZE, SEGMENT_SIZE, IMEM_SEGMENTS,
591 DMEM_SEGMENTS, UMEM_SEGMENTS): Define.
592
593 * interp.c (map_memory): New function.
594 (sim_size, xfer_memory, imem_addr, dmem_addr): Update.
595 (UMEM_SEGMENTS): Moveed to "d10v_sim.h".
596 (IMEM_SIZEDMEM_SIZE): Delete.
597
598 Sat Oct 23 20:06:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
599
600 * interp.c: Include "sim-d10v.h".
601 (imap_register, set_imap_register, dmap_register,
602 set_dmap_register, spi_register, spu_register, set_spi_register,
603 set_spu_register): New functions.
604 (sim_create_inferior): Update.
605 (sim_fetch_register, sim_store_register): Rewrite. Use enums
606 defined in sim-d10v.h.
607
608 * d10v_sim.h (DEBUG_MEMORY): Define.
609 (IMAP0, IMAP1, DMAP, SET_IMAP0, SET_IMAP1, SET_DMAP): Delete.
610
611 Sat Oct 23 18:41:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
612
613 * interp.c (sim_open): Allow a debug value to be passed to the -t
614 option.
615 (lookup_hash): Don't exit on an illegal instruction.
616 (do_long, do_2_short, do_parallel): Check for failed instruction
617 lookup.
618
619 Mon Oct 18 18:03:24 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
620
621 * simops.c (OP_3220): Fix trace output for illegal accumulator
622 message.
623
624 1999-09-14 Nick Clifton <nickc@cygnus.com>
625
626 * simops.c: Disable setting of DM bit in PSW.
627
628 Wed Sep 8 19:34:55 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
629
630 * simops.c (op_types): Added new memory indirect type OP_MEMREF3.
631 (trace_input_func): Added support for OP_MEMREF3.
632 (OP_32010000): New instruction ld.
633 (OP_33010000): New instruction ld2w.
634 (OP_5209): New instruction sac.
635 (OP_4209): New instruction sachi.
636 (OP_3220): New instruction slae.
637 (OP_36010000): New instruction st.
638 (OP_37010000): New instruction st2w.
639
640 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
641
642 * interp.c (old_segment_mapping): New global.
643 (xfer_mem): Change the default segment mapping to be the way
644 that Mitsubishi prefers, but use the previous mapping if
645 old_segment_mapping is true.
646 (sim_open): Add an option -oldseg to get the old mapping.
647 (sim_create_inferior): Init mapping registers based on the
648 value of old_segment_mapping.
649
650 1999-09-07 Nick Clifton <nickc@cygnus.com>
651
652 * simops.c (OP_6601): Do not write back decremented address if
653 either of the destination registers was the same as the address
654 register.
655 (OP_6201): Do not write back incremented address if either of the
656 destination registers was the same as the address register.
657
658 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
659
660 * configure: Regenerated to track ../common/aclocal.m4 changes.
661
662 1999-05-08 Felix Lee <flee@cygnus.com>
663
664 * configure: Regenerated to track ../common/aclocal.m4 changes.
665
666 1999-04-02 Keith Seitz <keiths@cygnus.com>
667
668 * interp.c (ui_loop_hook_counter): New global (when NEED_UI_LOOP_HOOK
669 defined).
670 (sim_resume): If the counter has expired, call the ui_loop_hook,
671 if defined.
672 (UI_LOOP_POLL_INTERVAL): Define. Used to tweak the frequency of
673 ui_loop_hook calls.
674 * Makefile.in (SIM_EXTRA_CFLAGS): Include NEED_UI_LOOP_HOOK.
675
676 Wed Mar 10 19:32:13 1999 Nick Clifton <nickc@cygnus.com>
677
678 * simops.c: If load instruction with auto increment/decrement
679 addressing is used when the destination register is the same as
680 the address register, then ignore the auto increment/decrement.
681
682 Wed Mar 10 19:32:13 1999 Martin M. Hunt <hunt@cygnus.com>
683
684 * simops.c (OP_5F00): Ifdef SYS_stat case because
685 not all systems have it defined.
686
687 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
688
689 * simops.c (OP_5607): Correct saturation comparison/assignment.
690 (OP_1201, OP_1203, OP_17001200, OP_17001202,
691 OP_2A00, OP_2800, OP_2C00, OP_3200, OP_3201,
692 OP_1001, OP_1003, OP_17001000, OP_17001002): Ditto.
693
694 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
695
696 * simops.c (OP_5605): Sign extend MIN32 and MAX32 before saturation
697 comparison.
698 (OP_5607): Ditto.
699 (OP_2A00): Ditto.
700 (OP_2800): Ditto.
701
702 1999-01-13 Jason Molenda (jsm@bugshack.cygnus.com)
703
704 * simops.c (OP_1223): Sign extend MIN32 and MAX32 before saturation
705 comparison.
706
707 Tue Nov 24 17:04:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
708
709 * simops.c (sys/syscall.h): Include targ-vals.h instead.
710 (SYS_*): Replace with TARGET_SYS_*.
711
712 * Makefile.in: Add dependency on targ-vals.h.
713 (NL_TARGET): Define as NL_TARGET_d10v.
714
715 Wed Sep 30 00:06:32 1998 Andrew Cagney <cagney@amy.cygnus.com>
716
717 * interp.c (xfer_mem): Missing break, instruction memory case
718 flowed into unified memory case.
719
720 Wed Sep 30 10:14:18 1998 Nick Clifton <nickc@cygnus.com>
721
722 * simops.c: If load instruction with auto increment/decrement
723 addressing is used when the destination register is the same as
724 the address register, then ignore the auto increment/decrement.
725
726 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
727
728 * configure: Regenerated to track ../common/aclocal.m4 changes.
729
730 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
731
732 * configure: Regenerated to track ../common/aclocal.m4 changes.
733 * config.in: Ditto.
734
735 Sun Apr 26 15:20:23 1998 Tom Tromey <tromey@cygnus.com>
736
737 * acconfig.h: New file.
738 * configure.in: Reverted change of Apr 24; use sinclude again.
739
740 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
741
742 * configure: Regenerated to track ../common/aclocal.m4 changes.
743 * config.in: Ditto.
744
745 Fri Apr 24 11:20:06 1998 Tom Tromey <tromey@cygnus.com>
746
747 * configure.in: Don't call sinclude.
748
749 Fri Apr 24 11:04:46 1998 Andrew Cagney <cagney@chook.cygnus.com>
750
751 * interp.c (struct hash_entry): OPCODE and MASK are unsigned.
752
753 * d10v_sim.h (remote-sim.h, sim-config.h): Include.
754
755 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
756
757 * configure: Regenerated to track ../common/aclocal.m4 changes.
758
759 Wed Apr 1 12:59:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
760
761 * simops.c (trace_input_func): Use move_from_cr / CREGS to obtain
762 up-to-date CR value.
763 (OP_OP_1000000, add3): Trace inputs before performing add.
764 (OP_5F00, <*>): Trace input registers before making system call.
765 (OP_5F00, <kill>): Trace R0, R1 not REGn.
766 (OP_5F00, <getpid>): Always return 47.
767
768 * d10v_sim.h (SLOT, SLOT_NR, SLOT_PEND_MASK, SLOT_PEND,
769 SLOT_DISCARD, SLOT_FLUSH): Define. An implementation of write
770 back slots.
771 (struct _state): Add struct slot slot to global state variable.
772 (struct _state): Delete fields SM, EA, DB, DM, IE, RP, MD, FX, ST,
773 F0, F1, C from global State variable.
774 (struct _state): Add struct trace to global State variable.
775 (GPR, SET_GPR): Define. SET_GPR uses SLOT_PEND.
776 (PSW*, SET_PSW*): Define. SET_PSW* uses SET_CREG.
777 (CREG, SET_CREG, SET_*): Define. SET_CREG uses func move_to_cr.
778 (INC_ADDR): Re-implement. Use SET_GPR to update registers.
779 (JMP): Re-implement. Use SET_* to update registers.
780
781 * interp.c: Use new SET_* et.al. macros to fetch / store
782 registers.
783 (get_operands): Squirrel away trace values at start of each
784 operand decode.
785 (do_2_short): Flush pending writes before issuing second
786 instruction.
787 (sim_resume): Flush pending writes at end of instruction cycle.
788 (sim_fetch_register, sim_store_register, sim_create_inferior):
789 After scheduling updates to registers using SET_*, flush updates.
790 (sim_resume): Re-order handling of RPT/repeat and IBA/hbreak so
791 that each sets pc using SET_* and last SET_* eventually winds out.
792
793 * simops.c: Use new SET_* et.al. macros to fetch / store
794 registers.
795 (move_to_cr): Add MASK argument for selective update of CREG bits.
796 Re-implement using new SET_* macros.
797 (trace_output_func, trace_output): Delete. Replace with.
798 (do_trace_output_flush, trace_output_finish, trace_output_40,
799 trace_output_32, trace_output_16, trace_output_void,
800 trace_output_flag): New functions. Handle specific trace cases.
801 (OP_*): Re-write tracing to use new trace_output_* functions.
802 (OP_*): Re-write to use new SET_* et.al. macros.
803 (FUNC, PARM[1-4], RETVAL, RETVAL32): Redo definition.
804 (RETVAL_HIGH, RETVAL_LOW): Delete, use RETVAL32.
805
806 Wed Apr 1 12:55:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
807
808 * configure.in (SIM_AC_OPTION_WARNINGS): Add.
809 configure: Re-generate.
810
811 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
812
813 * configure: Regenerated to track ../common/aclocal.m4 changes.
814
815 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
816
817 * configure: Regenerated to track ../common/aclocal.m4 changes.
818
819 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
820
821 * configure: Regenerated to track ../common/aclocal.m4 changes.
822
823 Tue Feb 17 12:38:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
824
825 * interp.c (sim_store_register, sim_fetch_register): Pass in
826 length parameter. Return -1.
827
828 Mon Oct 27 14:43:33 1997 Fred Fish <fnf@cygnus.com>
829
830 * (dmem_addr): If address is illegal or in I/O space, signal a bus
831 error. Allocate unified memory on demand. Fix DMEM address
832 calculations.
833
834 Mon Feb 16 10:27:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
835
836 * simops.c (OP_5F20): Implement "dbt".
837 (OP_5F60): Implement "rtd".
838
839 * d10v_sim.h (DPC_CR): Define enum.
840 (DBT_VECTOR_START): Define
841 (DPSW, DPC): Define.
842
843 Fri Feb 13 15:15:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
844
845 * simops.c (move_to_cr): Sync regs[SP_IDX] with State.sp according
846 to PSW:SM.
847
848 * d10v_sim.h (struct _state): Add sp, as holding area for SPI/SPU.
849 (SP_IDX): Define.
850
851 Wed Feb 11 16:53:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
852
853 * simops.c (OP_5F00): Call error instead of abort for unknown
854 syscalls.
855
856 * d10v_sim.h (enum): Define DPSW_CR.
857
858 * simops.c (move_to_cr): Mask out hardwired zero bits in DPSW.
859
860 Tue Feb 10 18:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
861
862 * interp.c (sim_write_phys): Delete.
863 (sim_load): Call sim_load_file with sim_write and LMA.
864
865 Mon Feb 9 12:05:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
866
867 * interp.c: Rewrite xfer_mem so that it translates addresses as -
868 0x00... - DMAP translated memory, 0x01... IMAP translated memory,
869 0x10... - on-chip data, 0x11... - on-chip insn, 0x12... - unified
870 memory.
871 (pc_addr): Delete.
872 (imem_addr): New function - translate IMEM address.
873 (sim_resume): Use imem_addr to translate insn address, abort if
874 translation failed.
875 (sim_create_inferior): Write ARGV to memory using sim_write. Pass
876 argc/argv using r0/r1 not r2/r3.
877 (sim_size): Do not initialize IMAP/DMAP here.
878 (sim_open): Call sim_create_inferior and sim_size to initialize
879 the system.
880 (sim_create_inferior): Initialize IMAP/DMAP to hardware reset
881 defaults.
882 (init_system): Delete.
883 (xfer_mem, sim_fetch_register, sim_store_register): Do not call
884 init_system.
885 (decode_pc): Check prog_bfd is defined before looking up .text
886 section.
887
888 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
889
890 * configure: Regenerated to track ../common/aclocal.m4 changes.
891
892 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
893
894 * configure: Regenerated to track ../common/aclocal.m4 changes.
895
896 Sun Jan 25 22:23:01 1998 Michael Meissner <meissner@cygnus.com>
897
898 * interp.c (sim_stop_reason): Exit status is now in r0, not r2.
899
900 Sat Jan 24 19:00:30 1998 Michael Meissner <meissner@cygnus.com>
901
902 * d10v_sim.h (DEBUG_TRAP): New debug flag.
903
904 * simops.c (OP_5F00): If DEBUG_TRAP is on, turn traps 0-14 into
905 printing the registers.
906
907 Thu Jan 22 17:54:01 1998 Michael Meissner <meissner@cygnus.com>
908
909 * simops.c (op_types): New ABI, args are r0..r3, system call # is
910 in r4.
911 (trace_{in,out}put_func): Ditto.
912 (OP_4900): Ditto.
913 (OP_24800000): Ditto.
914 (OP_4D00): Ditto.
915 (OP_5F00): Ditto.
916
917 Thu Jan 22 14:30:36 1998 Fred Fish <fnf@cygnus.com>
918
919 * interp.c (UMEM_SEGMENTS): New define, set to 128.
920 (sim_size): Use UMEM_SEGMENTS rather than hardwired constant.
921 (sim_close): Reset prog_bfd to NULL after closing it. Also
922 reset prog_bfd_was_opened_p after closing prog_bfd.
923 (sim_load): Reset prog_bfd_was_opened_p after closing prog_bfd.
924 (sim_create_inferior): Get start address from abfd not prog_bfd.
925 (xfer_mem): Do bounds checking on addresses and return zero length
926 read/write on bad addresses, rather than aborting. Prepare to
927 be able to handle xfers that cross segment boundaries, but not
928 yet implemented. Only emit debug message when d10v_debug is
929 set as well as DEBUG being defined.
930
931 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
932
933 * configure: Regenerated to track ../common/aclocal.m4 changes.
934
935 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
936
937 * configure: Regenerated to track ../common/aclocal.m4 changes.
938 * config.in: Ditto.
939
940 Tue Dec 9 10:28:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
941
942 * d10v_sim.h (RPT_S): Index cregs with RPT_S_CR not RPT_E_CR.
943 (BPSW): Ditto for BPSW_CR and not PSW_CR.
944
945 * simops.c (OP_5F40): JMP to BPC instead of assigning PC directly.
946
947 Mon Dec 8 12:58:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
948
949 * simops.c (OP_5F00): From Martin Hunt <hunt@cygnus.com>. Change
950 reserved trap from 0 to 15. Add trap emulation code for 0-14.
951
952 * interp.c (sim_resume): From Martin Hunt <hunt@cygnus.com>. Check
953 IBA for SDBT.
954
955 * d10v_sim.h (AE_VECTOR_START, RIE_VECTOR_START,
956 SDBT_VECTOR_START, TRAP_VECTOR_START): Define.
957
958 * simops.c (OP_5F00): For "trap", mask out all but SM bit in PSW,
959 use move_to_cr.
960 (OP_5F00): For "trap", update BPSW with move_to_cr.
961
962 Fri Dec 5 15:31:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
963
964 * d10v_sim.h (enum): Enumerate CR register names.
965 (enum): Enumerate PSW bit values.
966 (PSW): Obtain value uing move_from_cr.
967 (MOD_S, MOD_E, BPSW): Make r-values.
968 (move_from_cr, move_to_cr): Declare functions.
969
970 * interp.c (sim_fetch_register, sim_store_register): Use
971 move_from_cr and move_to_cr for CR register transfers.
972
973 * simops.c (move_from_cr, move_to_cr): New functions.
974 (OP_5F40): Move BPSW to PSW using move_to_cr and move_from_cr.
975 (OP_5600): For "mvtc", use function move_to_cr.
976 (OP_5200): For "mvfc", use function move_from_cr.
977
978 Fri Dec 5 13:33:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
979
980 * simops.c (OP_5600): For "mvtc" MOD_E and MOD_S, ensure that the
981 LSbit is zero.
982
983 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
984
985 * configure: Regenerated to track ../common/aclocal.m4 changes.
986
987 Thu Dec 4 16:51:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
988
989 * d10v_sim.h (struct _state): Add DM - PSW debug mask.
990
991 * simops.c (OP_5600): For "mvtc", save PSW.DM.
992 (OP_5200): Ditto for "mvfc".
993
994 Wed Dec 3 17:27:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
995
996 * d10v_sim.h (SEXT56): Define.
997
998 * simops.c (OP_4201): For "rac", sign extend 56 bit value before
999 it is shifted.
1000
1001 * d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using
1002 SIGNED64 macro.
1003
1004 Tue Dec 2 15:38:34 1997 Fred Fish <fnf@cygnus.com>
1005
1006 * interp.c (sim_resume): Call do_2_short with LEFT_FIRST or
1007 RIGHT_FIRST, as appropriate, instead of hardcoded ints that
1008 don't match enum values.
1009
1010 Tue Dec 2 15:01:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
1011
1012 * simops.c (OP_3A00): For "macu", perform multiply stage using 32
1013 bit rather than 16 bit precision.
1014 (OP_3C00): For "mulxu", store unsigned product in ACC.
1015 (OP_3800): For "msbu", subtract unsigned product from ACC,
1016 (OP_0): For "sub", compute carry by comparing inputs.
1017
1018 Tue Dec 2 11:04:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1019
1020 * simops.c (OP_1000): For "sub2w", compute carry by comparing
1021 inputs.
1022
1023 Mon Nov 17 20:57:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
1024
1025 * simops.c (OP_1): Use 32 bit unsigned arithmetic for subtract,
1026 carry indicated by value > 0xffff.
1027
1028 Fri Nov 14 12:51:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1029
1030 * interp.c (sim_resume): Don't set up SIGINT handler using signal,
1031 handled by client.
1032 (sim_resume): Fix race condition of a direct assignment to
1033 stop_simulator, conditionally call sim_stop.
1034 (sim_stop_reason): Check stop_simulator returning SIGINT. Clear
1035 stop_simulator ready for next sim_resume call.
1036 (sim_ctrl_c): Delete function.
1037
1038 Thu Nov 13 19:29:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
1039
1040 * interp.c (sim_resume): For "REP", only check/update the PC when
1041 a branch instruction has not been executed.
1042
1043 Mon Nov 10 17:50:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
1044
1045 * simops.c (OP_4201): "rachi". Sign extend bit 40 of ACC. Sign
1046 extend bit 44 all constants.
1047 (OP_4201): Replace GCC specific 0x..LL with SIGNED64 macro.
1048
1049 Fri Oct 24 10:26:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1050
1051 * d10v_sim.h: Include sim-types.h.
1052 (uint8, in816, uiny16, int32, uint32, int64, uint64): Typedef
1053 using unsigned8 et.al. from sim-types.h.
1054 (SEXT32, SEXT40, SEXT44, SEXT60): Replace GCC specific 0x..LL with
1055 SIGNED64 macro.
1056
1057 Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1058
1059 * interp.c (sim_write_phys): New function, write to physical
1060 instead of virtual memory.
1061
1062 * interp.c (sim_load): Pass lma_p and sim_write_phys to
1063 sim_load_file.
1064
1065 Mon Oct 13 10:55:07 1997 Fred Fish <cygnus.com>
1066
1067 * simops.c (OP_6A01): Change OP_POSTDEC to OP_POSTINC and move
1068 exception generation code to OP_6E01.
1069 (OP_6E01): Change OP_POSTINC to OP_POSTDEC and insert exception
1070 generation code.
1071
1072 Sat Oct 11 09:02:08 1997 Fred Fish <fnf@cygnus.com>
1073
1074 * simops.c (OP_6401): postdecrement on r15 is OK, remove exception.
1075 (OP_6601): Ditto.
1076
1077 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1078
1079 * configure: Regenerated to track ../common/aclocal.m4 changes.
1080
1081 Sat Sep 27 12:51:34 1997 Fred Fish <fnf@cygnus.com>
1082
1083 * interp.c (pc_addr): Discard upper bit(s) of PC in case
1084 IMAP1 selects unified memory.
1085 * d10v_sim.h (INC_ADDR): Align MOD_E to increment before testing
1086 for end condition.
1087
1088 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1089
1090 * configure: Regenerated to track ../common/aclocal.m4 changes.
1091
1092 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1093
1094 * configure: Regenerated to track ../common/aclocal.m4 changes.
1095
1096 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1097
1098 * configure: Regenerated to track ../common/aclocal.m4 changes.
1099
1100 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1101
1102 * configure: Regenerated to track ../common/aclocal.m4 changes.
1103
1104 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1105
1106 * configure: Regenerated to track ../common/aclocal.m4 changes.
1107
1108 Wed Sep 10 22:30:24 1997 Martin M. Hunt <hunt@cygnus.com>
1109
1110 * interp.c (sim_resume): Increment PC at end of rep
1111 loop.
1112
1113 * simops.c (OP_4201): Fix rachi instruction.
1114
1115 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1116
1117 * configure: Regenerated to track ../common/aclocal.m4 changes.
1118
1119 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1120
1121 * configure: Regenerated to track ../common/aclocal.m4 changes.
1122 * config.in: Ditto.
1123
1124 Tue Aug 26 10:37:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
1125
1126 * interp.c (sim_kill): Delete.
1127 (sim_create_inferior): Add ABFD argument.
1128 (sim_load): Move setting of PC from here.
1129 (sim_create_inferior): To here.
1130 (start_address): Delete variable.
1131
1132 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1133
1134 * configure: Regenerated to track ../common/aclocal.m4 changes.
1135 * config.in: Ditto.
1136
1137 Mon Aug 25 15:39:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1138
1139 * interp.c (sim_open): Add ABFD argument.
1140
1141 Tue May 20 10:14:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
1142
1143 * interp.c (sim_open): Add callback argument.
1144 (sim_set_callbacks): Remove SIM_DESC argument.
1145
1146 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1147
1148 * configure: Regenerated to track ../common/aclocal.m4 changes.
1149
1150 Tue Apr 22 10:29:23 1997 Doug Evans <dje@canuck.cygnus.com>
1151
1152 * interp.c (sim_open): Undo patch to add -E support.
1153
1154 Fri Apr 18 13:39:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
1155
1156 * interp.c (sim_stop): New function.
1157
1158 Thu Apr 17 02:42:00 1997 Doug Evans <dje@canuck.cygnus.com>
1159
1160 * Makefile.in (SIM_OBJS): Add sim-load.o.
1161 * d10v_sim.h (exec_bfd): Rename to prog_bfd.
1162 * interp.c: #include bfd.h.
1163 (myname, sim_kind, start_address): New static locals.
1164 (prog_bfd_was_opened_p, prog_bfd): New static locals.
1165 (decode_pc): Update to use prog_bfd.
1166 (sim_open): Set sim_kind, myname. Ignore -E arg.
1167 (sim_close): Close prog_bfd if simulator opened it.
1168 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1169 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
1170 Call sim_load_file to load file into simulator.
1171 * simops.c (trace_input_func): exec_bfd renamed to prog_bfd.
1172
1173 Wed Apr 16 16:12:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1174
1175 * simops.c (OP_5F00): Only provide system calls SYS_execv,
1176 SYS_wait, SYS_wait, SYS_utime, SYS_time if defined by the host.
1177
1178 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1179
1180 * configure: Regenerated to track ../common/aclocal.m4 changes.
1181 * config.in: Ditto.
1182
1183 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1184
1185 * interp.c (sim_open): New arg `kind'.
1186
1187 * configure: Regenerated to track ../common/aclocal.m4 changes.
1188
1189 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1190
1191 * configure: Regenerated to track ../common/aclocal.m4 changes.
1192
1193 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1194
1195 * configure: Re-generate.
1196
1197 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1198
1199 * configure: Regenerate to track ../common/aclocal.m4 changes.
1200
1201 * simops.c (OP_5F00): Remove old traps 1-3. Make trap 15 the same
1202 as trap 0, which will be deprecated. Only set errno, if an error
1203 in fact was returned.
1204
1205 Thu Mar 13 12:41:20 1997 Doug Evans <dje@canuck.cygnus.com>
1206
1207 * interp.c: Delete redundant prototypes of sim_foo fns.
1208 (sim_open): New SIM_DESC result. Argument is now in argv form.
1209 (other sim_*): New SIM_DESC argument.
1210
1211 Thu Mar 13 10:29:04 1997 Michael Meissner <meissner@cygnus.com>
1212
1213 * simops.c (trace_{input,output}_func): Call flush_stdout from the
1214 callback functions.
1215 (OP_5F00): Ditto.
1216 (OP_6{4,6,C,A}01): Test for post decrement on the stack pointer.
1217 (OP_{1200,1000000,201,5FE0,1003,17001002}): Fix problems in
1218 setting the carry bit after an add or a subtract.
1219
1220 Wed Feb 12 16:04:15 1997 Michael Meissner <meissner@cygnus.com>
1221
1222 * simops.c (OP_{1403,15002A02,3{0,4}0{0,1}}): Only use the bottom
1223 40 bits of accumulators. Sign/zero extend as appropriate.
1224
1225 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1226
1227 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1228 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1229 * configure.in: sinclude ../common/aclocal.m4.
1230 * configure: Regenerated.
1231
1232 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1233
1234 * configure configure.in Makefile.in: Update to new configure
1235 scheme which is more compatible with WinGDB builds.
1236 * configure.in: Improve comment on how to run autoconf.
1237 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1238 * Makefile.in: Use autoconf substitution to install common
1239 makefile fragment.
1240
1241 Fri Dec 27 22:54:05 1996 Angela Marie Thomas (angela@cygnus.com)
1242
1243 * gencode.c: patch to not #include "d10v_sim.h" which
1244 unecessarily includes bfd.h and causes wingdb configure
1245 to fail.
1246
1247 Mon Dec 16 13:39:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1248
1249 * interp.c (xfer_mem): Change unified memory to 0x0.
1250
1251 Thu Nov 28 20:42:56 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1252
1253 * simops.c (OP_3E01): Fix tracing information.
1254 (OP_300{0,1}): Do not propigate sign.
1255
1256 Mon Nov 25 19:47:40 1996 Doug Evans <dje@canuck.cygnus.com>
1257
1258 * config.in (WORDS_BIGENDIAN): Add.
1259 * configure: Regenerated.
1260 * d10v_sim.h: #include "config.h"
1261
1262 Sat Nov 23 09:34:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1263
1264 * gencode.c (write_opcodes): Eliminate warnings when generated
1265 table.c is compiled.
1266
1267 Wed Nov 20 19:41:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1268
1269 * interp.c (sim_open): Cast result of calloc, and make sure NULL
1270 was not returned.
1271 (dmem_addr): If address is illegal or in I/O space, signal a bus
1272 error.
1273 (pc_addr): Signal bus error, not illegal instruction for bogus
1274 pc.
1275
1276 Wed Nov 20 01:23:03 1996 Doug Evans <dje@canuck.cygnus.com>
1277
1278 * Makefile.in: Delete all stuff moved to ../common/Make-common.in.
1279 (SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define.
1280 * configure.in: Simplify using macros in ../common/aclocal.m4.
1281 Call AC_CHECK_HEADERS(unistd.h).
1282 * configure: Regenerated.
1283 * config.in: New file.
1284 * interp.c: #include "callback.h".
1285 * simops.c: #include "config.h". #include <unistd.h> if present.
1286
1287 Fri Nov 8 16:19:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1288
1289 * d10v-sim.h (simops): Add flag is_long.
1290 (State): Add pc_changed. Instructions which update the PC should
1291 use the JMP macro which sets this.
1292 (JMP): New macro. Sets the PC and the pc_changed flag.
1293
1294 * gencode.c (write_opcodes): Add is_long field.
1295
1296 * interp.c (lookup_hash): If we blindly apply a short opcode's mask
1297 to a long opcode we could get a false match. Check the opcode size.
1298 (hash): Add a size field to the hash table.
1299 (sim_open): Initialize size field in hash table.
1300 (sim_resume): Change to logic for setting the PC. Used to increment the
1301 PC if it had not been changed. This didn't allow single-instruction loops.
1302 Now checks the flag State.pc_changed. Also now stops when ^C is received.
1303 (dmem_addr): Fix translation of data segments to unified memory.
1304 (sim_ctrl_c): New function. When ^C is received, set stop_simulator flag.
1305
1306 * simops.c: Changed all branch and jump instructions to use new JMP macro.
1307 (OP_20000000): Corrected trace information to show this is a ldi.l, not
1308 a ldi.s instruction.
1309
1310 Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1311
1312 * interp.c (sim_fetch_register, sim_store_register): Fix bug where
1313 updating the accumulators was overwriting other parts of the global
1314 State variable.
1315
1316 Wed Oct 30 17:35:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1317
1318 * interp.c (bfd.h) Don't include it here any more.
1319 (text{,_start,_end}): Move here from simops.c and make extern.
1320 (decode_pc): New function to return the PC as an address that the
1321 debugger can use.
1322 (dmem_addr): Print decoded PC in error message.
1323 (pc_addr): Ditto.
1324
1325 * simops.c (bfd.h) Don't include it here any more.
1326 (text{,_start,_end}): Move to simops.c.
1327 (trace_input_func): Move decoding of PC, and looking up .text
1328 start to decode_pc.
1329
1330 * d10v_sim.h (bfd.h): Include it here.
1331 (text{,_start,_end}): Add external declarations.
1332 (exec_bfd): Ditto.
1333 (decode_pc): Ditto.
1334
1335 Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1336
1337 * interp.c (sim_size): Now allocates unified memory for imap segments
1338 0,1,2, and 127. Initializes imap0 and imap1 to 0x1000. Initializes dmap to 0.
1339 (sim_write): Just call xfer_mem().
1340 (sim_read): Just call xfer_mem().
1341 (xfer_mem): New function. Does appropriate memory mapping and copies bytes.
1342 (dmem_addr): New function. Reads dmap register and translates data
1343 addresses to local addresses.
1344 (pc_addr): New function. Reads imap register and computes local address
1345 corresponding to contents of the PC.
1346 (sim_resume): Change to use pc_addr().
1347 (sim_create_inferior): Change reinitialization code. Also reinitializes
1348 imap[01] and dmap.
1349 (sim_fetch_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
1350 (sim_store_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
1351
1352 * simops.c (MEMPTR): Redefine to use dmem_addr().
1353 (OP_5F00): Replace references to STate.imem with dmem_addr().
1354
1355 * d10v-sim.h (State): Remove mem_min and mem_max. Add umem[128].
1356 (RB,SW,RW,SLW,RLW): Redefine to use dmem_addr().
1357 (IMAP0,IMAP1,DMAP,SET_IMAP,SET_IMAP1,SET_DMAP): Define.
1358
1359 Tue Oct 22 15:22:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1360
1361 * d10v_sim.h (_ins_type): Reorganize, so that we can provide
1362 better statistics, like not counting NOPS as parallel
1363 instructions, and printing total cycles.
1364 (ins_type_counters): Make unsigned long.
1365 (left_nops,right_nops): Fold into ins_type_counters.
1366
1367 * simops.c (trace_input_func): Print new instruction types.
1368 Handle OP_R2R3 as input types.
1369 (OP_{38000000,7000}): Correctly sign extend bytes.
1370 (OP_5E00): Don't count NOPs as parallel instructions.
1371 (OP_460B): Remove unused variable.
1372 (OP_5F00): Ditto.
1373
1374 * interp.c (ins_type_counters): Make unsigned long.
1375 (left_nops,right_nops): Delete.
1376 (most functions): Add prototypes.
1377 (INLINE): If GCC and optimize define as __inline__.
1378 ({,lookup_}hash,get_operands): Declare as INLINE.
1379 (do_parallel): Count conditional operations.
1380 (add_commas): New function, to add commas every 3 digits.
1381 (sim_size): Call add_commas to print numbers.
1382 (sim_{open,resume}): Delete unused variables.
1383 (sim_info): Provide better statistics.
1384 (sim_read): Add int return type.
1385
1386 Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1387
1388 * interp.c (sim_resume): Change the way single-stepping and exceptions
1389 are handled so single-stepping works again.
1390
1391 Thu Oct 17 12:24:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1392
1393 * endian.c: Optimize simulated loads/stores on x86, AIX, and big
1394 endian hosts.
1395
1396 * configure.in (--enable-sim-bswap): New switch to enable using
1397 the BSWAP instruction on x86's.
1398 * configure: Regenerate.
1399
1400 * Makefile.in ({SWAP,CONFIG}_CFLAGS): Add --enable-sim-bswap
1401 support.
1402
1403 Wed Oct 16 13:50:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1404
1405 * endian.c: New file. Move endian functions here from interp.c.
1406 Optimize code, and make it work as either inline functions or as a
1407 separate file.
1408
1409 * interp.c: Move endian functions from here to endian.c.
1410
1411 * Makefile.in (INCLUDE): Add endian.c.
1412 (run,libsim.a): Add dependency on endian.o.
1413 (endian.o): Add dependency.
1414
1415 * d10v_sim.h (read/write support): Always go through the machine
1416 independent endian functions. If compiling with GCC and
1417 optimizing, include endian.c so the endian functions are inlined.
1418
1419 * simops.c (OP_5F00): Correct tracing of accumulators.
1420
1421 Tue Oct 15 10:57:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1422
1423 * simops.c (OP_5F00): Add support for getpid, kill system calls.
1424
1425 * interp.c (do_{2_short,parallel}): If an exception is raised,
1426 don't execute the second instruction.
1427
1428 Sat Oct 12 22:17:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1429
1430 * simops.c (OP_{31000000,6601,6201,6200}): Store address in a
1431 temporary in case the register is overriden when loading.
1432 (OP_6200): Output type is OP_DREG for tracing.
1433
1434 Fri Oct 4 23:46:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1435
1436 * d10v_sim.h (struct _state): Add mem_{min,max} fields.
1437
1438 * interp.c (sim_size): Initialize mem_{min,max} fields.
1439 (sim_write): Update mem_{min,max} fields.
1440 (sim_resume): If PC is not in the minimum/maximum memory range,
1441 abort.
1442 (sim_create_inferior): Preserve mem_{min,max} fields.
1443
1444 Fri Sep 27 13:11:58 1996 Mark Alexander <marka@cygnus.com>
1445
1446 * simops.c (OP_5F00): Add support for time() system call.
1447
1448 Wed Sep 25 16:31:41 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1449
1450 * simops.c (OP_{6E01,6A01,6E1F,6A00}): Print both words being
1451 stored if tracing.
1452 (OP_5F00,trace_{in,out}put_func): Add finer grain tracing for
1453 system calls.
1454
1455 Mon Sep 23 17:55:30 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1456
1457 * simops.c (op_types): Add OP_{CONSTANT8,R2,R3}.
1458 (trace_input_func): Add support for OP_{CONSTANT8,R2,R3}.
1459 (OP_{4900,24800000,4800,4A00,4B00,4D00,4C00}): Add OP_R2 and OP_R3
1460 to call/subroutine returns to trace the first two arguments and
1461 the return value. For small jumps, use CONSTANT8, not CONSTANT16.
1462
1463 Fri Sep 20 15:36:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1464
1465 * interp.c (sim_create_inferior): Reinitialize State every time
1466 sim_create_inferior() is called.
1467
1468 Thu Sep 19 21:38:20 1996 Michael Meissner <meissner@wogglebug.ziplink.net>
1469
1470 * simops.c (OP_{401,2000000,601,3000000,23000000}): Get sign right
1471 on comparisons.
1472 (OP_401): Fix tracing information.
1473
1474 Thu Sep 19 10:30:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1475
1476 * simops.c (SIZE_{PC,LINE_NUMBER}): New default sizes for output.
1477 (trace_input_func): Use them.
1478 (trace_input_func): Make sure there is a trailing space after the
1479 instruction.
1480 (OP_6200): Fix tracing info.
1481
1482 * Makefile.in (run): Add dependencies on libbfd.a and
1483 libiberity.a.
1484
1485 Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1486
1487 * d10v_sim.h (DEBUG_INSTRUCTION): New debug value to include line
1488 numbers and function names in debug trace.
1489 (DEBUG): If not defined, set to DEBUG_TRACE, DEBUG_VALUES, and
1490 DEBUG_LINE_NUMBER.
1491 (SIG_D10V_{STOP,EXIT}): Values to represent the stop instruction
1492 and exit system call trap being executed.
1493
1494 * interp.c (sim_stop_reason): Set exit code correctly for stop
1495 instruction and exit system call trap.
1496
1497 * configure.in (--enable-sim-cflags): Remove trace case.
1498 (--enable-sim-debug): New switch to set the debug values.
1499 * configure: Regenerate.
1500
1501 * simops.c (trace_{input,output}_func): Rename from
1502 trace_{input,output}.
1503 (trace_{input,output}): Call trace_{input,output}_func if
1504 d10v_debug is non-zero.
1505 (SIZE_INSTRUCTION): Cut down to 8.
1506 (SIZE_OPERANDS): Cut down to 18.
1507 (SIZE_LOCATION): New value for size of line number, function name
1508 field.
1509 (init_text_p,text{,_start,_end}): New static variables for
1510 printing line number and function name.
1511 (exec_bfd): New external that run.c sets.
1512 (trace_input_func): Print line number and function name if
1513 available and if desired.
1514 (OP_4E09): Don't print out DBT message.
1515 (OP_5FE0): Set exception field to SIG_D10V_STOP.
1516 (OP_5F00): Set exception field to SIG_D10V_EXIT.
1517
1518 Sat Sep 14 22:18:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1519
1520 * interp.c (do_2_short): If the instruction encodes jump->ins,
1521 don't do the second instruction if the jump succeeds.
1522
1523 Fri Sep 13 22:35:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1524
1525 * simops.c (OP_5F00): Use unknown traps to print all GPRs,
1526 accumulators, PC, and F0/F1/C flags.
1527
1528 Thu Sep 12 12:50:11 1996 Mark Alexander <marka@cygnus.com>
1529
1530 * simops.c (OP_5F00): Fix problems with system calls.
1531
1532 Thu Sep 12 12:19:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1533
1534 * simops.c (OP_5F00): Correct tracing information for trap.
1535
1536 Wed Sep 11 18:55:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1537
1538 * Makefile.in (CSEARCH): Correctly find opcodes directory.
1539
1540 Mon Sep 9 13:27:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1541
1542 * simops.c (trace_output): Properly align accumulator output.
1543 (OP_3{0,2,4}00): Properly parenthesize test expression. Add error
1544 if shift count is too high.
1545 (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book.
1546 (OP_4E09): Make cpfg properly trace the input flags.
1547 (op_types): Add OP_FLAG_OUTPUT.
1548 (trace_{input,output}): Support OP_FLAG_OUTPUT.
1549 (OP_31000000): This ld2w varient is a 16-bit memory reference, not
1550 an 8-bit memory reference instruction for tracing purposes.
1551 (OP_201): Addi needs to set the carry.
1552
1553 Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1554
1555 * simops.c (OP_2600, OP_2601): Changed min and max comparisons
1556 to use signed register values.
1557
1558 Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1559
1560 * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug
1561 output.
1562 (_ins_type): New enumeration to specify which container an
1563 instruction is in, and whether it is part of a parallel operation.
1564 (_state): Add ins_type field.
1565 ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types.
1566 (ins_type_counters): Counters for the various instruction types.
1567 ({left,right}_nops): Counters for the number of nops in each
1568 container.
1569 (d10v_debug): New variable to indicate whether debugging is turned
1570 on.
1571
1572 * simops.c: (all functions): Change all #ifdef DEBUG code so that
1573 the input and output values can be traced, along with the
1574 instruction type. Make the -t option enable tracing.
1575 (all functions): Change printf calls to use the printf_filtered
1576 function in the callback table.
1577
1578 * interp.c (_leftright): New enumeration to say whether 2 short
1579 instructions are done left first or right first.
1580 (do_{long,2_short,parallel}): Indicate in the machine state which
1581 type of instruction this is. Count each of the types of
1582 instructions executed.
1583 (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug
1584 flag is set.
1585 (sim_resume): Pass left/right indication to do_2_short.
1586 (all functions): Change printf calls to use the printf_filtered
1587 function in the callback table.
1588 (sim_trace): Turn on debug flag if DEBUG was defined, and call
1589 sim_resume.
1590 (sim_info): Print out statistics on instructions.
1591 (sim_{trace,create_inferior}): Eliminate extraneous output unless
1592 debugging.
1593 (sim_open): If args == -t and DEBUG was defined, set d10v_debug.
1594 Only initialize the hash table the first time sim_open is called.
1595
1596 * Makefile.in: Make objects depend on d10v_sim.h.
1597 ({,SIM_}CFLAGS): Include configure dependent switches. Setting
1598 CFLAGS does not override host/target defines or SIM_CFLAGS.
1599 (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode.
1600 (run): By default, the math library is not needed to be linked
1601 in.
1602 ({BFD,LIBIBERTY}_LIB): Define as variables so they can be
1603 overridden.
1604 (VPATH): Don't set to anything but @srcdir@ to work with non-GNU
1605 makes.
1606 ({run,callback}.o): Provide explicit paths to their appropriate
1607 source directories.
1608 (gencode{,.o},d10v-opc.o): Split compilation into creating object
1609 and linking. Instead of linking in libopcodes.a, just compile
1610 d10v-opc.o directly to handle canadian cross.
1611 (CSEARCH): Add opcodes directory.
1612
1613 * configure.in (--enable-sim-cflags): New switch to allow user to
1614 set the defaults.
1615 (CC_FOR_BUILD): Deal with canadian crosses.
1616 * configure: Regenerate.
1617
1618 Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com>
1619
1620 * simops.c: Include correct syscall.h for d10v, not host's.
1621 Fix #ifdef SYS_stat.
1622
1623 Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1624
1625 * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef.
1626 Add trap 2 to be printf and trap 3 to be putchar.
1627
1628 Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com>
1629
1630 * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support
1631 for low-level system calls.
1632
1633 Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1634
1635 * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems.
1636
1637 Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1638
1639 * d10v_sim.h (SEXT32): Added.
1640 * interp.c: Commented out printfs.
1641 * simops.c: Fixed error in sb and st2w.
1642
1643 Thu Aug 15 13:30:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1644
1645 * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining
1646 DSP instructions. Added modulo addressing.
1647
1648 Sun Aug 11 12:57:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1649
1650 * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot.
1651
1652 Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1653
1654 * d10v_sim.h, simops.c: Snapshot.
1655
1656 Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1657
1658 * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h,
1659 gencode.c, interp.c, simops.c: Created.
1660
This page took 0.107694 seconds and 5 git commands to generate.