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