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