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