]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mn10300/ChangeLog
sim: options: add --version support
[thirdparty/binutils-gdb.git] / sim / mn10300 / ChangeLog
CommitLineData
64f14c97
MF
12015-04-13 Mike Frysinger <vapier@gentoo.org>
2
3 * Makefile.in (MN10300_OBJS): Add sim-cpu.o.
4 * interp.c (mn10300_pc_get, mn10300_pc_set): New functions.
5 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
6 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
7 (sim_pc_get): Delete.
8 * sim-main.h (null_cia, NULL_CIA): Delete.
9 (SIM_CPU): Define.
10 (struct sim_state): Change cpu to an array of pointers.
11 (STATE_CPU): Drop & and handle WITH_SMP.
12
122bbfb5
MF
132015-04-06 Mike Frysinger <vapier@gentoo.org>
14
15 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
16
aadc9410
MF
172015-03-31 Mike Frysinger <vapier@gentoo.org>
18
19 * config.in, configure: Regenerate.
20
05f53ed6
MF
212015-03-24 Mike Frysinger <vapier@gentoo.org>
22
23 * interp.c (sim_pc_get): New function.
24
30452bbe
MF
252015-03-24 Mike Frysinger <vapier@gentoo.org>
26
27 * configure: Regenerate.
28
66b0e85d
MF
292015-03-23 Mike Frysinger <vapier@gentoo.org>
30
31 * Makefile.in (MN10300_OBJS): Delete dv-sockser.o.
32
64dd13df
MF
332015-03-23 Mike Frysinger <vapier@gentoo.org>
34
35 * configure: Regenerate.
36
49cd1634
MF
372015-03-23 Mike Frysinger <vapier@gentoo.org>
38
39 * configure: Regenerate.
40
4af3e7e0
MF
412015-03-23 Mike Frysinger <vapier@gentoo.org>
42
43 * configure: Regenerate.
44
3649cb06
MF
452015-03-23 Mike Frysinger <vapier@gentoo.org>
46
47 * configure: Regenerate.
48 * configure.ac: Delete SIM_DV_SOCKSER_O check.
49
ae7d0cac
MF
502015-03-16 Mike Frysinger <vapier@gentoo.org>
51
52 * config.in, configure: Regenerate.
53
8406bb59
MF
542015-03-15 Mike Frysinger <vapier@gentoo.org>
55
56 * tconfig.in: Delete file.
57
465fb143
MF
582015-03-14 Mike Frysinger <vapier@gentoo.org>
59
60 * Makefile.in (SIM_RUN_OBJS): Delete.
61
5cddc23a
MF
622015-03-14 Mike Frysinger <vapier@gentoo.org>
63
64 * configure.ac (AC_CHECK_HEADERS): Delete unistd.h & stdlib.h &
65 string.h & strings.h & time.h.
66 * aclocal.m4, configure: Regenerate.
67
2974be62
AM
682014-08-19 Alan Modra <amodra@gmail.com>
69
70 * configure: Regenerate.
71
faa743bb
RM
722014-08-15 Roland McGrath <mcgrathr@google.com>
73
74 * configure: Regenerate.
75 * config.in: Regenerate.
76
1a8a700e
MF
772014-03-04 Mike Frysinger <vapier@gentoo.org>
78
79 * configure: Regenerate.
80
bf3d9781
AM
812013-09-23 Alan Modra <amodra@gmail.com>
82
83 * configure: Regenerate.
84
31e6ad7d
MF
852013-06-03 Mike Frysinger <vapier@gentoo.org>
86
87 * aclocal.m4, configure: Regenerate.
88
d3685d60
TT
892013-05-10 Freddie Chopin <freddie_chopin@op.pl>
90
91 * configure: Rebuild.
92
1517bd27
MF
932013-03-26 Mike Frysinger <vapier@gentoo.org>
94
95 * configure: Regenerate.
96
fb61c40a
JS
972013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
98
99 * configure.ac: Fail if dv-sockser.o not available.
100 Error when --disable-sim-hardware is specified.
101 * tconfig.in: Conditionalize use of dv_sockser_install.
102 * configure: Regenerated.
103 * config.in: Regenerated.
104
e8c21678
HPN
1052012-06-17 Hans-Peter Nilsson <hp@axis.com>
106
107 * interp.c: Include config.h first. Do not include sysdep.h.
108
5f3ef9d0
JB
1092012-06-15 Joel Brobecker <brobecker@adacore.com>
110
111 * config.in, configure: Regenerate.
112
2232061b
MF
1132012-03-24 Mike Frysinger <vapier@gentoo.org>
114
115 * aclocal.m4, config.in, configure: Regenerate.
116
f95586a4
KB
1172012-02-16 Kevin Buettner <kevinb@redhat.com>
118
119 * interp.c (sim_fetch_register): Return length, not -1.
120
12c3e59c
JB
1212012-01-02 Joel Brobecker <brobecker@adacore.com>
122
123 * sim-main.h: Reformat copyright header.
124
db2e4d67
MF
1252011-12-03 Mike Frysinger <vapier@gentoo.org>
126
127 * aclocal.m4: New file.
128 * configure: Regenerate.
129
481d7981
MF
1302011-11-07 Mike Frysinger <vapier@gentoo.org>
131
132 PR sim/9302
133 * dv-mn103iop.c (write_dedicated_control_reg): Convert && to &.
134
4399a56b
MF
1352011-10-19 Mike Frysinger <vapier@gentoo.org>
136
137 * configure: Regenerate after common/acinclude.m4 update.
138
9c082ca8
MF
1392011-10-17 Mike Frysinger <vapier@gentoo.org>
140
141 * configure.ac: Change include to common/acinclude.m4.
142
6ffe910a
MF
1432011-10-17 Mike Frysinger <vapier@gentoo.org>
144
145 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
146 call. Replace common.m4 include with SIM_AC_COMMON.
147 * configure: Regenerate.
148
2419798b
MF
1492011-07-05 Mike Frysinger <vapier@gentoo.org>
150
151 * interp.c (sim_do_command): Delete.
152
be07a3d3
NC
1532011-06-20 Nick Clifton <nickc@redhat.com>
154
155 * am33.igen (sub Rm,Rn,Rd): Fix computation of carry flag.
156
dae477fe
AB
1572011-01-11 Andrew Burgess <aburgess@broadcom.com>
158
159 * interp.c (sim_store_register): Update return value to
160 match new API.
161
952ad68f
MF
1622010-04-19 Mike Frysinger <vapier@gentoo.org>
163
164 * dv-mn103ser.c (sockser_addr, USE_SOCKSER_P): Delete
165 (do_polling_event): Change USE_SOCKSER_P to dv_sockser_status.
166 (read_status_reg): Likewise.
167 (write_txb): Likewise.
168
3725885a
RW
1692010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
170
171 * configure: Regenerate.
172
d6416cdc
RW
1732009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
174
81ecdfbb
RW
175 * config.in: Regenerate.
176 * configure: Likewise.
177
d6416cdc
RW
178 * configure: Regenerate.
179
b5bd9624
HPN
1802008-07-11 Hans-Peter Nilsson <hp@axis.com>
181
182 * configure: Regenerate to track ../common/common.m4 changes.
183 * config.in: Ditto.
184
6efef468
JM
1852008-06-06 Vladimir Prus <vladimir@codesourcery.com>
186 Daniel Jacobowitz <dan@codesourcery.com>
187 Joseph Myers <joseph@codesourcery.com>
188
189 * configure: Regenerate.
190
edc5d9ec
HPN
1912006-12-21 Hans-Peter Nilsson <hp@axis.com>
192
193 * acconfig.h: Remove.
194 * config.in: Regenerate.
195
e85e3205
RE
1962006-06-13 Richard Earnshaw <rearnsha@arm.com>
197
198 * configure: Regenerated.
199
2f0122dc
DJ
2002006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
201
202 * configure: Regenerated.
203
20e95c23
DJ
2042006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
205
206 * configure: Regenerated.
207
b3a3ffef
HPN
2082006-03-29 Hans-Peter Nilsson <hp@axis.com>
209
210 * configure: Regenerate.
211
2b193c4a
MK
2122005-03-23 Mark Kettenis <kettenis@gnu.org>
213
214 * configure: Regenerate.
215
35695fd6
AC
2162005-01-14 Andrew Cagney <cagney@gnu.org>
217
218 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
219 explicit call to AC_CONFIG_HEADER.
220 * configure: Regenerate.
221
f0569246
AC
2222005-01-12 Andrew Cagney <cagney@gnu.org>
223
224 * configure.ac: Update to use ../common/common.m4.
225 * configure: Re-generate.
226
38f48d72
AC
2272005-01-11 Andrew Cagney <cagney@localhost.localdomain>
228
229 * configure: Regenerated to track ../common/aclocal.m4 changes.
230
b7026657
AC
2312005-01-07 Andrew Cagney <cagney@gnu.org>
232
233 * configure.ac: Rename configure.in, require autoconf 2.59.
234 * configure: Re-generate.
235
379832de
HPN
2362004-12-08 Hans-Peter Nilsson <hp@axis.com>
237
238 * configure: Regenerate for ../common/aclocal.m4 update.
239
599e0b9e
AO
2402004-06-26 Alexandre Oliva <aoliva@redhat.com>
241
c76b4bab
AO
242 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
243 * am33-2.igen (fmadd, fmsub, fmnadd, fmnsub): Correct typo.
244 2000-05-29 Alexandre Oliva <aoliva@cygnus.com>
245 * interp.c (fpu_disabled_exception, fpu_unimp_exception,
246 fpu_check_signal_exception): Take additional state arguments.
247 Print exception type and call program_interrupt. Adjust callers.
248 (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
249 fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Take additional
250 arguments.
251 * mn10300_sim.h (fpu_disabled_exception, fpu_unimp_exception,
252 fpu_check_signal_exception): Adjust prototypes.
253 (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
254 fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Likewise.
255 * am33-2.igen: Adjust calls.
256 2000-05-19 Alexandre Oliva <aoliva@cygnus.com>
257 * op_utils.c (cmp2fcc): Moved...
258 * interp.c: ... here.
259 2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
260 * am33-2.igen: Use `unsigned32', `signed32', `unsigned64' or
261 `signed64' where type width is relevant.
262 2000-05-15 Alexandre Oliva <aoliva@cygnus.com>
263 * mn10300_sim.h: Include sim-fpu.h.
264 (FD2FPU, FPU2FD): Enclose the FD argument in parentheses.
265 (fpu_check_signal_exception): Declare.
266 (struct fp_prec_t, fp_single_prec, fp_double_prec): Likewise.
267 (FP_SINGLE, FP_DOUBLE): Shorthands for fp_*_prec.
268 (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
269 fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Declare.
270 * interp.c (fpu_disabled_exception): Document.
271 (fpu_unimp_exception): Likewise.
272 (fpu_check_signal_exception): Define.
273 (reg2val_32, round_32, val2reg_32, fp_single_prec): Likewise.
274 (reg2val_64, round_64, val2reg_64, fp_double_prec): Likewise.
275 (REG2VAL, ROUND, VAL2REG): Define shorthands.
276 (fpu_status_ok): Define.
277 (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
278 fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Define.
279 * am33-2.igen (frsqrt, fcmp, fadd, fsub, fmul, fdiv,
280 fmadd, fmsub, fnmadd, fnmsub): Use new functions.
281 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
282 * interp.c (sim_create_inferior): Set PSW bit to enable FP insns
283 if architecture is AM33/2.0.
284 * am33.igen: Include am33-2.igen.
285 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
286 * mn10300.igen (movm, call, ret, retf): Check for am33_2 too.
287 * am33.igen (movm): Likewise.
288 2000-04-19 Alexandre Oliva <aoliva@cygnus.com>
289 * am33.igen: Added `*am33_2' to some instructions that were
290 missing it.
291 2000-04-07 Alexandre Oliva <aoliva@cygnus.com>
292 * am33-2.igen: New file. All insns implemented, but FP flags are
293 only set for fcmp, exceptional conditions are not handled yet.
294 * Makefile.in (IGEN_INSN): Added am33-2.igen.
295 (tmp-igen): Added -M am33_2.
296 * mn10300.igen, am33.igen: Added `*am33_2' to all insns.
297 * gencode.c: Support FMT_D3.
298 * mn10300_sim.h (dword): New type.
299 (struct _state): Added fpregs.
300 (REG_FPCR, FPCR): New define. All assorted bitmaps.
301 (XS2FS, AS2FS, Xf2FD): New macros.
302 (FS2FPU, FD2FPU, FPU2FS, FPU2FD): Likewise.
303 (load_dword, store_dword): New functions or macros.
304 (u642dw, dw2u64): New functions.
305 (fpu_disabled_exception, fpu_unimp_exception): Declared.
306 * interp.c (fpu_disabled_exception): Defined; no actual
307 implementation.
308 (fpu_unimp_exception): Likewise.
309 * op_utils.c (cmp2fcc): New function.
310
489503ee
AO
311 * interp.c, mn10300_sim.h, op_utils.c: Convert function prototypes
312 and definitions to ISO C.
313
622c89b6
AO
314 * gencode.c, simops.c: Delete.
315 * Makefile.in: Remove non-COMMON dependencies and commands.
316
599e0b9e
AO
317 * configure.in: Use common simulator always. Don't subst sim_gen
318 nor mn10300_common.
319 * configure: Rebuilt.
320 * Makefile.in (WITHOUT_COMMON_OBJS, WITHOUT_COMMON_INTERP_DEP,
321 WITHOUT_COMMON_RUN_OBJS): Remove.
322 (WITH_COMMON_OBJS): Rename to MN10300_OBJS.
323 (WITH_COMMON_INTERP_DEP): Rename to MN10300_INTERP_DEP.
324 (WITH_COMMON_RUN_OBJS): Rename to SIM_RUN_OBJS.
325 (SIM_EXTRA_CFLAGS): Don't use @sim_gen@.
326 * interp.c: Remove non-common bits.
327 * mn10300_sim.h: Likewise.
328
e158f0a0
AC
3292003-08-28 Andrew Cagney <cagney@redhat.com>
330
331 * dv-mn103ser.c (do_polling_event): Change type of "serial_reg" to
332 "long".
333 (read_status_reg): Cast "serial_reg" to "long".
334 * dv-mn103tim.c (do_counter_event): Change type of "timer_nr" to
335 "long".
336 (do_counter6_event, write_mode_reg, write_tm6md): Ditto.
337
6b4a8935
AC
3382003-02-27 Andrew Cagney <cagney@redhat.com>
339
340 * interp.c (sim_open, sim_create_inferior, sim_open)
341 (sim_create_inferior): Rename _bfd to bfd.
342
dbd7cd63
AC
3432003-02-26 Andrew Cagney <cagney@redhat.com>
344
345 * am33.igen: Call sim_engine_abort instead of abort.
346
bb6317d3
DC
3472003-02-26 David Carlton <carlton@math.stanford.edu>
348
349 * dv-mn103tim.c (read_special_timer6_reg): Add break after
350 empty default: label.
351 (write_special_timer6_reg): Ditto.
352 Update copyright.
353
6c0a25e9
AC
3542002-11-28 Andrew Cagney <cagney@redhat.com>
355
356 * sim-main.h: Only include "idecode.h" once.
357 * Makefile.in (SIM_EXTRA_DEPS): Define.
358
c8cca39f
AC
3592002-06-16 Andrew Cagney <ac131313@redhat.com>
360
361 * configure: Regenerated to track ../common/aclocal.m4 changes.
362
3c25f8c7
AC
3632002-06-09 Andrew Cagney <cagney@redhat.com>
364
365 * Makefile.in (INCLUDE): Update path to callback.h.
366 * mn10300_sim.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
367 * tconfig.in: Ditto.
368
ff88f59d
JB
3692001-05-06 Jim Blandy <jimb@redhat.com>
370
371 * mn10300.igen: Doc fixes.
372
cc274e7c
AO
3732001-04-26 Alexandre Oliva <aoliva@redhat.com>
374
375 * Makefile.in (idecode.o, op_utils.o, semantics.o, simops.o):
376 Depend on targ-vals.h.
377
d4424ada
C
3782001-04-15 J.T. Conklin <jtc@redback.com>
379
380 * Makefile.in (simops.o): Add simops.h to dependency list.
381
5425ca99
AO
382Wed Aug 9 02:24:53 2000 Graham Stott <grahams@cygnus.co.uk>
383
384 * am33.igen: Warning clean-up.
385 (movm): Initialize PC and mask.
386 (mov, movbu, movhu): Set srcreg2 from RI0.
387 (bsch): Initialize c.
388 (sat16_cmp): Actually do the comparison.
389 (mov_llt): Do not overwrite dstreg with uninitialized variable.
390
eb2d80b4
AC
391Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
392
393 * configure: Regenerated to track ../common/aclocal.m4 changes.
394
e33c0364
AO
3952000-05-22 Alexandre Oliva <aoliva@cygnus.com>
396
397 * am33.igen: Fix leading comments of SP-relative offset insns that
398 referred to other registers. Make their offsets unsigned.
399
24a39d88
AO
4002000-05-18 Alexandre Oliva <aoliva@cygnus.com>
401
402 * mn10300_sim.h (genericAdd, genericSub, genericCmp, genericOr,
403 genericXor, genericBtst): Use `unsigned32'.
404 * op_utils.c: Likewise.
405 * mn10300.igen, am33.igen: Use `unsigned32', `signed32',
406 `unsigned64' or `signed64' where type width is relevant.
407
bfa8561f
AO
4082000-04-25 Alexandre Oliva <aoliva@cygnus.com>
409
410 * am33.igen (inc4 Rn): Use genericAdd so as to modify flags.
411
d8e7020f
AO
4122000-04-09 Alexandre Oliva <aoliva@cygnus.com>
413
414 * am33.igen: Make SP-relative offsets unsigned. Add `*am33' for
415 some instructions that were missing it.
416
a9e3a739
FCE
4172000-03-03 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
418
419 * Makefile.in (IGEN_INSN): Added am33.igen.
420
d4f3574e
SS
421Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
422
423 * configure: Regenerated to track ../common/aclocal.m4 changes.
424
adf40b2e
JM
425Tue Jul 13 13:26:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
426
427 * interp.c: Clarify error message reporting an unknown board.
428
cd0fc7c3
SS
4291999-05-08 Felix Lee <flee@cygnus.com>
430
431 * configure: Regenerated to track ../common/aclocal.m4 changes.
432
7a292a7a
SS
4331999-04-16 Frank Ch. Eigler <fche@cygnus.com>
434
435 * interp.c (program_interrupt): Detect undesired recursion using
436 static flag. Set NMIRC register's SYSEF flag during
437 --board=stdeval1 mode.
438 * dv-mn103-int.c (write_icr): Add backdoor address to allow CPU to
439 set SYSEF flag.
440
4411999-04-02 Keith Seitz <keiths@cygnus.com>
442
443 * Makefile.in (SIM_EXTRA_CFLAGS): Define a POLL_QUIT_INTERVAL
444 for use in the simulator so that the poll_quit callback is
445 not called too often.
446
447Tue Mar 9 21:26:41 1999 Andrew Cagney <cagney@b1.cygnus.com>
448
449 * dv-mn103int.c (mn103int_ioctl): Return something.
450 * dv-mn103tim.c (write_tm6md): GCC suggested parentheses around &&
451 within ||.
452
453Tue Feb 16 23:57:17 1999 Jeffrey A Law (law@cygnus.com)
454
455 * mn10300.igen (retf): Fix return address computation and store
456 the new pc value into nia.
457
c906108c
SS
4581998-12-29 Frank Ch. Eigler <fche@cygnus.com>
459
460 * Makefile.in (WITH_COMMON_OBJS): Build also dv-sockser.o.
461 * interp.c (sim_open): Add stub mn103002 cache control memory regions.
462 Set OPERATING_ENVIRONMENT on "stdeval1" board.
463 (mn10300_core_signal): New function to intercept memory errors.
464 (program_interrupt): New function to dispatch to exception vector
465 (mn10300_exception_*): New functions to snapshot pre/post exception
466 state.
467 * sim-main.h (SIM_CORE_SIGNAL): Define hook - call mn10300_core_signal.
468 (SIM_ENGINE_HALT_HOOK): Do nothing.
469 (SIM_CPU_EXCEPTION*): Define hooks to call mn10300_cpu_exception*().
470 (_sim_cpu): Add exc_* fields to store register value snapshots.
471 * dv-mn103ser.c (*): Support dv-sockser backend for UART I/O.
472 Various endianness and warning fixes.
473 * mn10300.igen (illegal): Call program_interrupt on error.
474 (break): Call program_interrupt on breakpoint
475
476 Several changes from <janczyn@cygnus.com> and <cagney@cygnus.com>
477 merged in:
478 * dv-mn103int.c (mn103int_ioctl): New function for NMI
479 generation. (mn103int_finish): Install it as ioctl handler.
480 * dv-mn103tim.c: Support timer 6 specially. Endianness fixes.
481
c2d11a7d
JM
482Wed Oct 14 12:11:05 1998 Jeffrey A Law (law@cygnus.com)
483
484 * am33.igen: Allow autoincrement stores using the same register
485 for source and destination operands.
486
487Mon Aug 31 10:19:55 1998 Jeffrey A Law (law@cygnus.com)
488
489 * am33.igen: Reverse HI/LO outputs of 4 operand "mul" and "mulu".
490
c906108c
SS
491Fri Aug 28 14:40:49 1998 Joyce Janczyn <janczyn@cygnus.com>
492
493 * interp.c (sim_open): Check for invalid --board option, fix
494 indentation, allocate memory for mem control and DMA regs.
495
496Wed Aug 26 09:29:38 1998 Joyce Janczyn <janczyn@cygnus.com>
497
498 * mn10300.igen (div,divu): Fix divide instructions so divide by 0
499 behaves like the hardware.
500
501Mon Aug 24 11:50:09 1998 Joyce Janczyn <janczyn@cygnus.com>
502
503 * sim-main.h (SIM_HANDLES_LMA): Define SIM_HANDLES_LMA.
504
c2d11a7d
JM
505Wed Aug 12 12:36:07 1998 Jeffrey A Law (law@cygnus.com)
506
507 * am33.igen: Handle case where first DSP operation modifies a
508 register used in the second DSP operation correctly.
509
510Tue Jul 28 10:10:25 1998 Jeffrey A Law (law@cygnus.com)
511
512 * am33.igen: Detect cases where two operands must not match for
513 DSP instructions too.
514
515Mon Jul 27 12:04:17 1998 Jeffrey A Law (law@cygnus.com)
516
517 * am33.igen: Detect cases where two operands must not match in
518 non-DSP instructions.
519
c906108c
SS
520Fri Jul 24 18:15:21 1998 Joyce Janczyn <janczyn@cygnus.com>
521
522 * op_utils.c (do_syscall): Rewrite to use common/syscall.c.
523 (syscall_read_mem, syscall_write_mem): New functions for syscall
524 callbacks.
525 * mn10300_sim.h: Add prototypes for syscall_read_mem and
526 syscall_write_mem.
527 * mn10300.igen: Change C++ style comments to C style comments.
528 Check for divide by zero in div and divu ops.
529
c2d11a7d
JM
530Fri Jul 24 12:49:28 1998 Jeffrey A Law (law@cygnus.com)
531
532 * am33.igen (translate_xreg): New function. Use it as needed.
533
534Thu Jul 23 10:05:28 1998 Jeffrey A Law (law@cygnus.com)
535
536 * am33.igen: Add some missing instructions.
537
538 * am33.igen: Autoincrement loads/store fixes.
539
540Tue Jul 21 09:48:14 1998 Jeffrey A Law (law@cygnus.com)
541
542 * am33.igen: Add mov_lCC DSP instructions.
543
544 * am33.igen: Add most am33 DSP instructions.
545
c906108c
SS
546Thu Jul 9 10:06:55 1998 Jeffrey A Law (law@cygnus.com)
547
548 * mn10300.igen: Fix Z bit for addc and subc instructions.
549 Minor fixes in multiply/divide patterns.
550
c2d11a7d
JM
551 * am33.igen: Add missing mul[u] imm32,Rn. Fix condition code
552 handling for many instructions. Fix sign extension for some
553 24bit immediates.
554
555 * am33.igen: Fix Z bit for remaining addc/subc instructions.
556 Do not sign extend immediate for mov imm,XRn.
557 More random mul, mac & div fixes.
558 Remove some unused variables.
559 Sign extend 24bit displacement in memory addresses.
560
561 * am33.igen: Fix Z bit for addc Rm,Rn and subc Rm,Rn. Various
562 fixes to 2 register multiply, divide and mac instructions. Set
563 Z,N correctly for sat16. Sign extend 24 bit immediate for add,
564 and sub instructions.
565
566 * am33.igen: Add remaining non-DSP instructions.
567
568Wed Jul 8 16:29:12 1998 Jeffrey A Law (law@cygnus.com)
569
570 * am33.igen (translate_rreg): New function. Use it as appropriate.
571
572 * am33.igen: More am33 instructions. Fix "div".
573
574Mon Jul 6 15:39:22 1998 Jeffrey A Law (law@cygnus.com)
575
576 * mn10300.igen: Add am33 support.
577
578 * Makefile.in: Use multi-sim to support both a mn10300 and am33
579 simulator.
580
581 * am33.igen: Add many more am33 instructions.
c906108c
SS
582
583Wed Jul 1 17:07:09 1998 Jeffrey A Law (law@cygnus.com)
584
585 * mn10300_sim.h (FETCH24): Define.
586
c2d11a7d
JM
587 * mn10300_sim.h: Add defines for some registers found on the AM33.
588 * am33.igen: New file with some am33 support.
c906108c
SS
589
590Tue Jun 30 11:23:20 1998 Jeffrey A Law (law@cygnus.com)
591
592 * mn10300_sim.h: Include bfd.h
593 (struct state): Add more room for processor specific registers.
c2d11a7d 594 (REG_E0): Define.
c906108c
SS
595
596Thu Jun 25 10:12:03 1998 Joyce Janczyn <janczyn@cygnus.com>
597
598 * dv-mn103tim.c: Include sim-assert.h
599 * dv-mn103ser.c (do_polling_event): Check for incoming data on
600 serial line and schedule next polling event.
601 (read_status_reg): schedule events to check for incoming data on
602 serial line and issue interrupt if necessary.
603
604Fri Jun 19 16:47:27 1998 Joyce Janczyn <janczyn@cygnus.com>
605
606 * interp.c (sim_open): hook up serial 1 and 2 ports properly (typo).
607
608Fri Jun 19 11:59:26 1998 Joyce Janczyn <janczyn@cygnus.com>
609
610 * interp.c (board): Rename am32 to stdeval1 as this is the name
611 consistently used to refer to the mn1030002 board.
612
613Thu June 18 14:37:14 1998 Joyce Janczyn <janczyn@cygnus.com>
614 * interp.c (sim_open): Fix typo in address of EXTMD register
615 (0x34000280, not 0x3400280).
616
617Wed Jun 17 18:00:18 1998 Jeffrey A Law (law@cygnus.com)
618
619 * simops.c (syscall): Handle change in opcode # for syscall.
620 * mn10300.igen (syscall): Likewise.
621
622Tue June 16 09:36:21 1998 Joyce Janczyn <janczyn@cygnus.com>
623 * dv-mn103int.c (mn103int_finish): Regular interrupts (not NMI or
624 reset) are not enabled on reset.
625
626Sun June 14 17:04:00 1998 Joyce Janczyn <janczyn@cygnus.com>
627 * dv-mn103iop.c (write_*_reg): Check for attempt to write r/o
628 register bits.
629 * dv-mn103ser.c: Fill in methods for reading and writing to serial
630 device registers.
631 * interp.c (sim_open): Make the serial device a polling device.
632
633Fri June 12 16:24:00 1998 Joyce Janczyn <janczyn@cygnus.com>
634 * dv-mn103iop.c: New file for handling am32 io ports.
635 * configure.in: Add mn103iop to hw_device list.
636 * configure: Re-generate.
637 * interp.c (sim_open): Create io port device.
638
639Wed June 10 14:34:00 1998 Joyce Janczyn <janczyn@cygnus.com>
640 * dv-mn103int.c (external_group): Use enumerated types to access
641 correct group addresses.
642 * dv-mn103tim.c (do_counter_event): Underflow of cascaded timer
643 triggers an interrupt on the higher-numbered timer's port.
644
645Mon June 8 13:30:00 1998 Joyce Janczyn <janczyn@cygnus.com>
646 * interp.c: (mn10300_option_handler): New function parses arguments
647 using sim-options.
648 * (board): Add --board option for specifying am32.
649 * (sim_open): Create new timer and serial devices and control
650 configuration of other am32 devices via board option.
651 * dv-mn103tim.c, dv-mn103ser.c: New files for timers and serial devices.
652 * dv-mn103cpu.c: Fix typos in opening comments.
653 * dv-mn103int.c: Adjust interrupt controller settings for am32 instead of am30.
654 * configure.in: Add mn103tim and mn103ser to hw_device list.
655 * configure: Re-generate.
656
657Mon May 25 20:50:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
658
659 * dv-mn103int.c, dv-mn103cpu.c: Rename *_callback to *_method.
660
661 * dv-mn103cpu.c, dv-mn103int.c: Include hw-main.h and
662 sim-main.h. Declare a struct hw_descriptor instead of struct
663 hw_device_descriptor.
664
665Mon May 25 17:33:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
666
667 * dv-mn103cpu.c (struct mn103cpu): Change type of pending_handler
668 to struct hw_event.
669
670Fri May 22 12:17:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
671
672 * configure.in (SIM_AC_OPTION_HARDWARE): Add argument "yes".
673
674Wed May 6 13:29:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
675
676 * interp.c (sim_open): Create a polling PAL device.
677
678Fri May 1 16:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
679
680 * dv-mn103int.c (mn103int_port_event):
681 (mn103int_port_event):
682 (mn103int_io_read_buffer):
683 (mn103int_io_write_buffer):
684
685 * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Drop CPU/CIA args.
686 (mn103cpu_port_event): Ditto.
687 (mn103cpu_io_read_buffer): Ditto.
688 (mn103cpu_io_write_buffer): Ditto.
689
690Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
691
692 * configure: Regenerated to track ../common/aclocal.m4 changes.
693
694Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
695
696 * configure: Regenerated to track ../common/aclocal.m4 changes.
697 * config.in: Ditto.
698
699Sun Apr 26 15:19:55 1998 Tom Tromey <tromey@cygnus.com>
700
701 * acconfig.h: New file.
702 * configure.in: Reverted change of Apr 24; use sinclude again.
703
704Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
705
706 * configure: Regenerated to track ../common/aclocal.m4 changes.
707 * config.in: Ditto.
708
709Fri Apr 24 11:19:07 1998 Tom Tromey <tromey@cygnus.com>
710
711 * configure.in: Don't call sinclude.
712
713Tue Apr 14 10:03:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
714
715 * mn10300_sim.h: Declare all functions in op_utils.c using
716 INLINE_SIM_MAIN.
717 * op_utils.c: Ditto.
718 * sim-main.c: New file. Include op_utils.c.
719
720 * mn10300.igen (mov, cmp): Use new igen operators `!' and `=' to
721 differentiate between MOV/CMP immediate/register instructions.
722
723 * configure.in (SIM_AC_OPTION_INLINE): Add and enable.
724 * configure: Regenerate.
725
726Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
727
728 * configure: Regenerated to track ../common/aclocal.m4 changes.
729
730Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
731
732 * interp.c (hw): Delete variable, moved to SIM_DESC.
733 (sim_open): Delete calls to hw_tree_create, hw_tree_finish.
734 Handled by sim-module.
735 (sim_open): Do not anotate tree with trace properties, handled by
736 sim-hw.c
737 (sim_open): Call sim_hw_parse instead of hw_tree_parse.
738
739 * configure: Regenerated to track ../common/aclocal.m4 changes.
740
741Thu Mar 26 20:46:18 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
742
743 * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Save the entire PC
744 on the stack when delivering interrupts (not just the lower
745 half)...
746 * mn10300.igen (mov (Di,Am),Dn): Fix decode. Registers were
747 specified in the wrong order.
748
749Fri Mar 27 00:56:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
750
751 * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Stop loss of
752 succeeding interrupts, clear pending_handler when the handler
753 isn't re-scheduled.
754
755Thu Mar 26 10:11:01 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
756
757 * Makefile.in (tmp-igen): Prefix all usage of move-if-change
758 script with $(SHELL) to make NT native builds happy.
759 * configure: Regenerate because of change to ../common/aclocal.m4.
760
761Thu Mar 26 11:22:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
762
763 * configure.in: Make --enable-sim-common the default.
764 * configure: Re-generate.
765
766 * sim-main.h (CIA_GET, CIA_SET): Save/restore current instruction
767 address into Sate.regs[REG_PC] instead of common struct.
768
769Wed Mar 25 17:42:00 1998 Joyce Janczyn <janczyn@cygnus.com>
770
771 * mn10300.igen (cmp imm8,An): Do not sign extend imm8 value.
772
773Wed Mar 25 12:08:00 1998 Joyce Janczyn <janczyn@cygnus.com>
774
775 * simops.c (OP_F0FD): Initialise variable 'sp'.
776
777Thu Mar 26 00:21:32 1998 Andrew Cagney <cagney@b1.cygnus.com>
778
779 * dv-mn103int.c (decode_group): A group register every 4 bytes not
780 8.
781 (write_icr): Rewrite equation updating request field.
782 (read_iagr): Fix check that interrupt is still pending.
783
784Wed Mar 25 16:14:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
785
786 * interp.c (sim_open): Tidy up device creation.
787
788 * dv-mn103int.c (mn103int_port_event): Drive NMI with non-zero
789 value.
790 (mn103int_io_read_buffer): Convert absolute address to register
791 block offsets.
792 (read_icr, write_icr): Convert block offset into group offset.
793
794Wed Mar 25 15:08:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
795
796 * interp.c (sim_open): Create second 1mb memory region at
797 0x40000000.
798 (sim_open): Create a device tree.
799 (sim-hw.h): Include.
800 (do_interrupt): Delete, needs to use dv-mn103cpu.c
801
802 * dv-mn103int.c, dv-mn103cpu.c: New files.
803
804Wed Mar 25 08:47:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
805
806 * mn10300_sim.h (EXTRACT_PSW_LM, INSERT_PSW_LM, PSW_IE, PSW_LM):
807 Define.
808 (SP): Define.
809
810Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
811
812 * configure: Regenerated to track ../common/aclocal.m4 changes.
813
814Wed Mar 25 10:24:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
815
816 * interp.c (sim-options.h): Include.
817 (sim_kind, myname): Declare when not using common framework.
818
819 * mn10300_sim.h (do_syscall, generic*): Provide prototypes for
820 functions found in op_utils.c
821
822 * mn10300.igen (add): Discard unused variables.
823
824 * configure, config.in: Re-generate with autoconf 2.12.1.
825
826Tue Mar 24 15:27:00 1998 Joyce Janczyn <janczyn@cygnus.com>
827
828 Add support for --enable-sim-common option.
829 * Makefile.in (WITHOUT_COMMON_OBJS): Files included if
830 ! --enable-sim-common
831 (WITH_COMMON_OBJS): Files included if --enable-sim-common.
832 (MN10300_OBJS,MN10300_INTERP_DEP): New variables.
833 (SIM_OBJS): Rewrite.
834 ({WITHOUT,WITH}_COMMON_RUN_OBJS,SIM_RUN_OBJS): New variables.
835 (SIM_EXTRA_CFLAGS): New variable.
836 (clean-extra): Clean up igen files.
837 (../igen/igen,clean-igen,tmp-igen): New rules.
838 * configure.in: Add support for common framework via
839 --enable-sim-common.
840 * configure: Regenerate.
841 * interp.c: #include sim-main if WITH_COMMON, not mn10300_sim.h.
842 (hash,dispatch,sim_size): Don't compile if ! WITH_COMMON.
843 (init_system,sim_write,compare_simops): Likewise.
844 (sim_set_profile,sim_set_profile_size): Likewise.
845 (sim_stop,sim_resume,sim_trace,sim_info): Likewise.
846 (sim_set_callbacks,sim_stop_reason,sim_read,sim_load): Likewise.
847 (enum interrupt_type): New enum.
848 (interrupt_names): New global.
849 (do_interrupt): New function.
850 (sim_open): Define differently if WITH_COMMON.
851 (sim_close,sim_create_inferior,sim_do_command): Likewise.
852 * mn10300_sim.h ({load,store}_{byte,half,word}): Define versions
853 for WITH_COMMON.
854 * mn10300.igen: New file.
855 * mn10300.dc: New file.
856 * op_utils.c: New file.
857 * sim-main.h: New file.
858
859Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
860
861 * configure: Regenerated to track ../common/aclocal.m4 changes.
862
863Fri Feb 27 18:36:04 1998 Jeffrey A Law (law@cygnus.com)
864
865 * simops.c (inc): Fix typo.
866
867Wed Feb 25 01:59:29 1998 Jeffrey A Law (law@cygnus.com)
868
869 * simops.c (signed multiply instructions): Cast input operands to
870 signed32 before casting them to signed64 so that the sign bit
871 is propagated properly.
872
873Mon Feb 23 20:23:19 1998 Mark Alexander <marka@cygnus.com>
874
875 * Makefile.in: Last change was bad. Define NL_TARGET
876 so that targ-vals.h will be used instead of syscall.h.
877 * simops.c: Use targ-vals.h instead of syscall.h.
878 (OP_F020): Disable unsupported system calls.
879
880Mon Feb 23 09:44:38 1998 Mark Alexander <marka@cygnus.com>
881
882 * Makefile.in: Get header files from libgloss/mn10300/sys.
883
884Sun Feb 22 16:02:24 1998 Jeffrey A Law (law@cygnus.com)
885
886 * simops.c: Include sim-types.h.
887
888Wed Feb 18 13:07:08 1998 Jeffrey A Law (law@cygnus.com)
889
890 * simops.c (multiply instructions): Cast input operands to a
891 signed64/unsigned64 type as appropriate.
892
893Tue Feb 17 12:47:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
894
895 * interp.c (sim_store_register, sim_fetch_register): Pass in
896 length parameter. Return -1.
897
898Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
899
900 * configure: Regenerated to track ../common/aclocal.m4 changes.
901
902Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
903
904 * configure: Regenerated to track ../common/aclocal.m4 changes.
905
906Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
907
908 * configure: Regenerated to track ../common/aclocal.m4 changes.
909
910Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
911
912 * configure: Regenerated to track ../common/aclocal.m4 changes.
913 * config.in: Ditto.
914
915Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
916
917 * configure: Regenerated to track ../common/aclocal.m4 changes.
918
919Tue Nov 11 10:38:52 1997 Jeffrey A Law (law@cygnus.com)
920
921 * simops.c (call:16 call:32): Stack adjustment is determined solely
922 by the imm8 field.
923
924Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
925
926 * interp.c (sim_load): Pass lma_p and sim_write args to
927 sim_load_file.
928
929Tue Oct 21 10:12:03 1997 Jeffrey A Law (law@cygnus.com)
930
931 * simops.c: Correctly handle register restores for "ret" and "retf"
932 instructions.
933
934Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
935
936 * configure: Regenerated to track ../common/aclocal.m4 changes.
937
938Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
939
940 * configure: Regenerated to track ../common/aclocal.m4 changes.
941
942Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
943
944 * configure: Regenerated to track ../common/aclocal.m4 changes.
945
946Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
947
948 * configure: Regenerated to track ../common/aclocal.m4 changes.
949
950Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
951
952 * configure: Regenerated to track ../common/aclocal.m4 changes.
953
954Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
955
956 * configure: Regenerated to track ../common/aclocal.m4 changes.
957
958Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
959
960 * configure: Regenerated to track ../common/aclocal.m4 changes.
961
962Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
963
964 * configure: Regenerated to track ../common/aclocal.m4 changes.
965 * config.in: Ditto.
966
967Tue Aug 26 10:41:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
968
969 * interp.c (sim_kill): Delete.
970 (sim_create_inferior): Add ABFD argument.
971 (sim_load): Move setting of PC from here.
972 (sim_create_inferior): To here.
973
974Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
975
976 * configure: Regenerated to track ../common/aclocal.m4 changes.
977 * config.in: Ditto.
978
979Mon Aug 25 16:14:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
980
981 * interp.c (sim_open): Add ABFD argument.
982
983Tue Jun 24 13:46:20 1997 Jeffrey A Law (law@cygnus.com)
984
985 * interp.c (sim_resume): Clear State.exited.
986 (sim_stop_reason): If State.exited is nonzero, then indicate that
987 the simulator exited instead of stopped.
988 * mn10300_sim.h (struct _state): Add exited field.
989 * simops.c (syscall): Set State.exited for SYS_exit.
990
991Wed Jun 11 22:07:56 1997 Jeffrey A Law (law@cygnus.com)
992
993 * simops.c: Fix thinko in last change.
994
995Tue Jun 10 12:31:32 1997 Jeffrey A Law (law@cygnus.com)
996
997 * simops.c: "call" stores the callee saved registers into the
998 stack! Update the stack pointer properly when done with
999 register saves.
1000
1001 * simops.c: Fix return address computation for "call" instructions.
1002
1003Thu May 22 01:43:11 1997 Jeffrey A Law (law@cygnus.com)
1004
1005 * interp.c (sim_open): Fix typo.
1006
1007Wed May 21 23:27:58 1997 Jeffrey A Law (law@cygnus.com)
1008
1009 * interp.c (sim_resume): Add missing case in big switch
1010 statement (for extb instruction).
1011
1012Tue May 20 17:51:30 1997 Jeffrey A Law (law@cygnus.com)
1013
1014 * interp.c: Replace all references to load_mem and store_mem
1015 with references to load_byte, load_half, load_3_byte, load_word
1016 and store_byte, store_half, store_3_byte, store_word.
1017 (INLINE): Delete definition.
1018 (load_mem_big): Likewise.
1019 (max_mem): Make it global.
1020 (dispatch): Make this function inline.
1021 (load_mem, store_mem): Delete functions.
1022 * mn10300_sim.h (INLINE): Define.
1023 (RLW): Delete unused definition.
1024 (load_mem, store_mem): Delete declarations.
1025 (load_mem_big): New definition.
1026 (load_byte, load_half, load_3_byte, load_word): New functions.
1027 (store_byte, store_half, store_3_byte, store_word): New functions.
1028 * simops.c: Replace all references to load_mem and store_mem
1029 with references to load_byte, load_half, load_3_byte, load_word
1030 and store_byte, store_half, store_3_byte, store_word.
1031
1032Tue May 20 10:21:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
1033
1034 * interp.c (sim_open): Add callback to arguments.
1035 (sim_set_callbacks): Delete SIM_DESC argument.
1036
1037Mon May 19 13:54:22 1997 Jeffrey A Law (law@cygnus.com)
1038
1039 * interp.c (dispatch): Make this an inline function.
1040
1041 * simops.c (syscall): Use callback->write regardless of
1042 what file descriptor we're writing too.
1043
1044Sun May 18 16:46:31 1997 Jeffrey A Law (law@cygnus.com)
1045
1046 * interp.c (load_mem_big): Remove function. It's now a macro
1047 defined elsewhere.
1048 (compare_simops): New function.
1049 (sim_open): Sort the Simops table before inserting entries
1050 into the hash table.
1051 * mn10300_sim.h: Remove unused #defines.
1052 (load_mem_big): Define.
1053
1054Fri May 16 16:36:17 1997 Jeffrey A Law (law@cygnus.com)
1055
1056 * interp.c (load_mem): If we get a load from an out of range
1057 address, abort.
1058 (store_mem): Likewise for stores.
1059 (max_mem): New variable.
1060
1061Tue May 6 13:24:36 1997 Jeffrey A Law (law@cygnus.com)
1062
1063 * mn10300_sim.h: Fix ordering of bits in the PSW.
1064
1065 * interp.c: Improve hashing routine to avoid long list
1066 traversals for common instructions. Add HASH_STAT support.
1067 Rewrite opcode dispatch code using a big switch instead of
1068 cascaded if/else statements. Avoid useless calls to load_mem.
1069
1070Mon May 5 18:07:48 1997 Jeffrey A Law (law@cygnus.com)
1071
1072 * mn10300_sim.h (struct _state): Add space for mdrq register.
1073 (REG_MDRQ): Define.
1074 * simops.c: Don't abort for trap. Add support for the extended
1075 instructions, "getx", "putx", "mulq", "mulqu", "sat16", "sat24",
1076 and "bsch".
1077
1078Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1079
1080 * configure: Regenerated to track ../common/aclocal.m4 changes.
1081
1082Fri Apr 18 14:04:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
1083
1084 * interp.c (sim_stop): Add stub function.
1085
1086Thu Apr 17 03:26:59 1997 Doug Evans <dje@canuck.cygnus.com>
1087
1088 * Makefile.in (SIM_OBJS): Add sim-load.o.
1089 * interp.c (sim_kind, myname): New static locals.
1090 (sim_open): Set sim_kind, myname. Ignore -E arg.
1091 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
1092 load file into simulator. Set start address from bfd.
1093 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1094
1095Wed Apr 16 19:30:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
1096
1097 * simops.c (OP_F020): SYS_execv, SYS_time, SYS_times, SYS_utime
1098 only include if implemented by host.
1099 (OP_F020): Typecast arg passed to time function;
1100
1101Mon Apr 7 23:57:49 1997 Jeffrey A Law (law@cygnus.com)
1102
1103 * simops.c (syscall): Handle new mn10300 calling conventions.
1104
1105Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1106
1107 * configure: Regenerated to track ../common/aclocal.m4 changes.
1108 * config.in: Ditto.
1109
1110Fri Apr 4 20:02:37 1997 Ian Lance Taylor <ian@cygnus.com>
1111
1112 * Makefile.in: Change mn10300-opc.o to m10300-opc.o, to match
1113 corresponding change in opcodes directory.
1114
1115Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1116
1117 * interp.c (sim_open): New arg `kind'.
1118
1119 * configure: Regenerated to track ../common/aclocal.m4 changes.
1120
1121Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1122
1123 * configure: Regenerated to track ../common/aclocal.m4 changes.
1124
1125Thu Mar 20 11:58:02 1997 Jeffrey A Law (law@cygnus.com)
1126
1127 * simops.c: Fix register extraction for a two "movbu" variants.
1128 Somewhat simplify "sub" instructions.
1129 Correctly sign extend operands for "mul". Put the correct
1130 half of the result in MDR for "mul" and "mulu".
1131 Implement remaining instructions.
1132 Tweak opcode for "syscall".
1133
1134Tue Mar 18 14:21:21 1997 Jeffrey A Law (law@cygnus.com)
1135
1136 * simops.c: Do syscall emulation in "syscall" instruction. Add
1137 dummy "trap" instruction.
1138
1139Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1140
1141 * configure: Regenerated to track ../common/aclocal.m4 changes.
1142
1143Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1144
1145 * configure: Re-generate.
1146
1147Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1148
1149 * configure: Regenerate to track ../common/aclocal.m4 changes.
1150
1151Thu Mar 13 12:54:45 1997 Doug Evans <dje@canuck.cygnus.com>
1152
1153 * interp.c (sim_open): New SIM_DESC result. Argument is now
1154 in argv form.
1155 (other sim_*): New SIM_DESC argument.
1156
1157Wed Mar 12 15:04:00 1997 Jeffrey A Law (law@cygnus.com)
1158
1159 * simops.c: Fix carry bit computation for "add" instructions.
1160
1161 * simops.c: Fix typos in bset insns. Fix arguments to store_mem
1162 for bset imm8,(d8,an) and bclr imm8,(d8,an).
1163
1164Wed Mar 5 15:00:10 1997 Jeffrey A Law (law@cygnus.com)
1165
1166 * simops.c: Fix register references when computing Z and N bits
1167 for lsr imm8,dn.
1168
1169Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1170
1171 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1172 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1173 * configure.in: sinclude ../common/aclocal.m4.
1174 * configure: Regenerated.
1175
1176Fri Jan 24 10:47:25 1997 Jeffrey A Law (law@cygnus.com)
1177
1178 * interp.c (init_system): Allocate 2^19 bytes of space for the
1179 simulator.
1180
1181Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1182
1183 * configure configure.in Makefile.in: Update to new configure
1184 scheme which is more compatible with WinGDB builds.
1185 * configure.in: Improve comment on how to run autoconf.
1186 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1187 * Makefile.in: Use autoconf substitution to install common
1188 makefile fragment.
1189
1190Tue Jan 21 15:03:04 1997 Jeffrey A Law (law@cygnus.com)
1191
1192 * simops.c: Undo last change to "rol" and "ror", original code
1193 was correct!
1194
1195Thu Jan 16 11:28:14 1997 Jeffrey A Law (law@cygnus.com)
1196
1197 * simops.c: Fix "rol" and "ror".
1198
1199Wed Jan 15 06:45:58 1997 Jeffrey A Law (law@cygnus.com)
1200
1201 * simops.c: Fix typo in last change.
1202
1203Mon Jan 13 13:22:35 1997 Jeffrey A Law (law@cygnus.com)
1204
1205 * simops.c: Use REG macros in few places not using them yet.
1206
1207Mon Jan 6 16:21:19 1997 Jeffrey A Law (law@cygnus.com)
1208
1209 * mn10300_sim.h (struct _state): Fix number of registers!
1210
1211Tue Dec 31 16:20:41 1996 Jeffrey A Law (law@cygnus.com)
1212
1213 * mn10300_sim.h (struct _state): Put all registers into a single
1214 array to make gdb implementation easier.
1215 (REG_*): Add definitions for all registers in the state array.
1216 (SEXT32, SEXT40, SEXT44, SEXT60): Remove unused macros.
1217 * simops.c: Related changes.
1218
1219Wed Dec 18 10:10:45 1996 Jeffrey A Law (law@cygnus.com)
1220
1221 * interp.c (sim_resume): Handle 0xff as a single byte insn.
1222
1223 * simops.c: Fix overflow computation for "add" and "inc"
1224 instructions.
1225
1226Mon Dec 16 10:03:52 1996 Jeffrey A Law (law@cygnus.com)
1227
1228 * simops.c: Handle "break" instruction.
1229
1230 * simops.c: Fix restoring the PC for "ret" and "retf" instructions.
1231
1232Wed Dec 11 09:53:10 1996 Jeffrey A Law (law@cygnus.com)
1233
1234 * gencode.c (write_opcodes): Also write out the format of the
1235 opcode.
1236 * mn10300_sim.h (simops): Add "format" field.
1237 * interp.c (sim_resume): Deal with endianness issues here.
1238
1239Tue Dec 10 15:05:37 1996 Jeffrey A Law (law@cygnus.com)
1240
1241 * simops.c (REG0_4): Define.
1242 Use REG0_4 for indexed loads/stores.
1243
1244Sat Dec 7 09:50:28 1996 Jeffrey A Law (law@cygnus.com)
1245
1246 * simops.c (REG0_16): Fix typo.
1247
1248Fri Dec 6 14:13:34 1996 Jeffrey A Law (law@cygnus.com)
1249
1250 * simops.c: Call abort for any instruction that's not currently
1251 simulated.
1252
1253 * simops.c: Define accessor macros to extract register
1254 values from instructions. Use them consistently.
1255
1256 * interp.c: Delete unused global variable "OP".
1257 (sim_resume): Remove unused variable "opcode".
1258 * simops.c: Fix some uninitialized variable problems, add
1259 parens to fix various -Wall warnings.
1260
1261 * gencode.c (write_header): Add "insn" and "extension" arguments
1262 to the OP_* declarations.
1263 (write_template): Similarly for function templates.
1264 * interp.c (insn, extension): Remove global variables. Instead
1265 pass them as arguments to the OP_* functions.
1266 * mn10300_sim.h: Remove decls for "insn" and "extension".
1267 * simops.c (OP_*): Accept "insn" and "extension" as arguments
1268 instead of using globals.
1269
1270Thu Dec 5 22:26:31 1996 Jeffrey A Law (law@cygnus.com)
1271
1272 * simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)"
1273
1274 * simops.c: Fix thinkos in last change to "inc dn".
1275
1276Wed Dec 4 10:57:53 1996 Jeffrey A Law (law@cygnus.com)
1277
1278 * simops.c: "add imm,sp" does not effect the condition codes.
1279 "inc dn" does effect the condition codes.
1280
1281Tue Dec 3 17:37:45 1996 Jeffrey A Law (law@cygnus.com)
1282
1283 * simops.c: Treat both operands as signed values for
1284 "div" instruction.
1285
1286 * simops.c: Fix simulation of division instructions.
1287 Fix typos/thinkos in several "cmp" and "sub" instructions.
1288
1289Mon Dec 2 12:31:40 1996 Jeffrey A Law (law@cygnus.com)
1290
1291 * simops.c: Fix carry bit handling in "sub" and "cmp"
1292 instructions.
1293
1294 * simops.c: Fix "mov imm8,an" and "mov imm16,dn".
1295
1296Sun Dec 1 16:05:42 1996 Jeffrey A Law (law@cygnus.com)
1297
1298 * simops.c: Fix overflow computation for many instructions.
1299
1300 * simops.c: Fix "mov dm, an", "movbu dm, (an)", and "movhu dm, (an)".
1301
1302 * simops.c: Fix "mov am, dn".
1303
1304 * simops.c: Fix more bugs in "add imm,an" and
1305 "add imm,dn".
1306
1307Wed Nov 27 09:20:42 1996 Jeffrey A Law (law@cygnus.com)
1308
1309 * simops.c: Fix bugs in "movm" and "add imm,an".
1310
1311 * simops.c: Don't lose the upper 24 bits of the return
1312 pointer in "call" and "calls" instructions. Rough cut
1313 at emulated system calls.
1314
1315 * simops.c: Implement the remaining 5, 6 and 7 byte instructions.
1316
1317 * simops.c: Implement remaining 4 byte instructions.
1318
1319 * simops.c: Implement remaining 3 byte instructions.
1320
1321 * simops.c: Implement remaining 2 byte instructions. Call
1322 abort for instructions we're not implementing now.
1323
1324Tue Nov 26 15:43:41 1996 Jeffrey A Law (law@cygnus.com)
1325
1326 * simops.c: Implement lots of random instructions.
1327
1328 * simops.c: Implement "movm" and "bCC" insns.
1329
1330 * mn10300_sim.h (_state): Add another register (MDR).
1331 (REG_MDR): Define.
1332 * simops.c: Implement "cmp", "calls", "rets", "jmp" and
1333 a few additional random insns.
1334
1335 * mn10300_sim.h (PSW_*): Define for CC status tracking.
1336 (REG_D0, REG_A0, REG_SP): Define.
1337 * simops.c: Implement "add", "addc" and a few other random
1338 instructions.
1339
1340 * gencode.c, interp.c: Snapshot current simulator code.
1341
1342Mon Nov 25 12:46:38 1996 Jeffrey A Law (law@cygnus.com)
1343
1344 * Makefile.in, config.in, configure, configure.in: New files.
1345 * gencode.c, interp.c, mn10300_sim.h, simops.c: New files.
1346