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