]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mn10300/ChangeLog
sim: enable -Werror by default for some arches
[thirdparty/binutils-gdb.git] / sim / mn10300 / ChangeLog
CommitLineData
bf470982
MF
12021-01-09 Mike Frysinger <vapier@gentoo.org>
2
3 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
4 * configure: Regenerate.
5
46f900c0
MF
62021-01-08 Mike Frysinger <vapier@gentoo.org>
7
8 * configure: Regenerate.
9
dfb856ba
MF
102021-01-04 Mike Frysinger <vapier@gentoo.org>
11
12 * configure: Regenerate.
13
5c887dd5
JB
142017-09-06 John Baldwin <jhb@FreeBSD.org>
15
16 * configure: Regenerate.
17
ce39bd38
MF
182016-01-10 Mike Frysinger <vapier@gentoo.org>
19
20 * config.in, configure: Regenerate.
21
99d8e879
MF
222016-01-10 Mike Frysinger <vapier@gentoo.org>
23
24 * configure: Regenerate.
25
35656e95
MF
262016-01-10 Mike Frysinger <vapier@gentoo.org>
27
28 * configure: Regenerate.
29
16f7876d
MF
302016-01-10 Mike Frysinger <vapier@gentoo.org>
31
32 * configure: Regenerate.
33
e19418e0
MF
342016-01-10 Mike Frysinger <vapier@gentoo.org>
35
36 * configure: Regenerate.
37
347fe5bb
MF
382016-01-10 Mike Frysinger <vapier@gentoo.org>
39
40 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
41 * configure: Regenerate.
42
22be3fbe
MF
432016-01-10 Mike Frysinger <vapier@gentoo.org>
44
45 * configure: Regenerate.
46
0dc73ef7
MF
472016-01-10 Mike Frysinger <vapier@gentoo.org>
48
49 * configure: Regenerate.
50
936df756
MF
512016-01-09 Mike Frysinger <vapier@gentoo.org>
52
53 * config.in, configure: Regenerate.
54
2e3d4f4d
MF
552016-01-06 Mike Frysinger <vapier@gentoo.org>
56
57 * interp.c (sim_open): Mark argv const.
58 (sim_create_inferior): Mark argv and env const.
59
9bbf6f91
MF
602016-01-04 Mike Frysinger <vapier@gentoo.org>
61
62 * configure: Regenerate.
63
77cf2ef5
MF
642016-01-03 Mike Frysinger <vapier@gentoo.org>
65
66 * interp.c (sim_open): Update sim_parse_args comment.
67
0cb8d851
MF
682016-01-03 Mike Frysinger <vapier@gentoo.org>
69
70 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
71 * configure: Regenerate.
72
1ac72f06
MF
732016-01-02 Mike Frysinger <vapier@gentoo.org>
74
75 * configure.ac (SIM_AC_OPTION_ENDIAN): Change LITTLE_ENDIAN to
76 LITTLE.
77 * configure: Regenerate.
78
e1211e55
MF
792015-12-30 Mike Frysinger <vapier@gentoo.org>
80
81 * wrapper.c (mn10300_reg_store, mn10300_reg_fetch): Define.
82 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
83 (sim_store_register): Rename to ...
84 (mn10300_reg_store): ... this.
85 (sim_fetch_register): Rename to ...
86 (mn10300_reg_fetch): ... this.
87
5e744ef8
MF
882015-12-27 Mike Frysinger <vapier@gentoo.org>
89
90 * Makefile.in (MN10300_OBJS): Delete sim-hload.o.
91
1b393626
MF
922015-12-26 Mike Frysinger <vapier@gentoo.org>
93
94 * config.in, configure: Regenerate.
95
26936211
MF
962015-12-24 Mike Frysinger <vapier@gentoo.org>
97
98 * sim-main.h (SIM_HANDLES_LMA): Delete.
99
84e8e361
MF
1002015-12-24 Mike Frysinger <vapier@gentoo.org>
101
102 * sim-main.h (WITH_WATCHPOINTS): Delete.
103
d320201d
MF
1042015-11-21 Mike Frysinger <vapier@gentoo.org>
105
106 * interp.c (mn10300_callback): Delete.
107 (sim_open): Delete mn10300_callback assignment.
108 (program_interrupt): Call sim_io_printf.
109 * mn10300_sim.h (mn10300_callback): Delete.
110
c389945b
MF
1112015-11-17 Mike Frysinger <vapier@gentoo.org>
112
113 * sim-main.h (WITH_CORE): Delete.
114
797eee42
MF
1152015-11-15 Mike Frysinger <vapier@gentoo.org>
116
117 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
118
6e4f085c
MF
1192015-11-14 Mike Frysinger <vapier@gentoo.org>
120
121 * interp.c (sim_close): Delete.
122
8d0978fb
MF
1232015-06-23 Mike Frysinger <vapier@gentoo.org>
124
125 * configure: Regenerate.
126
7d5c6c43
MF
1272015-06-17 Mike Frysinger <vapier@gentoo.org>
128
129 * op_utils.c (do_syscall): Replace call to cb_syscall with
130 sim_syscall_multi.
131
61a0c964
MF
1322015-06-17 Mike Frysinger <vapier@gentoo.org>
133
134 * mn10300_sim.h (syscall_read_mem, syscall_write_mem): Delete.
135 * op_utils.c: Include sim-syscall.h.
136 (syscall_read_mem, syscall_write_mem): Delete.
137 (do_syscall): Change syscall_read_mem/syscall_write_mem
138 to sim_syscall_read_mem/sim_syscall_write_mem. Set syscall.p2.
139
a3487082
MF
1402015-06-12 Mike Frysinger <vapier@gentoo.org>
141
142 * configure: Regenerate.
306f4178
MF
143
1442015-06-12 Mike Frysinger <vapier@gentoo.org>
145
146 * configure: Regenerate.
a3487082 147
926b1cd8
MF
1482015-06-11 Mike Frysinger <vapier@gentoo.org>
149
150 * interp.c (get_byte, get_half, get_word, put_byte, put_half,
151 put_word): Delete.
152 (sim_fetch_register): Inline put_word call.
153 (sim_store_register): Inline get_word call.
154 * mn10300_sim.h (struct _state): Delete mem member.
155 (OP, Simops, get_byte, get_half, get_word, put_byte, put_half,
156 put_word, map): Delete.
157 * op_utils.c (MEMPTR): Delete.
158
2cc78d4d
MF
1592015-06-11 Mike Frysinger <vapier@gentoo.org>
160
161 * interp.c (round_64, fpu_status_ok): Add static.
162
96eaf29e
MF
1632015-06-11 Mike Frysinger <vapier@gentoo.org>
164
165 * interp.c (mn10300_debug): Delete.
166 * mn10300_sim.h (DEBUG_TRACE, DEBUG_VALUES, mn10300_debug): Delete.
167 (struct _state): Delete exception and exited members.
168 [_WIN32] (SIGTRAP, SIGQUIT): Delete.
169 * op_utils.c (do_syscall): Call sim_engine_halt instead of setting
170 State.exception.
171
b0e4c8a5
MF
1722015-06-11 Mike Frysinger <vapier@gentoo.org>
173
174 * mn10300_sim.h (uint8, int8, uint16, int16, uint32, int32): Typedef
175 in terms of unsigned8, signed8, unsigned16, signed16, unsigned32,
176 and signed32 respectively.
177
5d19c366
MF
1782015-06-11 Mike Frysinger <vapier@gentoo.org>
179
180 * interp.c (INLINE): Delete define.
181 * mn10300_sim.h (INLINE): Likewise.
182
20bca71d
MF
1832015-04-18 Mike Frysinger <vapier@gentoo.org>
184
185 * sim-main.h (SIM_CPU): Delete.
186
7e83aa92
MF
1872015-04-18 Mike Frysinger <vapier@gentoo.org>
188
189 * sim-main.h (sim_cia): Delete.
190 (SIM_ADDR): Delete comment.
191
034685f9
MF
1922015-04-17 Mike Frysinger <vapier@gentoo.org>
193
194 * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Change CIA_GET to
195 CPU_PC_GET and CIA_SET to CPU_PC_SET.
196 * interp.c (sim_create_inferior): Change CIA_SET to CPU_PC_SET.
197 (program_interrupt): Change CIA_GET to CPU_PC_GET and CIA_SET to
198 CPU_PC_SET.
199 (mn10300_cpu_exception_trigger): Change CIA_SET to CPU_PC_SET.
200 (mn10300_cpu_exception_suspend): Likewise.
201 (mn10300_cpu_exception_resume): Likewise.
202 * sim-main.h (CIA_GET, CIA_SET): Delete.
203
78e9aa70
MF
2042015-04-15 Mike Frysinger <vapier@gentoo.org>
205
206 * Makefile.in (MN10300_OBJS): Delete sim-cpu.o.
207 * sim-main.h (STATE_CPU): Delete.
208
bf12d44e
MF
2092015-04-13 Mike Frysinger <vapier@gentoo.org>
210
211 * configure: Regenerate.
212
64f14c97
MF
2132015-04-13 Mike Frysinger <vapier@gentoo.org>
214
215 * Makefile.in (MN10300_OBJS): Add sim-cpu.o.
216 * interp.c (mn10300_pc_get, mn10300_pc_set): New functions.
217 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
218 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
219 (sim_pc_get): Delete.
220 * sim-main.h (null_cia, NULL_CIA): Delete.
221 (SIM_CPU): Define.
222 (struct sim_state): Change cpu to an array of pointers.
223 (STATE_CPU): Drop & and handle WITH_SMP.
224
122bbfb5
MF
2252015-04-06 Mike Frysinger <vapier@gentoo.org>
226
227 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
228
aadc9410
MF
2292015-03-31 Mike Frysinger <vapier@gentoo.org>
230
231 * config.in, configure: Regenerate.
232
05f53ed6
MF
2332015-03-24 Mike Frysinger <vapier@gentoo.org>
234
235 * interp.c (sim_pc_get): New function.
236
30452bbe
MF
2372015-03-24 Mike Frysinger <vapier@gentoo.org>
238
239 * configure: Regenerate.
240
66b0e85d
MF
2412015-03-23 Mike Frysinger <vapier@gentoo.org>
242
243 * Makefile.in (MN10300_OBJS): Delete dv-sockser.o.
244
64dd13df
MF
2452015-03-23 Mike Frysinger <vapier@gentoo.org>
246
247 * configure: Regenerate.
248
49cd1634
MF
2492015-03-23 Mike Frysinger <vapier@gentoo.org>
250
251 * configure: Regenerate.
252
4af3e7e0
MF
2532015-03-23 Mike Frysinger <vapier@gentoo.org>
254
255 * configure: Regenerate.
256
3649cb06
MF
2572015-03-23 Mike Frysinger <vapier@gentoo.org>
258
259 * configure: Regenerate.
260 * configure.ac: Delete SIM_DV_SOCKSER_O check.
261
ae7d0cac
MF
2622015-03-16 Mike Frysinger <vapier@gentoo.org>
263
264 * config.in, configure: Regenerate.
265
8406bb59
MF
2662015-03-15 Mike Frysinger <vapier@gentoo.org>
267
268 * tconfig.in: Delete file.
269
465fb143
MF
2702015-03-14 Mike Frysinger <vapier@gentoo.org>
271
272 * Makefile.in (SIM_RUN_OBJS): Delete.
273
5cddc23a
MF
2742015-03-14 Mike Frysinger <vapier@gentoo.org>
275
276 * configure.ac (AC_CHECK_HEADERS): Delete unistd.h & stdlib.h &
277 string.h & strings.h & time.h.
278 * aclocal.m4, configure: Regenerate.
279
2974be62
AM
2802014-08-19 Alan Modra <amodra@gmail.com>
281
282 * configure: Regenerate.
283
faa743bb
RM
2842014-08-15 Roland McGrath <mcgrathr@google.com>
285
286 * configure: Regenerate.
287 * config.in: Regenerate.
288
1a8a700e
MF
2892014-03-04 Mike Frysinger <vapier@gentoo.org>
290
291 * configure: Regenerate.
292
bf3d9781
AM
2932013-09-23 Alan Modra <amodra@gmail.com>
294
295 * configure: Regenerate.
296
31e6ad7d
MF
2972013-06-03 Mike Frysinger <vapier@gentoo.org>
298
299 * aclocal.m4, configure: Regenerate.
300
d3685d60
TT
3012013-05-10 Freddie Chopin <freddie_chopin@op.pl>
302
303 * configure: Rebuild.
304
1517bd27
MF
3052013-03-26 Mike Frysinger <vapier@gentoo.org>
306
307 * configure: Regenerate.
308
fb61c40a
JS
3092013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
310
311 * configure.ac: Fail if dv-sockser.o not available.
312 Error when --disable-sim-hardware is specified.
313 * tconfig.in: Conditionalize use of dv_sockser_install.
314 * configure: Regenerated.
315 * config.in: Regenerated.
316
e8c21678
HPN
3172012-06-17 Hans-Peter Nilsson <hp@axis.com>
318
319 * interp.c: Include config.h first. Do not include sysdep.h.
320
5f3ef9d0
JB
3212012-06-15 Joel Brobecker <brobecker@adacore.com>
322
323 * config.in, configure: Regenerate.
324
2232061b
MF
3252012-03-24 Mike Frysinger <vapier@gentoo.org>
326
327 * aclocal.m4, config.in, configure: Regenerate.
328
f95586a4
KB
3292012-02-16 Kevin Buettner <kevinb@redhat.com>
330
331 * interp.c (sim_fetch_register): Return length, not -1.
332
12c3e59c
JB
3332012-01-02 Joel Brobecker <brobecker@adacore.com>
334
335 * sim-main.h: Reformat copyright header.
336
db2e4d67
MF
3372011-12-03 Mike Frysinger <vapier@gentoo.org>
338
339 * aclocal.m4: New file.
340 * configure: Regenerate.
341
481d7981
MF
3422011-11-07 Mike Frysinger <vapier@gentoo.org>
343
344 PR sim/9302
345 * dv-mn103iop.c (write_dedicated_control_reg): Convert && to &.
346
4399a56b
MF
3472011-10-19 Mike Frysinger <vapier@gentoo.org>
348
349 * configure: Regenerate after common/acinclude.m4 update.
350
9c082ca8
MF
3512011-10-17 Mike Frysinger <vapier@gentoo.org>
352
353 * configure.ac: Change include to common/acinclude.m4.
354
6ffe910a
MF
3552011-10-17 Mike Frysinger <vapier@gentoo.org>
356
357 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
358 call. Replace common.m4 include with SIM_AC_COMMON.
359 * configure: Regenerate.
360
2419798b
MF
3612011-07-05 Mike Frysinger <vapier@gentoo.org>
362
363 * interp.c (sim_do_command): Delete.
364
be07a3d3
NC
3652011-06-20 Nick Clifton <nickc@redhat.com>
366
367 * am33.igen (sub Rm,Rn,Rd): Fix computation of carry flag.
368
dae477fe
AB
3692011-01-11 Andrew Burgess <aburgess@broadcom.com>
370
371 * interp.c (sim_store_register): Update return value to
372 match new API.
373
952ad68f
MF
3742010-04-19 Mike Frysinger <vapier@gentoo.org>
375
376 * dv-mn103ser.c (sockser_addr, USE_SOCKSER_P): Delete
377 (do_polling_event): Change USE_SOCKSER_P to dv_sockser_status.
378 (read_status_reg): Likewise.
379 (write_txb): Likewise.
380
3725885a
RW
3812010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
382
383 * configure: Regenerate.
384
d6416cdc
RW
3852009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
386
81ecdfbb
RW
387 * config.in: Regenerate.
388 * configure: Likewise.
389
d6416cdc
RW
390 * configure: Regenerate.
391
b5bd9624
HPN
3922008-07-11 Hans-Peter Nilsson <hp@axis.com>
393
394 * configure: Regenerate to track ../common/common.m4 changes.
395 * config.in: Ditto.
396
6efef468 3972008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
398 Daniel Jacobowitz <dan@codesourcery.com>
399 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
400
401 * configure: Regenerate.
402
edc5d9ec
HPN
4032006-12-21 Hans-Peter Nilsson <hp@axis.com>
404
405 * acconfig.h: Remove.
406 * config.in: Regenerate.
407
e85e3205
RE
4082006-06-13 Richard Earnshaw <rearnsha@arm.com>
409
410 * configure: Regenerated.
411
2f0122dc
DJ
4122006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
413
414 * configure: Regenerated.
415
20e95c23
DJ
4162006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
417
418 * configure: Regenerated.
419
b3a3ffef
HPN
4202006-03-29 Hans-Peter Nilsson <hp@axis.com>
421
422 * configure: Regenerate.
423
2b193c4a
MK
4242005-03-23 Mark Kettenis <kettenis@gnu.org>
425
426 * configure: Regenerate.
427
35695fd6
AC
4282005-01-14 Andrew Cagney <cagney@gnu.org>
429
430 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
431 explicit call to AC_CONFIG_HEADER.
432 * configure: Regenerate.
433
f0569246
AC
4342005-01-12 Andrew Cagney <cagney@gnu.org>
435
436 * configure.ac: Update to use ../common/common.m4.
437 * configure: Re-generate.
438
38f48d72
AC
4392005-01-11 Andrew Cagney <cagney@localhost.localdomain>
440
441 * configure: Regenerated to track ../common/aclocal.m4 changes.
442
b7026657
AC
4432005-01-07 Andrew Cagney <cagney@gnu.org>
444
445 * configure.ac: Rename configure.in, require autoconf 2.59.
446 * configure: Re-generate.
447
379832de
HPN
4482004-12-08 Hans-Peter Nilsson <hp@axis.com>
449
450 * configure: Regenerate for ../common/aclocal.m4 update.
451
599e0b9e
AO
4522004-06-26 Alexandre Oliva <aoliva@redhat.com>
453
c76b4bab
AO
454 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
455 * am33-2.igen (fmadd, fmsub, fmnadd, fmnsub): Correct typo.
456 2000-05-29 Alexandre Oliva <aoliva@cygnus.com>
457 * interp.c (fpu_disabled_exception, fpu_unimp_exception,
458 fpu_check_signal_exception): Take additional state arguments.
459 Print exception type and call program_interrupt. Adjust callers.
460 (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
461 fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Take additional
462 arguments.
463 * mn10300_sim.h (fpu_disabled_exception, fpu_unimp_exception,
464 fpu_check_signal_exception): Adjust prototypes.
465 (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
466 fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Likewise.
467 * am33-2.igen: Adjust calls.
468 2000-05-19 Alexandre Oliva <aoliva@cygnus.com>
469 * op_utils.c (cmp2fcc): Moved...
470 * interp.c: ... here.
471 2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
472 * am33-2.igen: Use `unsigned32', `signed32', `unsigned64' or
473 `signed64' where type width is relevant.
474 2000-05-15 Alexandre Oliva <aoliva@cygnus.com>
475 * mn10300_sim.h: Include sim-fpu.h.
476 (FD2FPU, FPU2FD): Enclose the FD argument in parentheses.
477 (fpu_check_signal_exception): Declare.
478 (struct fp_prec_t, fp_single_prec, fp_double_prec): Likewise.
479 (FP_SINGLE, FP_DOUBLE): Shorthands for fp_*_prec.
480 (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
481 fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Declare.
482 * interp.c (fpu_disabled_exception): Document.
483 (fpu_unimp_exception): Likewise.
484 (fpu_check_signal_exception): Define.
485 (reg2val_32, round_32, val2reg_32, fp_single_prec): Likewise.
486 (reg2val_64, round_64, val2reg_64, fp_double_prec): Likewise.
487 (REG2VAL, ROUND, VAL2REG): Define shorthands.
488 (fpu_status_ok): Define.
489 (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
490 fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Define.
491 * am33-2.igen (frsqrt, fcmp, fadd, fsub, fmul, fdiv,
492 fmadd, fmsub, fnmadd, fnmsub): Use new functions.
493 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
494 * interp.c (sim_create_inferior): Set PSW bit to enable FP insns
495 if architecture is AM33/2.0.
496 * am33.igen: Include am33-2.igen.
497 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
498 * mn10300.igen (movm, call, ret, retf): Check for am33_2 too.
499 * am33.igen (movm): Likewise.
500 2000-04-19 Alexandre Oliva <aoliva@cygnus.com>
501 * am33.igen: Added `*am33_2' to some instructions that were
502 missing it.
503 2000-04-07 Alexandre Oliva <aoliva@cygnus.com>
504 * am33-2.igen: New file. All insns implemented, but FP flags are
505 only set for fcmp, exceptional conditions are not handled yet.
506 * Makefile.in (IGEN_INSN): Added am33-2.igen.
507 (tmp-igen): Added -M am33_2.
508 * mn10300.igen, am33.igen: Added `*am33_2' to all insns.
509 * gencode.c: Support FMT_D3.
510 * mn10300_sim.h (dword): New type.
511 (struct _state): Added fpregs.
512 (REG_FPCR, FPCR): New define. All assorted bitmaps.
513 (XS2FS, AS2FS, Xf2FD): New macros.
514 (FS2FPU, FD2FPU, FPU2FS, FPU2FD): Likewise.
515 (load_dword, store_dword): New functions or macros.
516 (u642dw, dw2u64): New functions.
517 (fpu_disabled_exception, fpu_unimp_exception): Declared.
518 * interp.c (fpu_disabled_exception): Defined; no actual
519 implementation.
520 (fpu_unimp_exception): Likewise.
521 * op_utils.c (cmp2fcc): New function.
522
489503ee
AO
523 * interp.c, mn10300_sim.h, op_utils.c: Convert function prototypes
524 and definitions to ISO C.
525
622c89b6
AO
526 * gencode.c, simops.c: Delete.
527 * Makefile.in: Remove non-COMMON dependencies and commands.
528
599e0b9e
AO
529 * configure.in: Use common simulator always. Don't subst sim_gen
530 nor mn10300_common.
531 * configure: Rebuilt.
532 * Makefile.in (WITHOUT_COMMON_OBJS, WITHOUT_COMMON_INTERP_DEP,
533 WITHOUT_COMMON_RUN_OBJS): Remove.
534 (WITH_COMMON_OBJS): Rename to MN10300_OBJS.
535 (WITH_COMMON_INTERP_DEP): Rename to MN10300_INTERP_DEP.
536 (WITH_COMMON_RUN_OBJS): Rename to SIM_RUN_OBJS.
537 (SIM_EXTRA_CFLAGS): Don't use @sim_gen@.
538 * interp.c: Remove non-common bits.
539 * mn10300_sim.h: Likewise.
540
e158f0a0
AC
5412003-08-28 Andrew Cagney <cagney@redhat.com>
542
543 * dv-mn103ser.c (do_polling_event): Change type of "serial_reg" to
544 "long".
545 (read_status_reg): Cast "serial_reg" to "long".
546 * dv-mn103tim.c (do_counter_event): Change type of "timer_nr" to
547 "long".
548 (do_counter6_event, write_mode_reg, write_tm6md): Ditto.
549
6b4a8935
AC
5502003-02-27 Andrew Cagney <cagney@redhat.com>
551
552 * interp.c (sim_open, sim_create_inferior, sim_open)
553 (sim_create_inferior): Rename _bfd to bfd.
554
dbd7cd63
AC
5552003-02-26 Andrew Cagney <cagney@redhat.com>
556
557 * am33.igen: Call sim_engine_abort instead of abort.
558
bb6317d3
DC
5592003-02-26 David Carlton <carlton@math.stanford.edu>
560
561 * dv-mn103tim.c (read_special_timer6_reg): Add break after
562 empty default: label.
563 (write_special_timer6_reg): Ditto.
564 Update copyright.
565
6c0a25e9
AC
5662002-11-28 Andrew Cagney <cagney@redhat.com>
567
568 * sim-main.h: Only include "idecode.h" once.
569 * Makefile.in (SIM_EXTRA_DEPS): Define.
570
c8cca39f
AC
5712002-06-16 Andrew Cagney <ac131313@redhat.com>
572
573 * configure: Regenerated to track ../common/aclocal.m4 changes.
574
3c25f8c7
AC
5752002-06-09 Andrew Cagney <cagney@redhat.com>
576
577 * Makefile.in (INCLUDE): Update path to callback.h.
578 * mn10300_sim.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
579 * tconfig.in: Ditto.
580
ff88f59d
JB
5812001-05-06 Jim Blandy <jimb@redhat.com>
582
583 * mn10300.igen: Doc fixes.
72f4393d 584
cc274e7c
AO
5852001-04-26 Alexandre Oliva <aoliva@redhat.com>
586
587 * Makefile.in (idecode.o, op_utils.o, semantics.o, simops.o):
588 Depend on targ-vals.h.
589
d4424ada
C
5902001-04-15 J.T. Conklin <jtc@redback.com>
591
592 * Makefile.in (simops.o): Add simops.h to dependency list.
593
5425ca99
AO
594Wed Aug 9 02:24:53 2000 Graham Stott <grahams@cygnus.co.uk>
595
596 * am33.igen: Warning clean-up.
597 (movm): Initialize PC and mask.
598 (mov, movbu, movhu): Set srcreg2 from RI0.
599 (bsch): Initialize c.
600 (sat16_cmp): Actually do the comparison.
601 (mov_llt): Do not overwrite dstreg with uninitialized variable.
602
eb2d80b4
AC
603Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
604
605 * configure: Regenerated to track ../common/aclocal.m4 changes.
606
e33c0364
AO
6072000-05-22 Alexandre Oliva <aoliva@cygnus.com>
608
609 * am33.igen: Fix leading comments of SP-relative offset insns that
610 referred to other registers. Make their offsets unsigned.
611
24a39d88
AO
6122000-05-18 Alexandre Oliva <aoliva@cygnus.com>
613
614 * mn10300_sim.h (genericAdd, genericSub, genericCmp, genericOr,
615 genericXor, genericBtst): Use `unsigned32'.
616 * op_utils.c: Likewise.
617 * mn10300.igen, am33.igen: Use `unsigned32', `signed32',
618 `unsigned64' or `signed64' where type width is relevant.
619
bfa8561f
AO
6202000-04-25 Alexandre Oliva <aoliva@cygnus.com>
621
622 * am33.igen (inc4 Rn): Use genericAdd so as to modify flags.
623
d8e7020f
AO
6242000-04-09 Alexandre Oliva <aoliva@cygnus.com>
625
626 * am33.igen: Make SP-relative offsets unsigned. Add `*am33' for
627 some instructions that were missing it.
628
a9e3a739
FCE
6292000-03-03 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
630
631 * Makefile.in (IGEN_INSN): Added am33.igen.
632
d4f3574e
SS
633Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
634
635 * configure: Regenerated to track ../common/aclocal.m4 changes.
636
adf40b2e
JM
637Tue Jul 13 13:26:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
638
639 * interp.c: Clarify error message reporting an unknown board.
640
cd0fc7c3
SS
6411999-05-08 Felix Lee <flee@cygnus.com>
642
643 * configure: Regenerated to track ../common/aclocal.m4 changes.
72f4393d 644
7a292a7a
SS
6451999-04-16 Frank Ch. Eigler <fche@cygnus.com>
646
647 * interp.c (program_interrupt): Detect undesired recursion using
648 static flag. Set NMIRC register's SYSEF flag during
649 --board=stdeval1 mode.
650 * dv-mn103-int.c (write_icr): Add backdoor address to allow CPU to
651 set SYSEF flag.
652
6531999-04-02 Keith Seitz <keiths@cygnus.com>
654
655 * Makefile.in (SIM_EXTRA_CFLAGS): Define a POLL_QUIT_INTERVAL
656 for use in the simulator so that the poll_quit callback is
657 not called too often.
658
659Tue Mar 9 21:26:41 1999 Andrew Cagney <cagney@b1.cygnus.com>
660
661 * dv-mn103int.c (mn103int_ioctl): Return something.
662 * dv-mn103tim.c (write_tm6md): GCC suggested parentheses around &&
663 within ||.
664
665Tue Feb 16 23:57:17 1999 Jeffrey A Law (law@cygnus.com)
666
667 * mn10300.igen (retf): Fix return address computation and store
668 the new pc value into nia.
669
c906108c
SS
6701998-12-29 Frank Ch. Eigler <fche@cygnus.com>
671
672 * Makefile.in (WITH_COMMON_OBJS): Build also dv-sockser.o.
673 * interp.c (sim_open): Add stub mn103002 cache control memory regions.
674 Set OPERATING_ENVIRONMENT on "stdeval1" board.
675 (mn10300_core_signal): New function to intercept memory errors.
676 (program_interrupt): New function to dispatch to exception vector
677 (mn10300_exception_*): New functions to snapshot pre/post exception
678 state.
679 * sim-main.h (SIM_CORE_SIGNAL): Define hook - call mn10300_core_signal.
72f4393d 680 (SIM_ENGINE_HALT_HOOK): Do nothing.
c906108c 681 (SIM_CPU_EXCEPTION*): Define hooks to call mn10300_cpu_exception*().
72f4393d 682 (_sim_cpu): Add exc_* fields to store register value snapshots.
c906108c
SS
683 * dv-mn103ser.c (*): Support dv-sockser backend for UART I/O.
684 Various endianness and warning fixes.
685 * mn10300.igen (illegal): Call program_interrupt on error.
686 (break): Call program_interrupt on breakpoint
72f4393d 687
c906108c
SS
688 Several changes from <janczyn@cygnus.com> and <cagney@cygnus.com>
689 merged in:
690 * dv-mn103int.c (mn103int_ioctl): New function for NMI
691 generation. (mn103int_finish): Install it as ioctl handler.
692 * dv-mn103tim.c: Support timer 6 specially. Endianness fixes.
72f4393d 693
c2d11a7d
JM
694Wed Oct 14 12:11:05 1998 Jeffrey A Law (law@cygnus.com)
695
696 * am33.igen: Allow autoincrement stores using the same register
697 for source and destination operands.
698
699Mon Aug 31 10:19:55 1998 Jeffrey A Law (law@cygnus.com)
700
72f4393d 701 * am33.igen: Reverse HI/LO outputs of 4 operand "mul" and "mulu".
c2d11a7d 702
c906108c
SS
703Fri Aug 28 14:40:49 1998 Joyce Janczyn <janczyn@cygnus.com>
704
705 * interp.c (sim_open): Check for invalid --board option, fix
706 indentation, allocate memory for mem control and DMA regs.
707
708Wed Aug 26 09:29:38 1998 Joyce Janczyn <janczyn@cygnus.com>
709
710 * mn10300.igen (div,divu): Fix divide instructions so divide by 0
711 behaves like the hardware.
712
713Mon Aug 24 11:50:09 1998 Joyce Janczyn <janczyn@cygnus.com>
714
715 * sim-main.h (SIM_HANDLES_LMA): Define SIM_HANDLES_LMA.
716
c2d11a7d
JM
717Wed Aug 12 12:36:07 1998 Jeffrey A Law (law@cygnus.com)
718
72f4393d 719 * am33.igen: Handle case where first DSP operation modifies a
c2d11a7d
JM
720 register used in the second DSP operation correctly.
721
722Tue Jul 28 10:10:25 1998 Jeffrey A Law (law@cygnus.com)
723
724 * am33.igen: Detect cases where two operands must not match for
725 DSP instructions too.
726
727Mon Jul 27 12:04:17 1998 Jeffrey A Law (law@cygnus.com)
728
729 * am33.igen: Detect cases where two operands must not match in
730 non-DSP instructions.
731
c906108c
SS
732Fri Jul 24 18:15:21 1998 Joyce Janczyn <janczyn@cygnus.com>
733
734 * op_utils.c (do_syscall): Rewrite to use common/syscall.c.
735 (syscall_read_mem, syscall_write_mem): New functions for syscall
736 callbacks.
737 * mn10300_sim.h: Add prototypes for syscall_read_mem and
72f4393d 738 syscall_write_mem.
c906108c
SS
739 * mn10300.igen: Change C++ style comments to C style comments.
740 Check for divide by zero in div and divu ops.
741
c2d11a7d
JM
742Fri Jul 24 12:49:28 1998 Jeffrey A Law (law@cygnus.com)
743
744 * am33.igen (translate_xreg): New function. Use it as needed.
745
746Thu Jul 23 10:05:28 1998 Jeffrey A Law (law@cygnus.com)
747
748 * am33.igen: Add some missing instructions.
749
750 * am33.igen: Autoincrement loads/store fixes.
751
752Tue Jul 21 09:48:14 1998 Jeffrey A Law (law@cygnus.com)
753
754 * am33.igen: Add mov_lCC DSP instructions.
755
756 * am33.igen: Add most am33 DSP instructions.
757
c906108c
SS
758Thu Jul 9 10:06:55 1998 Jeffrey A Law (law@cygnus.com)
759
760 * mn10300.igen: Fix Z bit for addc and subc instructions.
761 Minor fixes in multiply/divide patterns.
762
c2d11a7d
JM
763 * am33.igen: Add missing mul[u] imm32,Rn. Fix condition code
764 handling for many instructions. Fix sign extension for some
765 24bit immediates.
766
767 * am33.igen: Fix Z bit for remaining addc/subc instructions.
768 Do not sign extend immediate for mov imm,XRn.
769 More random mul, mac & div fixes.
770 Remove some unused variables.
771 Sign extend 24bit displacement in memory addresses.
772
773 * am33.igen: Fix Z bit for addc Rm,Rn and subc Rm,Rn. Various
774 fixes to 2 register multiply, divide and mac instructions. Set
775 Z,N correctly for sat16. Sign extend 24 bit immediate for add,
776 and sub instructions.
777
778 * am33.igen: Add remaining non-DSP instructions.
779
780Wed Jul 8 16:29:12 1998 Jeffrey A Law (law@cygnus.com)
781
782 * am33.igen (translate_rreg): New function. Use it as appropriate.
783
784 * am33.igen: More am33 instructions. Fix "div".
785
786Mon Jul 6 15:39:22 1998 Jeffrey A Law (law@cygnus.com)
787
788 * mn10300.igen: Add am33 support.
789
790 * Makefile.in: Use multi-sim to support both a mn10300 and am33
791 simulator.
792
793 * am33.igen: Add many more am33 instructions.
c906108c
SS
794
795Wed Jul 1 17:07:09 1998 Jeffrey A Law (law@cygnus.com)
796
797 * mn10300_sim.h (FETCH24): Define.
798
c2d11a7d
JM
799 * mn10300_sim.h: Add defines for some registers found on the AM33.
800 * am33.igen: New file with some am33 support.
c906108c
SS
801
802Tue Jun 30 11:23:20 1998 Jeffrey A Law (law@cygnus.com)
803
804 * mn10300_sim.h: Include bfd.h
805 (struct state): Add more room for processor specific registers.
c2d11a7d 806 (REG_E0): Define.
c906108c
SS
807
808Thu Jun 25 10:12:03 1998 Joyce Janczyn <janczyn@cygnus.com>
809
810 * dv-mn103tim.c: Include sim-assert.h
811 * dv-mn103ser.c (do_polling_event): Check for incoming data on
812 serial line and schedule next polling event.
813 (read_status_reg): schedule events to check for incoming data on
814 serial line and issue interrupt if necessary.
72f4393d 815
c906108c
SS
816Fri Jun 19 16:47:27 1998 Joyce Janczyn <janczyn@cygnus.com>
817
818 * interp.c (sim_open): hook up serial 1 and 2 ports properly (typo).
819
820Fri Jun 19 11:59:26 1998 Joyce Janczyn <janczyn@cygnus.com>
821
822 * interp.c (board): Rename am32 to stdeval1 as this is the name
823 consistently used to refer to the mn1030002 board.
824
825Thu June 18 14:37:14 1998 Joyce Janczyn <janczyn@cygnus.com>
826 * interp.c (sim_open): Fix typo in address of EXTMD register
827 (0x34000280, not 0x3400280).
828
829Wed Jun 17 18:00:18 1998 Jeffrey A Law (law@cygnus.com)
830
831 * simops.c (syscall): Handle change in opcode # for syscall.
832 * mn10300.igen (syscall): Likewise.
833
834Tue June 16 09:36:21 1998 Joyce Janczyn <janczyn@cygnus.com>
835 * dv-mn103int.c (mn103int_finish): Regular interrupts (not NMI or
836 reset) are not enabled on reset.
72f4393d 837
c906108c
SS
838Sun June 14 17:04:00 1998 Joyce Janczyn <janczyn@cygnus.com>
839 * dv-mn103iop.c (write_*_reg): Check for attempt to write r/o
840 register bits.
841 * dv-mn103ser.c: Fill in methods for reading and writing to serial
842 device registers.
843 * interp.c (sim_open): Make the serial device a polling device.
72f4393d 844
c906108c
SS
845Fri June 12 16:24:00 1998 Joyce Janczyn <janczyn@cygnus.com>
846 * dv-mn103iop.c: New file for handling am32 io ports.
847 * configure.in: Add mn103iop to hw_device list.
848 * configure: Re-generate.
849 * interp.c (sim_open): Create io port device.
850
851Wed June 10 14:34:00 1998 Joyce Janczyn <janczyn@cygnus.com>
852 * dv-mn103int.c (external_group): Use enumerated types to access
853 correct group addresses.
854 * dv-mn103tim.c (do_counter_event): Underflow of cascaded timer
855 triggers an interrupt on the higher-numbered timer's port.
856
857Mon June 8 13:30:00 1998 Joyce Janczyn <janczyn@cygnus.com>
858 * interp.c: (mn10300_option_handler): New function parses arguments
859 using sim-options.
860 * (board): Add --board option for specifying am32.
861 * (sim_open): Create new timer and serial devices and control
862 configuration of other am32 devices via board option.
863 * dv-mn103tim.c, dv-mn103ser.c: New files for timers and serial devices.
864 * dv-mn103cpu.c: Fix typos in opening comments.
865 * dv-mn103int.c: Adjust interrupt controller settings for am32 instead of am30.
866 * configure.in: Add mn103tim and mn103ser to hw_device list.
867 * configure: Re-generate.
868
869Mon May 25 20:50:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
870
871 * dv-mn103int.c, dv-mn103cpu.c: Rename *_callback to *_method.
872
873 * dv-mn103cpu.c, dv-mn103int.c: Include hw-main.h and
874 sim-main.h. Declare a struct hw_descriptor instead of struct
875 hw_device_descriptor.
876
877Mon May 25 17:33:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
878
879 * dv-mn103cpu.c (struct mn103cpu): Change type of pending_handler
880 to struct hw_event.
881
882Fri May 22 12:17:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
883
884 * configure.in (SIM_AC_OPTION_HARDWARE): Add argument "yes".
885
886Wed May 6 13:29:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
887
888 * interp.c (sim_open): Create a polling PAL device.
889
890Fri May 1 16:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
891
72f4393d
L
892 * dv-mn103int.c (mn103int_port_event):
893 (mn103int_port_event):
894 (mn103int_io_read_buffer):
895 (mn103int_io_write_buffer):
c906108c
SS
896
897 * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Drop CPU/CIA args.
898 (mn103cpu_port_event): Ditto.
899 (mn103cpu_io_read_buffer): Ditto.
900 (mn103cpu_io_write_buffer): Ditto.
901
902Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
903
72f4393d 904 * configure: Regenerated to track ../common/aclocal.m4 changes.
c906108c
SS
905
906Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
907
908 * configure: Regenerated to track ../common/aclocal.m4 changes.
909 * config.in: Ditto.
910
911Sun Apr 26 15:19:55 1998 Tom Tromey <tromey@cygnus.com>
912
913 * acconfig.h: New file.
914 * configure.in: Reverted change of Apr 24; use sinclude again.
915
916Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
917
918 * configure: Regenerated to track ../common/aclocal.m4 changes.
919 * config.in: Ditto.
920
921Fri Apr 24 11:19:07 1998 Tom Tromey <tromey@cygnus.com>
922
923 * configure.in: Don't call sinclude.
924
925Tue Apr 14 10:03:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
926
927 * mn10300_sim.h: Declare all functions in op_utils.c using
928 INLINE_SIM_MAIN.
929 * op_utils.c: Ditto.
930 * sim-main.c: New file. Include op_utils.c.
72f4393d 931
c906108c
SS
932 * mn10300.igen (mov, cmp): Use new igen operators `!' and `=' to
933 differentiate between MOV/CMP immediate/register instructions.
934
935 * configure.in (SIM_AC_OPTION_INLINE): Add and enable.
936 * configure: Regenerate.
937
938Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
939
940 * configure: Regenerated to track ../common/aclocal.m4 changes.
941
942Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
943
944 * interp.c (hw): Delete variable, moved to SIM_DESC.
945 (sim_open): Delete calls to hw_tree_create, hw_tree_finish.
946 Handled by sim-module.
947 (sim_open): Do not anotate tree with trace properties, handled by
948 sim-hw.c
949 (sim_open): Call sim_hw_parse instead of hw_tree_parse.
950
951 * configure: Regenerated to track ../common/aclocal.m4 changes.
952
953Thu Mar 26 20:46:18 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
954
955 * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Save the entire PC
956 on the stack when delivering interrupts (not just the lower
957 half)...
958 * mn10300.igen (mov (Di,Am),Dn): Fix decode. Registers were
959 specified in the wrong order.
960
961Fri Mar 27 00:56:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
962
963 * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Stop loss of
964 succeeding interrupts, clear pending_handler when the handler
965 isn't re-scheduled.
966
967Thu Mar 26 10:11:01 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
968
969 * Makefile.in (tmp-igen): Prefix all usage of move-if-change
970 script with $(SHELL) to make NT native builds happy.
971 * configure: Regenerate because of change to ../common/aclocal.m4.
72f4393d 972
c906108c
SS
973Thu Mar 26 11:22:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
974
975 * configure.in: Make --enable-sim-common the default.
976 * configure: Re-generate.
72f4393d 977
c906108c
SS
978 * sim-main.h (CIA_GET, CIA_SET): Save/restore current instruction
979 address into Sate.regs[REG_PC] instead of common struct.
980
981Wed Mar 25 17:42:00 1998 Joyce Janczyn <janczyn@cygnus.com>
982
983 * mn10300.igen (cmp imm8,An): Do not sign extend imm8 value.
984
985Wed Mar 25 12:08:00 1998 Joyce Janczyn <janczyn@cygnus.com>
986
987 * simops.c (OP_F0FD): Initialise variable 'sp'.
988
989Thu Mar 26 00:21:32 1998 Andrew Cagney <cagney@b1.cygnus.com>
990
991 * dv-mn103int.c (decode_group): A group register every 4 bytes not
992 8.
993 (write_icr): Rewrite equation updating request field.
994 (read_iagr): Fix check that interrupt is still pending.
995
996Wed Mar 25 16:14:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
997
998 * interp.c (sim_open): Tidy up device creation.
999
1000 * dv-mn103int.c (mn103int_port_event): Drive NMI with non-zero
1001 value.
1002 (mn103int_io_read_buffer): Convert absolute address to register
1003 block offsets.
1004 (read_icr, write_icr): Convert block offset into group offset.
72f4393d 1005
c906108c
SS
1006Wed Mar 25 15:08:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
1007
1008 * interp.c (sim_open): Create second 1mb memory region at
1009 0x40000000.
1010 (sim_open): Create a device tree.
1011 (sim-hw.h): Include.
1012 (do_interrupt): Delete, needs to use dv-mn103cpu.c
1013
1014 * dv-mn103int.c, dv-mn103cpu.c: New files.
1015
1016Wed Mar 25 08:47:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
1017
1018 * mn10300_sim.h (EXTRACT_PSW_LM, INSERT_PSW_LM, PSW_IE, PSW_LM):
1019 Define.
1020 (SP): Define.
72f4393d 1021
c906108c
SS
1022Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
1023
1024 * configure: Regenerated to track ../common/aclocal.m4 changes.
1025
1026Wed Mar 25 10:24:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
1027
1028 * interp.c (sim-options.h): Include.
1029 (sim_kind, myname): Declare when not using common framework.
1030
1031 * mn10300_sim.h (do_syscall, generic*): Provide prototypes for
1032 functions found in op_utils.c
1033
1034 * mn10300.igen (add): Discard unused variables.
1035
1036 * configure, config.in: Re-generate with autoconf 2.12.1.
72f4393d 1037
c906108c
SS
1038Tue Mar 24 15:27:00 1998 Joyce Janczyn <janczyn@cygnus.com>
1039
1040 Add support for --enable-sim-common option.
1041 * Makefile.in (WITHOUT_COMMON_OBJS): Files included if
1042 ! --enable-sim-common
1043 (WITH_COMMON_OBJS): Files included if --enable-sim-common.
1044 (MN10300_OBJS,MN10300_INTERP_DEP): New variables.
1045 (SIM_OBJS): Rewrite.
1046 ({WITHOUT,WITH}_COMMON_RUN_OBJS,SIM_RUN_OBJS): New variables.
1047 (SIM_EXTRA_CFLAGS): New variable.
1048 (clean-extra): Clean up igen files.
1049 (../igen/igen,clean-igen,tmp-igen): New rules.
72f4393d 1050 * configure.in: Add support for common framework via
c906108c
SS
1051 --enable-sim-common.
1052 * configure: Regenerate.
1053 * interp.c: #include sim-main if WITH_COMMON, not mn10300_sim.h.
1054 (hash,dispatch,sim_size): Don't compile if ! WITH_COMMON.
1055 (init_system,sim_write,compare_simops): Likewise.
1056 (sim_set_profile,sim_set_profile_size): Likewise.
1057 (sim_stop,sim_resume,sim_trace,sim_info): Likewise.
1058 (sim_set_callbacks,sim_stop_reason,sim_read,sim_load): Likewise.
1059 (enum interrupt_type): New enum.
1060 (interrupt_names): New global.
1061 (do_interrupt): New function.
1062 (sim_open): Define differently if WITH_COMMON.
1063 (sim_close,sim_create_inferior,sim_do_command): Likewise.
1064 * mn10300_sim.h ({load,store}_{byte,half,word}): Define versions
1065 for WITH_COMMON.
1066 * mn10300.igen: New file.
1067 * mn10300.dc: New file.
1068 * op_utils.c: New file.
1069 * sim-main.h: New file.
1070
1071Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
1072
1073 * configure: Regenerated to track ../common/aclocal.m4 changes.
1074
1075Fri Feb 27 18:36:04 1998 Jeffrey A Law (law@cygnus.com)
1076
1077 * simops.c (inc): Fix typo.
1078
1079Wed Feb 25 01:59:29 1998 Jeffrey A Law (law@cygnus.com)
1080
72f4393d
L
1081 * simops.c (signed multiply instructions): Cast input operands to
1082 signed32 before casting them to signed64 so that the sign bit
1083 is propagated properly.
c906108c
SS
1084
1085Mon Feb 23 20:23:19 1998 Mark Alexander <marka@cygnus.com>
1086
1087 * Makefile.in: Last change was bad. Define NL_TARGET
1088 so that targ-vals.h will be used instead of syscall.h.
1089 * simops.c: Use targ-vals.h instead of syscall.h.
1090 (OP_F020): Disable unsupported system calls.
1091
1092Mon Feb 23 09:44:38 1998 Mark Alexander <marka@cygnus.com>
1093
1094 * Makefile.in: Get header files from libgloss/mn10300/sys.
1095
1096Sun Feb 22 16:02:24 1998 Jeffrey A Law (law@cygnus.com)
1097
1098 * simops.c: Include sim-types.h.
1099
1100Wed Feb 18 13:07:08 1998 Jeffrey A Law (law@cygnus.com)
1101
1102 * simops.c (multiply instructions): Cast input operands to a
1103 signed64/unsigned64 type as appropriate.
1104
1105Tue Feb 17 12:47:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
1106
1107 * interp.c (sim_store_register, sim_fetch_register): Pass in
1108 length parameter. Return -1.
1109
1110Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
1111
1112 * configure: Regenerated to track ../common/aclocal.m4 changes.
1113
1114Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
1115
1116 * configure: Regenerated to track ../common/aclocal.m4 changes.
1117
1118Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
1119
1120 * configure: Regenerated to track ../common/aclocal.m4 changes.
1121
1122Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1123
1124 * configure: Regenerated to track ../common/aclocal.m4 changes.
1125 * config.in: Ditto.
1126
1127Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
1128
1129 * configure: Regenerated to track ../common/aclocal.m4 changes.
1130
1131Tue Nov 11 10:38:52 1997 Jeffrey A Law (law@cygnus.com)
1132
1133 * simops.c (call:16 call:32): Stack adjustment is determined solely
1134 by the imm8 field.
1135
1136Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1137
1138 * interp.c (sim_load): Pass lma_p and sim_write args to
1139 sim_load_file.
1140
1141Tue Oct 21 10:12:03 1997 Jeffrey A Law (law@cygnus.com)
1142
1143 * simops.c: Correctly handle register restores for "ret" and "retf"
1144 instructions.
1145
1146Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1147
1148 * configure: Regenerated to track ../common/aclocal.m4 changes.
1149
1150Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1151
1152 * configure: Regenerated to track ../common/aclocal.m4 changes.
1153
1154Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1155
1156 * configure: Regenerated to track ../common/aclocal.m4 changes.
1157
1158Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1159
1160 * configure: Regenerated to track ../common/aclocal.m4 changes.
1161
1162Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1163
1164 * configure: Regenerated to track ../common/aclocal.m4 changes.
1165
1166Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1167
1168 * configure: Regenerated to track ../common/aclocal.m4 changes.
1169
1170Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1171
1172 * configure: Regenerated to track ../common/aclocal.m4 changes.
1173
1174Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1175
1176 * configure: Regenerated to track ../common/aclocal.m4 changes.
1177 * config.in: Ditto.
1178
1179Tue Aug 26 10:41:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
1180
1181 * interp.c (sim_kill): Delete.
1182 (sim_create_inferior): Add ABFD argument.
1183 (sim_load): Move setting of PC from here.
72f4393d 1184 (sim_create_inferior): To here.
c906108c
SS
1185
1186Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1187
1188 * configure: Regenerated to track ../common/aclocal.m4 changes.
1189 * config.in: Ditto.
1190
1191Mon Aug 25 16:14:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
1192
1193 * interp.c (sim_open): Add ABFD argument.
1194
1195Tue Jun 24 13:46:20 1997 Jeffrey A Law (law@cygnus.com)
1196
1197 * interp.c (sim_resume): Clear State.exited.
1198 (sim_stop_reason): If State.exited is nonzero, then indicate that
1199 the simulator exited instead of stopped.
1200 * mn10300_sim.h (struct _state): Add exited field.
1201 * simops.c (syscall): Set State.exited for SYS_exit.
1202
1203Wed Jun 11 22:07:56 1997 Jeffrey A Law (law@cygnus.com)
1204
1205 * simops.c: Fix thinko in last change.
1206
1207Tue Jun 10 12:31:32 1997 Jeffrey A Law (law@cygnus.com)
1208
1209 * simops.c: "call" stores the callee saved registers into the
1210 stack! Update the stack pointer properly when done with
1211 register saves.
1212
1213 * simops.c: Fix return address computation for "call" instructions.
1214
1215Thu May 22 01:43:11 1997 Jeffrey A Law (law@cygnus.com)
1216
1217 * interp.c (sim_open): Fix typo.
1218
1219Wed May 21 23:27:58 1997 Jeffrey A Law (law@cygnus.com)
1220
1221 * interp.c (sim_resume): Add missing case in big switch
1222 statement (for extb instruction).
1223
1224Tue May 20 17:51:30 1997 Jeffrey A Law (law@cygnus.com)
1225
1226 * interp.c: Replace all references to load_mem and store_mem
1227 with references to load_byte, load_half, load_3_byte, load_word
1228 and store_byte, store_half, store_3_byte, store_word.
1229 (INLINE): Delete definition.
1230 (load_mem_big): Likewise.
1231 (max_mem): Make it global.
1232 (dispatch): Make this function inline.
1233 (load_mem, store_mem): Delete functions.
1234 * mn10300_sim.h (INLINE): Define.
1235 (RLW): Delete unused definition.
1236 (load_mem, store_mem): Delete declarations.
1237 (load_mem_big): New definition.
1238 (load_byte, load_half, load_3_byte, load_word): New functions.
1239 (store_byte, store_half, store_3_byte, store_word): New functions.
1240 * simops.c: Replace all references to load_mem and store_mem
1241 with references to load_byte, load_half, load_3_byte, load_word
1242 and store_byte, store_half, store_3_byte, store_word.
1243
1244Tue May 20 10:21:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
1245
1246 * interp.c (sim_open): Add callback to arguments.
1247 (sim_set_callbacks): Delete SIM_DESC argument.
1248
1249Mon May 19 13:54:22 1997 Jeffrey A Law (law@cygnus.com)
1250
1251 * interp.c (dispatch): Make this an inline function.
1252
1253 * simops.c (syscall): Use callback->write regardless of
1254 what file descriptor we're writing too.
1255
1256Sun May 18 16:46:31 1997 Jeffrey A Law (law@cygnus.com)
1257
1258 * interp.c (load_mem_big): Remove function. It's now a macro
1259 defined elsewhere.
1260 (compare_simops): New function.
1261 (sim_open): Sort the Simops table before inserting entries
1262 into the hash table.
1263 * mn10300_sim.h: Remove unused #defines.
1264 (load_mem_big): Define.
1265
1266Fri May 16 16:36:17 1997 Jeffrey A Law (law@cygnus.com)
1267
1268 * interp.c (load_mem): If we get a load from an out of range
1269 address, abort.
1270 (store_mem): Likewise for stores.
1271 (max_mem): New variable.
1272
1273Tue May 6 13:24:36 1997 Jeffrey A Law (law@cygnus.com)
1274
1275 * mn10300_sim.h: Fix ordering of bits in the PSW.
1276
1277 * interp.c: Improve hashing routine to avoid long list
1278 traversals for common instructions. Add HASH_STAT support.
1279 Rewrite opcode dispatch code using a big switch instead of
1280 cascaded if/else statements. Avoid useless calls to load_mem.
1281
1282Mon May 5 18:07:48 1997 Jeffrey A Law (law@cygnus.com)
1283
1284 * mn10300_sim.h (struct _state): Add space for mdrq register.
1285 (REG_MDRQ): Define.
1286 * simops.c: Don't abort for trap. Add support for the extended
1287 instructions, "getx", "putx", "mulq", "mulqu", "sat16", "sat24",
1288 and "bsch".
1289
1290Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1291
1292 * configure: Regenerated to track ../common/aclocal.m4 changes.
1293
1294Fri Apr 18 14:04:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
1295
1296 * interp.c (sim_stop): Add stub function.
1297
1298Thu Apr 17 03:26:59 1997 Doug Evans <dje@canuck.cygnus.com>
1299
1300 * Makefile.in (SIM_OBJS): Add sim-load.o.
1301 * interp.c (sim_kind, myname): New static locals.
1302 (sim_open): Set sim_kind, myname. Ignore -E arg.
1303 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
1304 load file into simulator. Set start address from bfd.
1305 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1306
1307Wed Apr 16 19:30:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
1308
1309 * simops.c (OP_F020): SYS_execv, SYS_time, SYS_times, SYS_utime
1310 only include if implemented by host.
1311 (OP_F020): Typecast arg passed to time function;
1312
1313Mon Apr 7 23:57:49 1997 Jeffrey A Law (law@cygnus.com)
1314
1315 * simops.c (syscall): Handle new mn10300 calling conventions.
1316
1317Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1318
1319 * configure: Regenerated to track ../common/aclocal.m4 changes.
1320 * config.in: Ditto.
1321
1322Fri Apr 4 20:02:37 1997 Ian Lance Taylor <ian@cygnus.com>
1323
1324 * Makefile.in: Change mn10300-opc.o to m10300-opc.o, to match
1325 corresponding change in opcodes directory.
1326
1327Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1328
1329 * interp.c (sim_open): New arg `kind'.
1330
1331 * configure: Regenerated to track ../common/aclocal.m4 changes.
1332
1333Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1334
1335 * configure: Regenerated to track ../common/aclocal.m4 changes.
1336
1337Thu Mar 20 11:58:02 1997 Jeffrey A Law (law@cygnus.com)
1338
1339 * simops.c: Fix register extraction for a two "movbu" variants.
1340 Somewhat simplify "sub" instructions.
1341 Correctly sign extend operands for "mul". Put the correct
1342 half of the result in MDR for "mul" and "mulu".
1343 Implement remaining instructions.
1344 Tweak opcode for "syscall".
1345
1346Tue Mar 18 14:21:21 1997 Jeffrey A Law (law@cygnus.com)
1347
1348 * simops.c: Do syscall emulation in "syscall" instruction. Add
1349 dummy "trap" instruction.
1350
1351Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1352
1353 * configure: Regenerated to track ../common/aclocal.m4 changes.
1354
1355Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1356
1357 * configure: Re-generate.
1358
1359Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1360
1361 * configure: Regenerate to track ../common/aclocal.m4 changes.
1362
1363Thu Mar 13 12:54:45 1997 Doug Evans <dje@canuck.cygnus.com>
1364
1365 * interp.c (sim_open): New SIM_DESC result. Argument is now
1366 in argv form.
1367 (other sim_*): New SIM_DESC argument.
1368
1369Wed Mar 12 15:04:00 1997 Jeffrey A Law (law@cygnus.com)
1370
1371 * simops.c: Fix carry bit computation for "add" instructions.
1372
1373 * simops.c: Fix typos in bset insns. Fix arguments to store_mem
1374 for bset imm8,(d8,an) and bclr imm8,(d8,an).
1375
1376Wed Mar 5 15:00:10 1997 Jeffrey A Law (law@cygnus.com)
1377
1378 * simops.c: Fix register references when computing Z and N bits
1379 for lsr imm8,dn.
1380
1381Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1382
1383 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1384 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1385 * configure.in: sinclude ../common/aclocal.m4.
1386 * configure: Regenerated.
1387
1388Fri Jan 24 10:47:25 1997 Jeffrey A Law (law@cygnus.com)
1389
1390 * interp.c (init_system): Allocate 2^19 bytes of space for the
1391 simulator.
1392
1393Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1394
1395 * configure configure.in Makefile.in: Update to new configure
1396 scheme which is more compatible with WinGDB builds.
1397 * configure.in: Improve comment on how to run autoconf.
1398 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1399 * Makefile.in: Use autoconf substitution to install common
1400 makefile fragment.
1401
1402Tue Jan 21 15:03:04 1997 Jeffrey A Law (law@cygnus.com)
1403
1404 * simops.c: Undo last change to "rol" and "ror", original code
1405 was correct!
1406
1407Thu Jan 16 11:28:14 1997 Jeffrey A Law (law@cygnus.com)
1408
1409 * simops.c: Fix "rol" and "ror".
1410
1411Wed Jan 15 06:45:58 1997 Jeffrey A Law (law@cygnus.com)
1412
1413 * simops.c: Fix typo in last change.
1414
1415Mon Jan 13 13:22:35 1997 Jeffrey A Law (law@cygnus.com)
1416
1417 * simops.c: Use REG macros in few places not using them yet.
1418
1419Mon Jan 6 16:21:19 1997 Jeffrey A Law (law@cygnus.com)
1420
1421 * mn10300_sim.h (struct _state): Fix number of registers!
1422
1423Tue Dec 31 16:20:41 1996 Jeffrey A Law (law@cygnus.com)
1424
1425 * mn10300_sim.h (struct _state): Put all registers into a single
1426 array to make gdb implementation easier.
1427 (REG_*): Add definitions for all registers in the state array.
1428 (SEXT32, SEXT40, SEXT44, SEXT60): Remove unused macros.
1429 * simops.c: Related changes.
1430
1431Wed Dec 18 10:10:45 1996 Jeffrey A Law (law@cygnus.com)
1432
1433 * interp.c (sim_resume): Handle 0xff as a single byte insn.
1434
1435 * simops.c: Fix overflow computation for "add" and "inc"
1436 instructions.
1437
1438Mon Dec 16 10:03:52 1996 Jeffrey A Law (law@cygnus.com)
1439
1440 * simops.c: Handle "break" instruction.
1441
1442 * simops.c: Fix restoring the PC for "ret" and "retf" instructions.
1443
1444Wed Dec 11 09:53:10 1996 Jeffrey A Law (law@cygnus.com)
1445
1446 * gencode.c (write_opcodes): Also write out the format of the
1447 opcode.
1448 * mn10300_sim.h (simops): Add "format" field.
1449 * interp.c (sim_resume): Deal with endianness issues here.
1450
1451Tue Dec 10 15:05:37 1996 Jeffrey A Law (law@cygnus.com)
1452
1453 * simops.c (REG0_4): Define.
1454 Use REG0_4 for indexed loads/stores.
1455
1456Sat Dec 7 09:50:28 1996 Jeffrey A Law (law@cygnus.com)
1457
1458 * simops.c (REG0_16): Fix typo.
1459
1460Fri Dec 6 14:13:34 1996 Jeffrey A Law (law@cygnus.com)
1461
1462 * simops.c: Call abort for any instruction that's not currently
1463 simulated.
1464
1465 * simops.c: Define accessor macros to extract register
1466 values from instructions. Use them consistently.
1467
1468 * interp.c: Delete unused global variable "OP".
1469 (sim_resume): Remove unused variable "opcode".
1470 * simops.c: Fix some uninitialized variable problems, add
1471 parens to fix various -Wall warnings.
1472
1473 * gencode.c (write_header): Add "insn" and "extension" arguments
1474 to the OP_* declarations.
1475 (write_template): Similarly for function templates.
1476 * interp.c (insn, extension): Remove global variables. Instead
1477 pass them as arguments to the OP_* functions.
1478 * mn10300_sim.h: Remove decls for "insn" and "extension".
1479 * simops.c (OP_*): Accept "insn" and "extension" as arguments
1480 instead of using globals.
1481
1482Thu Dec 5 22:26:31 1996 Jeffrey A Law (law@cygnus.com)
1483
1484 * simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)"
1485
1486 * simops.c: Fix thinkos in last change to "inc dn".
1487
1488Wed Dec 4 10:57:53 1996 Jeffrey A Law (law@cygnus.com)
1489
1490 * simops.c: "add imm,sp" does not effect the condition codes.
1491 "inc dn" does effect the condition codes.
1492
1493Tue Dec 3 17:37:45 1996 Jeffrey A Law (law@cygnus.com)
1494
1495 * simops.c: Treat both operands as signed values for
1496 "div" instruction.
1497
1498 * simops.c: Fix simulation of division instructions.
1499 Fix typos/thinkos in several "cmp" and "sub" instructions.
1500
1501Mon Dec 2 12:31:40 1996 Jeffrey A Law (law@cygnus.com)
1502
1503 * simops.c: Fix carry bit handling in "sub" and "cmp"
1504 instructions.
1505
1506 * simops.c: Fix "mov imm8,an" and "mov imm16,dn".
1507
1508Sun Dec 1 16:05:42 1996 Jeffrey A Law (law@cygnus.com)
1509
1510 * simops.c: Fix overflow computation for many instructions.
1511
1512 * simops.c: Fix "mov dm, an", "movbu dm, (an)", and "movhu dm, (an)".
1513
1514 * simops.c: Fix "mov am, dn".
1515
1516 * simops.c: Fix more bugs in "add imm,an" and
1517 "add imm,dn".
1518
1519Wed Nov 27 09:20:42 1996 Jeffrey A Law (law@cygnus.com)
1520
1521 * simops.c: Fix bugs in "movm" and "add imm,an".
1522
1523 * simops.c: Don't lose the upper 24 bits of the return
1524 pointer in "call" and "calls" instructions. Rough cut
1525 at emulated system calls.
1526
1527 * simops.c: Implement the remaining 5, 6 and 7 byte instructions.
1528
1529 * simops.c: Implement remaining 4 byte instructions.
1530
1531 * simops.c: Implement remaining 3 byte instructions.
1532
1533 * simops.c: Implement remaining 2 byte instructions. Call
1534 abort for instructions we're not implementing now.
1535
1536Tue Nov 26 15:43:41 1996 Jeffrey A Law (law@cygnus.com)
1537
1538 * simops.c: Implement lots of random instructions.
1539
1540 * simops.c: Implement "movm" and "bCC" insns.
1541
1542 * mn10300_sim.h (_state): Add another register (MDR).
1543 (REG_MDR): Define.
1544 * simops.c: Implement "cmp", "calls", "rets", "jmp" and
1545 a few additional random insns.
1546
1547 * mn10300_sim.h (PSW_*): Define for CC status tracking.
1548 (REG_D0, REG_A0, REG_SP): Define.
1549 * simops.c: Implement "add", "addc" and a few other random
1550 instructions.
1551
1552 * gencode.c, interp.c: Snapshot current simulator code.
1553
1554Mon Nov 25 12:46:38 1996 Jeffrey A Law (law@cygnus.com)
1555
1556 * Makefile.in, config.in, configure, configure.in: New files.
1557 * gencode.c, interp.c, mn10300_sim.h, simops.c: New files.
72f4393d 1558