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