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