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