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