Fix tcl error
[deliverable/binutils-gdb.git] / sim / mips / ChangeLog
CommitLineData
306f4178
MF
12015-06-12 Mike Frysinger <vapier@gentoo.org>
2
3 * configure.ac: Change configure.in to configure.ac.
4 * configure: Regenerate.
5
a3487082
MF
62015-06-12 Mike Frysinger <vapier@gentoo.org>
7
8 * configure: Regenerate.
9
29bc024d
MF
102015-06-12 Mike Frysinger <vapier@gentoo.org>
11
12 * interp.c [TRACE]: Delete.
13 (TRACE): Change to WITH_TRACE_ANY_P.
14 [!WITH_TRACE_ANY_P] (open_trace): Define.
15 (mips_option_handler, open_trace, sim_close, dotrace):
16 Change defined(TRACE) to WITH_TRACE_ANY_P.
17 (sim_open): Delete TRACE ifdef check.
18 * sim-main.c (load_memory): Delete TRACE ifdef check.
19 (store_memory): Likewise.
20 * sim-main.h [WITH_TRACE_ANY_P] (dotrace, tracefh): Protect decls.
21 [!WITH_TRACE_ANY_P] (dotrace): Define.
22
3ebe2863
MF
232015-04-18 Mike Frysinger <vapier@gentoo.org>
24
25 * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESTART_HOOK): Delete
26 comments.
27
20bca71d
MF
282015-04-18 Mike Frysinger <vapier@gentoo.org>
29
30 * sim-main.h (SIM_CPU): Delete.
31
7e83aa92
MF
322015-04-18 Mike Frysinger <vapier@gentoo.org>
33
34 * sim-main.h (sim_cia): Delete.
35
034685f9
MF
362015-04-17 Mike Frysinger <vapier@gentoo.org>
37
38 * dv-tx3904cpu.c (deliver_tx3904cpu_interrupt): Change CIA_GET to
39 PU_PC_GET.
40 * interp.c (interrupt_event): Change CIA_GET to CPU_PC_GET.
41 (sim_create_inferior): Change CIA_SET to CPU_PC_SET.
42 * m16run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
43 CIA_SET to CPU_PC_SET.
44 * sim-main.h (CIA_GET, CIA_SET): Delete.
45
78e9aa70
MF
462015-04-15 Mike Frysinger <vapier@gentoo.org>
47
48 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
49 * sim-main.h (STATE_CPU): Delete.
50
bf12d44e
MF
512015-04-13 Mike Frysinger <vapier@gentoo.org>
52
53 * configure: Regenerate.
54
7bebb329
MF
552015-04-13 Mike Frysinger <vapier@gentoo.org>
56
57 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
58 * interp.c (mips_pc_get, mips_pc_set): New functions.
59 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
60 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
61 (sim_pc_get): Delete.
62 * sim-main.h (SIM_CPU): Define.
63 (struct sim_state): Change cpu to an array of pointers.
64 (STATE_CPU): Drop &.
65
8ac57fbd
MF
662015-04-13 Mike Frysinger <vapier@gentoo.org>
67
68 * interp.c (mips_option_handler, open_trace, sim_close,
69 sim_write, sim_read, sim_store_register, sim_fetch_register,
70 sim_create_inferior, pr_addr, pr_uword64): Convert old style
71 prototypes.
72 (sim_open): Convert old style prototype. Change casts with
73 sim_write to unsigned char *.
74 (fetch_str): Change null to unsigned char, and change cast to
75 unsigned char *.
76 (sim_monitor): Change c & ch to unsigned char. Change cast to
77 unsigned char *.
78
e787f858
MF
792015-04-12 Mike Frysinger <vapier@gentoo.org>
80
81 * Makefile.in (SIM_OBJS): Move interp.o to the start of the list.
82
122bbfb5
MF
832015-04-06 Mike Frysinger <vapier@gentoo.org>
84
85 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
86
0fe84f3f
MF
872015-04-01 Mike Frysinger <vapier@gentoo.org>
88
89 * tconfig.h (SIM_HAVE_PROFILE): Delete.
90
aadc9410
MF
912015-03-31 Mike Frysinger <vapier@gentoo.org>
92
93 * config.in, configure: Regenerate.
94
05f53ed6
MF
952015-03-24 Mike Frysinger <vapier@gentoo.org>
96
97 * interp.c (sim_pc_get): New function.
98
c0931f26
MF
992015-03-24 Mike Frysinger <vapier@gentoo.org>
100
101 * sim-main.h (SIM_HAVE_BIENDIAN): Delete.
102 * tconfig.h (SIM_HAVE_BIENDIAN): Delete.
103
30452bbe
MF
1042015-03-24 Mike Frysinger <vapier@gentoo.org>
105
106 * configure: Regenerate.
107
64dd13df
MF
1082015-03-23 Mike Frysinger <vapier@gentoo.org>
109
110 * configure: Regenerate.
111
49cd1634
MF
1122015-03-23 Mike Frysinger <vapier@gentoo.org>
113
114 * configure: Regenerate.
115 * configure.ac (mips_extra_objs): Delete.
116 * Makefile.in (MIPS_EXTRA_OBJS): Delete.
117 (SIM_OBJS): Delete MIPS_EXTRA_OBJS.
118
3649cb06
MF
1192015-03-23 Mike Frysinger <vapier@gentoo.org>
120
121 * configure: Regenerate.
122 * configure.ac: Delete sim_hw checks for dv-sockser.
123
ae7d0cac
MF
1242015-03-16 Mike Frysinger <vapier@gentoo.org>
125
126 * config.in, configure: Regenerate.
127 * tconfig.in: Rename file ...
128 * tconfig.h: ... here.
129
8406bb59
MF
1302015-03-15 Mike Frysinger <vapier@gentoo.org>
131
132 * tconfig.in: Delete includes.
133 [HAVE_DV_SOCKSER]: Delete.
134
465fb143
MF
1352015-03-14 Mike Frysinger <vapier@gentoo.org>
136
137 * Makefile.in (SIM_RUN_OBJS): Delete.
138
5cddc23a
MF
1392015-03-14 Mike Frysinger <vapier@gentoo.org>
140
141 * configure.ac (AC_CHECK_HEADERS): Delete.
142 * aclocal.m4, configure: Regenerate.
143
2974be62
AM
1442014-08-19 Alan Modra <amodra@gmail.com>
145
146 * configure: Regenerate.
147
faa743bb
RM
1482014-08-15 Roland McGrath <mcgrathr@google.com>
149
150 * configure: Regenerate.
151 * config.in: Regenerate.
152
1a8a700e
MF
1532014-03-04 Mike Frysinger <vapier@gentoo.org>
154
155 * configure: Regenerate.
156
bf3d9781
AM
1572013-09-23 Alan Modra <amodra@gmail.com>
158
159 * configure: Regenerate.
160
31e6ad7d
MF
1612013-06-03 Mike Frysinger <vapier@gentoo.org>
162
163 * aclocal.m4, configure: Regenerate.
164
d3685d60
TT
1652013-05-10 Freddie Chopin <freddie_chopin@op.pl>
166
167 * configure: Rebuild.
168
1517bd27
MF
1692013-03-26 Mike Frysinger <vapier@gentoo.org>
170
171 * configure: Regenerate.
172
3be31516
JS
1732013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
174
175 * configure.ac: Address use of dv-sockser.o.
176 * tconfig.in: Conditionalize use of dv_sockser_install.
177 * configure: Regenerated.
178 * config.in: Regenerated.
179
37cb8f8e
SE
1802012-10-04 Chao-ying Fu <fu@mips.com>
181 Steve Ellcey <sellcey@mips.com>
182
183 * mips/mips3264r2.igen (rdhwr): New.
184
87c8644f
JS
1852012-09-03 Joel Sherrill <joel.sherrill@oarcorp.com>
186
187 * configure.ac: Always link against dv-sockser.o.
188 * configure: Regenerate.
189
5f3ef9d0
JB
1902012-06-15 Joel Brobecker <brobecker@adacore.com>
191
192 * config.in, configure: Regenerate.
193
a6ff997c
NC
1942012-05-18 Nick Clifton <nickc@redhat.com>
195
196 PR 14072
197 * interp.c: Include config.h before system header files.
198
2232061b
MF
1992012-03-24 Mike Frysinger <vapier@gentoo.org>
200
201 * aclocal.m4, config.in, configure: Regenerate.
202
db2e4d67
MF
2032011-12-03 Mike Frysinger <vapier@gentoo.org>
204
205 * aclocal.m4: New file.
206 * configure: Regenerate.
207
4399a56b
MF
2082011-10-19 Mike Frysinger <vapier@gentoo.org>
209
210 * configure: Regenerate after common/acinclude.m4 update.
211
9c082ca8
MF
2122011-10-17 Mike Frysinger <vapier@gentoo.org>
213
214 * configure.ac: Change include to common/acinclude.m4.
215
6ffe910a
MF
2162011-10-17 Mike Frysinger <vapier@gentoo.org>
217
218 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
219 call. Replace common.m4 include with SIM_AC_COMMON.
220 * configure: Regenerate.
221
31b28250
HPN
2222011-07-08 Hans-Peter Nilsson <hp@axis.com>
223
3faa01e3
HPN
224 * Makefile.in ($(SIM_MULTI_OBJ)): Depend on sim-main.h
225 $(SIM_EXTRA_DEPS).
226 (tmp-mach-multi): Exit early when igen fails.
31b28250 227
2419798b
MF
2282011-07-05 Mike Frysinger <vapier@gentoo.org>
229
230 * interp.c (sim_do_command): Delete.
231
d79fe0d6
MF
2322011-02-14 Mike Frysinger <vapier@gentoo.org>
233
234 * dv-tx3904sio.c (tx3904sio_fifo_push): Change zfree to free.
235 (tx3904sio_fifo_reset): Likewise.
236 * interp.c (sim_monitor): Likewise.
237
5558e7e6
MF
2382010-04-14 Mike Frysinger <vapier@gentoo.org>
239
240 * interp.c (sim_write): Add const to buffer arg.
241
35aafff4
JB
2422010-01-18 Masaki Muranaka <monaka@monami-software.com> (tiny change)
243
244 * interp.c: Don't include sysdep.h
245
3725885a
RW
2462010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
247
248 * configure: Regenerate.
249
d6416cdc
RW
2502009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
251
81ecdfbb
RW
252 * config.in: Regenerate.
253 * configure: Likewise.
254
d6416cdc
RW
255 * configure: Regenerate.
256
b5bd9624
HPN
2572008-07-11 Hans-Peter Nilsson <hp@axis.com>
258
259 * configure: Regenerate to track ../common/common.m4 changes.
260 * config.in: Ditto.
261
6efef468
JM
2622008-06-06 Vladimir Prus <vladimir@codesourcery.com>
263 Daniel Jacobowitz <dan@codesourcery.com>
264 Joseph Myers <joseph@codesourcery.com>
265
266 * configure: Regenerate.
267
60dc88db
RS
2682007-10-22 Richard Sandiford <rsandifo@nildram.co.uk>
269
270 * mips.igen (check_fmt_p): Provide a separate mips32r2 definition
271 that unconditionally allows fmt_ps.
272 (ALNV.PS, CEIL.L.fmt, CVT.L.fmt, CVT.PS.S, CVT.S.PL, CVT.S.PU)
273 (FLOOR.L.fmt, LWXC1, MADD.fmt, MSUB.fmt, NMADD.fmt, NMSUB.fmt)
274 (PLL.PS, PLU.PS, PUL.PS, PUU.PS, ROUND.L.fmt, TRUNC.L.fmt): Change
275 filter from 64,f to 32,f.
276 (PREFX): Change filter from 64 to 32.
277 (LDXC1, LUXC1): Provide separate mips32r2 implementations
278 that use do_load_double instead of do_load. Make both LUXC1
279 versions unpredictable if SizeFGR () != 64.
280 (SDXC1, SUXC1): Extend to mips32r2, using do_store_double
281 instead of do_store. Remove unused variable. Make both SUXC1
282 versions unpredictable if SizeFGR () != 64.
283
599ca73e
RS
2842007-10-07 Richard Sandiford <rsandifo@nildram.co.uk>
285
286 * mips.igen (ll): Fix mask for WITH_TARGET_WORD_BITSIZE == 32.
287 (sc, swxc1): Likewise. Also fix big-endian and reverse-endian
288 shifts for that case.
289
2525df03
NC
2902007-09-04 Nick Clifton <nickc@redhat.com>
291
292 * interp.c (options enum): Add OPTION_INFO_MEMORY.
293 (display_mem_info): New static variable.
294 (mips_option_handler): Handle OPTION_INFO_MEMORY.
295 (mips_options): Add info-memory and memory-info.
296 (sim_open): After processing the command line and board
297 specification, check display_mem_info. If it is set then
298 call the real handler for the --memory-info command line
299 switch.
300
35ee6e1e
JB
3012007-08-24 Joel Brobecker <brobecker@adacore.com>
302
303 * configure.ac: Change license of multi-run.c to GPL version 3.
304 * configure: Regenerate.
305
d5fb0879
RS
3062007-06-28 Richard Sandiford <richard@codesourcery.com>
307
308 * configure.ac, configure: Revert last patch.
309
2a2ce21b
RS
3102007-06-26 Richard Sandiford <richard@codesourcery.com>
311
312 * configure.ac (sim_mipsisa3264_configs): New variable.
313 (mipsis32*-*-, mipsisa32r2*-*-*, mips64*-*-*, mips64r2*-*-*): Make
314 every configuration support all four targets, using the triplet to
315 determine the default.
316 * configure: Regenerate.
317
efdcccc9
RS
3182007-06-25 Richard Sandiford <richard@codesourcery.com>
319
0a7692b2 320 * Makefile.in (m16run.o): New rule.
efdcccc9 321
f532a356
TS
3222007-05-15 Thiemo Seufer <ths@mips.com>
323
324 * mips3264r2.igen (DSHD): Fix compile warning.
325
bfe9c90b
TS
3262007-05-14 Thiemo Seufer <ths@mips.com>
327
328 * mips.igen (ALNV.PS, CEIL.L.fmt, CVT.L.fmt, CVT.PS.S, CVT.S.PL,
329 CVT.S.PU, FLOOR.L.fmt, LDXC1, LUXC1, LWXC1, MADD.fmt, MSUB.fmt,
330 NMADD.fmt, NMSUB.fmt, PLL.PS, PLU.PS, PREFX, PUL.PS, PUU.PS,
331 RECIP.fmt, ROUND.L.fmt, RSQRT.fmt, SWXC1, TRUNC.L.fmt): Add support
332 for mips32r2.
333
53f4826b
TS
3342007-03-01 Thiemo Seufer <ths@mips.com>
335
336 * mips.igen (MFHI, MFLO, MTHI, MTLO): Restore support for mips32
337 and mips64.
338
8bf3ddc8
TS
3392007-02-20 Thiemo Seufer <ths@mips.com>
340
341 * dsp.igen: Update copyright notice.
342 * dsp2.igen: Fix copyright notice.
343
8b082fb1
TS
3442007-02-20 Thiemo Seufer <ths@mips.com>
345 Chao-Ying Fu <fu@mips.com>
346
347 * Makefile.in (IGEN_INCLUDE): Add dsp2.igen.
348 * configure.ac (mips*-sde-elf*, mipsisa32r2*-*-*, mipsisa64r2*-*-*):
349 Add dsp2 to sim_igen_machine.
350 * configure: Regenerate.
351 * dsp.igen (do_ph_op): Add MUL support when op = 2.
352 (do_ph_mulq): New function to support mulq_rs.ph and mulq_s.ph.
353 (mulq_rs.ph): Use do_ph_mulq.
354 (MFHI, MFLO, MTHI, MTLO): Move these instructions to mips.igen.
355 * mips.igen: Add dsp2 model and include dsp2.igen.
356 (MFHI, MFLO, MTHI, MTLO): Extend these instructions for
357 for *mips32r2, *mips64r2, *dsp.
358 (MADD, MADDU, MSUB, MSUBU, MULT, MULTU): Extend these instructions
359 for *mips32r2, *mips64r2, *dsp2.
360 * dsp2.igen: New file for MIPS DSP REV 2 ASE.
361
b1004875
TS
3622007-02-19 Thiemo Seufer <ths@mips.com>
363 Nigel Stephens <nigel@mips.com>
364
365 * mips.igen (jalr.hb, jr.hb): Add decoder for mip32r2/mips64r2
366 jumps with hazard barrier.
367
f8df4c77
TS
3682007-02-19 Thiemo Seufer <ths@mips.com>
369 Nigel Stephens <nigel@mips.com>
370
371 * interp.c (sim_monitor): Flush stdout and stderr file descriptors
372 after each call to sim_io_write.
373
b1004875 3742007-02-19 Thiemo Seufer <ths@mips.com>
07802d98 375 Nigel Stephens <nigel@mips.com>
b1004875
TS
376
377 * interp.c (ColdReset): Set CP0 Config0 to reflect the address size
378 supported by this simulator.
07802d98
TS
379 (decode_coproc): Recognise additional CP0 Config registers
380 correctly.
381
14fb6c5a
TS
3822007-02-19 Thiemo Seufer <ths@mips.com>
383 Nigel Stephens <nigel@mips.com>
384 David Ung <davidu@mips.com>
385
386 * cp1.c (value_fpr): Don't inherit existing FPR_STATE for
387 uninterpreted formats. If fmt is one of the uninterpreted types
388 don't update the FPR_STATE. Handle fmt_uninterpreted_32 like
389 fmt_word, and fmt_uninterpreted_64 like fmt_long.
390 (store_fpr): When writing an invalid odd register, set the
391 matching even register to fmt_unknown, not the following register.
392 * interp.c (sim_open): If STATE_MEM_SIZE isn't set then set it to
393 the the memory window at offset 0 set by --memory-size command
394 line option.
395 (sim_store_register): Handle storing 4 bytes to an 8 byte floating
396 point register.
397 (sim_fetch_register): Likewise for reading 4 bytes from an 8 byte
398 register.
399 (sim_monitor): When returning the memory size to the MIPS
400 application, use the value in STATE_MEM_SIZE, not an arbitrary
401 hardcoded value.
402 (cop_lw): Don' mess around with FPR_STATE, just pass
403 fmt_uninterpreted_32 to StoreFPR.
404 (cop_sw): Similarly.
405 (cop_ld): Pass fmt_uninterpreted_64 not fmt_uninterpreted.
406 (cop_sd): Similarly.
407 * mips.igen (not_word_value): Single version for mips32, mips64
408 and mips16.
409
c8847145
TS
4102007-02-19 Thiemo Seufer <ths@mips.com>
411 Nigel Stephens <nigel@mips.com>
412
413 * interp.c (MEM_SIZE): Increase default memory size from 2 to 8
414 MBytes.
415
4b5d35ee
TS
4162007-02-17 Thiemo Seufer <ths@mips.com>
417
418 * configure.ac (mips*-sde-elf*): Move in front of generic machine
419 configuration.
420 * configure: Regenerate.
421
3669427c
TS
4222007-02-17 Thiemo Seufer <ths@mips.com>
423
424 * configure.ac (mips*-sde-elf*, mipsisa32r2*-*-*, mipsisa64r2*-*-*):
425 Add mdmx to sim_igen_machine.
426 (mipsisa64*-*-*): Likewise. Remove dsp.
427 (mipsisa32*-*-*): Remove dsp.
428 * configure: Regenerate.
429
109ad085
TS
4302007-02-13 Thiemo Seufer <ths@mips.com>
431
432 * configure.ac: Add mips*-sde-elf* target.
433 * configure: Regenerate.
434
921d7ad3
HPN
4352006-12-21 Hans-Peter Nilsson <hp@axis.com>
436
437 * acconfig.h: Remove.
438 * config.in, configure: Regenerate.
439
02f97da7
TS
4402006-11-07 Thiemo Seufer <ths@mips.com>
441
442 * dsp.igen (do_w_op): Fix compiler warning.
443
2d2733fc
TS
4442006-08-29 Thiemo Seufer <ths@mips.com>
445 David Ung <davidu@mips.com>
446
447 * configure.ac (mipsisa32r2*-*-*, mipsisa32*-*-*): Add smartmips to
448 sim_igen_machine.
449 * configure: Regenerate.
450 * mips.igen (model): Add smartmips.
451 (MADDU): Increment ACX if carry.
452 (do_mult): Clear ACX.
453 (ROR,RORV): Add smartmips.
454 (include): Include smartmips.igen.
455 * sim-main.h (ACX): Set to REGISTERS[89].
456 * smartmips.igen: New file.
457
d85c3a10
TS
4582006-08-29 Thiemo Seufer <ths@mips.com>
459 David Ung <davidu@mips.com>
460
461 * Makefile.in (IGEN_INCLUDE): Add missing includes for m16e.igen and
462 mips3264r2.igen. Add missing dependency rules.
463 * m16e.igen: Support for mips16e save/restore instructions.
464
e85e3205
RE
4652006-06-13 Richard Earnshaw <rearnsha@arm.com>
466
467 * configure: Regenerated.
468
2f0122dc
DJ
4692006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
470
471 * configure: Regenerated.
472
20e95c23
DJ
4732006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
474
475 * configure: Regenerated.
476
69088b17
CF
4772006-05-15 Chao-ying Fu <fu@mips.com>
478
479 * dsp.igen (do_ph_shift, do_w_shra): Fix bugs for rounding instructions.
480
0275de4e
NC
4812006-04-18 Nick Clifton <nickc@redhat.com>
482
483 * dv-tx3904tmr.c (deliver_tx3904tmr_tick): Add missing break
484 statement.
485
b3a3ffef
HPN
4862006-03-29 Hans-Peter Nilsson <hp@axis.com>
487
488 * configure: Regenerate.
489
40a5538e
CF
4902005-12-14 Chao-ying Fu <fu@mips.com>
491
492 * Makefile.in (SIM_OBJS): Add dsp.o.
493 (dsp.o): New dependency.
494 (IGEN_INCLUDE): Add dsp.igen.
495 * configure.ac (mipsisa32r2*-*-*, mipsisa32*-*-*, mipsisa64r2*-*-*,
496 mipsisa64*-*-*): Add dsp to sim_igen_machine.
497 * configure: Regenerate.
498 * mips.igen: Add dsp model and include dsp.igen.
499 (MFHI, MFLO, MTHI, MTLO): Remove mips32, mips32r2, mips64, mips64r2,
500 because these instructions are extended in DSP ASE.
501 * sim-main.h (LAST_EMBED_REGNUM): Change from 89 to 96 because of
502 adding 6 DSP accumulator registers and 1 DSP control register.
503 (AC0LOIDX, AC0HIIDX, AC1LOIDX, AC1HIIDX, AC2LOIDX, AC2HIIDX, AC3LOIDX,
504 AC3HIIDX, DSPLO, DSPHI, DSPCRIDX, DSPCR, DSPCR_POS_SHIFT,
505 DSPCR_POS_MASK, DSPCR_POS_SMASK, DSPCR_SCOUNT_SHIFT, DSPCR_SCOUNT_MASK,
506 DSPCR_SCOUNT_SMASK, DSPCR_CARRY_SHIFT, DSPCR_CARRY_MASK,
507 DSPCR_CARRY_SMASK, DSPCR_CARRY, DSPCR_EFI_SHIFT, DSPCR_EFI_MASK,
508 DSPCR_EFI_SMASK, DSPCR_EFI, DSPCR_OUFLAG_SHIFT, DSPCR_OUFLAG_MASK,
509 DSPCR_OUFLAG_SMASK, DSPCR_OUFLAG4, DSPCR_OUFLAG5, DSPCR_OUFLAG6,
510 DSPCR_OUFLAG7, DSPCR_CCOND_SHIFT, DSPCR_CCOND_MASK,
511 DSPCR_CCOND_SMASK): New define.
512 (DSPLO_REGNUM, DSPHI_REGNUM): New array for DSP accumulators.
513 * dsp.c, dsp.igen: New files for MIPS DSP ASE.
514
21d14896
ILT
5152005-07-08 Ian Lance Taylor <ian@airs.com>
516
517 * tconfig.in (SIM_QUIET_NAN_NEGATED): Define.
518
b16d63da
DU
5192005-06-16 David Ung <davidu@mips.com>
520 Nigel Stephens <nigel@mips.com>
521
522 * mips.igen: New mips16e model and include m16e.igen.
523 (check_u64): Add mips16e tag.
524 * m16e.igen: New file for MIPS16e instructions.
525 * configure.ac (mipsisa32*-*-*, mipsisa32r2*-*-*, mipsisa64*-*-*,
526 mipsisa64r2*-*-*): Change sim_gen to M16, add mips16 and mips16e
527 models.
528 * configure: Regenerate.
529
e70cb6cd
CD
5302005-05-26 David Ung <davidu@mips.com>
531
532 * mips.igen (mips32r2, mips64r2): New ISA models. Add new model
533 tags to all instructions which are applicable to the new ISAs.
534 (do_ror, do_dror, ROR, RORV, DROR, DROR32, DRORV): Add, moved from
535 vr.igen.
536 * mips3264r2.igen: New file for MIPS 32/64 revision 2 specific
537 instructions.
538 * vr.igen (do_ror, do_dror, ROR, RORV, DROR, DROR32, DRORV): Move
539 to mips.igen.
540 * configure.ac (mipsisa32r2*-*-*, mipsisa64r2*-*-*): Add new targets.
541 * configure: Regenerate.
542
2b193c4a
MK
5432005-03-23 Mark Kettenis <kettenis@gnu.org>
544
545 * configure: Regenerate.
546
35695fd6
AC
5472005-01-14 Andrew Cagney <cagney@gnu.org>
548
549 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
550 explicit call to AC_CONFIG_HEADER.
551 * configure: Regenerate.
552
f0569246
AC
5532005-01-12 Andrew Cagney <cagney@gnu.org>
554
555 * configure.ac: Update to use ../common/common.m4.
556 * configure: Re-generate.
557
38f48d72
AC
5582005-01-11 Andrew Cagney <cagney@localhost.localdomain>
559
560 * configure: Regenerated to track ../common/aclocal.m4 changes.
561
b7026657
AC
5622005-01-07 Andrew Cagney <cagney@gnu.org>
563
564 * configure.ac: Rename configure.in, require autoconf 2.59.
565 * configure: Re-generate.
566
379832de
HPN
5672004-12-08 Hans-Peter Nilsson <hp@axis.com>
568
569 * configure: Regenerate for ../common/aclocal.m4 update.
570
cd62154c
AC
5712004-09-24 Monika Chaddha <monika@acmet.com>
572
573 Committed by Andrew Cagney.
574 * m16.igen (CMP, CMPI): Fix assembler.
575
e5da76ec
CD
5762004-08-18 Chris Demetriou <cgd@broadcom.com>
577
578 * configure.in (mipsisa64sb1*-*-*): Add mips3d to sim_igen_machine.
579 * configure: Regenerate.
580
139181c8
CD
5812004-06-25 Chris Demetriou <cgd@broadcom.com>
582
583 * configure.in (sim_m16_machine): Include mipsIII.
584 * configure: Regenerate.
585
1a27f959
CD
5862004-05-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
587
588 * mips/interp.c (decode_coproc): Sign-extend the address retrieved
589 from COP0_BADVADDR.
590 * mips/sim-main.h (COP0_BADVADDR): Remove a cast.
591
5dbb7b5a
CD
5922004-04-10 Chris Demetriou <cgd@broadcom.com>
593
594 * sb1.igen (DIV.PS, RECIP.PS, RSQRT.PS, SQRT.PS): New.
595
14234056
CD
5962004-04-09 Chris Demetriou <cgd@broadcom.com>
597
598 * mips.igen (check_fmt): Remove.
599 (ABS.fmt, ADD.fmt, C.cond.fmta, C.cond.fmtb, CEIL.L.fmt, CEIL.W)
600 (CVT.D.fmt, CVT.L.fmt, CVT.S.fmt, CVT.W.fmt, DIV.fmt, FLOOR.L.fmt)
601 (FLOOR.W.fmt, MADD.fmt, MOV.fmt, MOVtf.fmt, MOVN.fmt, MOVZ.fmt)
602 (MSUB.fmt, MUL.fmt, NEG.fmt, NMADD.fmt, NMSUB.fmt, RECIP.fmt)
603 (ROUND.L.fmt, ROUND.W.fmt, RSQRT.fmt, SQRT.fmt, SUB.fmt)
604 (TRUNC.L.fmt, TRUNC.W): Explicitly specify allowed FPU formats.
605 (check_fmt_p, CEIL.L.fmt, CEIL.W, DIV.fmt, FLOOR.L.fmt)
606 (FLOOR.W.fmt, RECIP.fmt, ROUND.L.fmt, ROUND.W.fmt, RSQRT.fmt)
607 (SQRT.fmt, TRUNC.L.fmt, TRUNC.W): Remove all uses of check_fmt.
608 (C.cnd.fmta): Remove incorrect call to check_fmt_p.
609
c6f9085c
CD
6102004-04-09 Chris Demetriou <cgd@broadcom.com>
611
612 * sb1.igen (check_sbx): New function.
613 (PABSDIFF.fmt, PABSDIFC.fmt, PAVG.fmt): Use check_sbx.
614
11d66e66 6152004-03-29 Chris Demetriou <cgd@broadcom.com>
0e1b7197
RS
616 Richard Sandiford <rsandifo@redhat.com>
617
618 * sim-main.h (MIPS_MACH_HAS_MT_HILO_HAZARD)
619 (MIPS_MACH_HAS_MULT_HILO_HAZARD, MIPS_MACH_HAS_DIV_HILO_HAZARD): New.
620 * mips.igen (check_mt_hilo, check_mult_hilo, check_div_hilo): Provide
621 separate implementations for mipsIV and mipsV. Use new macros to
622 determine whether the restrictions apply.
623
b3208fb8
CD
6242004-01-19 Chris Demetriou <cgd@broadcom.com>
625
626 * mips.igen (check_mf_cycles, check_mt_hilo, check_mf_hilo)
627 (check_mult_hilo): Improve comments.
628 (check_div_hilo): Likewise. Also, fork off a new version
629 to handle mips32/mips64 (since there are no hazards to check
630 in MIPS32/MIPS64).
631
9a1d84fb
CD
6322003-06-17 Richard Sandiford <rsandifo@redhat.com>
633
634 * mips.igen (do_dmultx): Fix check for negative operands.
635
ae451ac6
ILT
6362003-05-16 Ian Lance Taylor <ian@airs.com>
637
638 * Makefile.in (SHELL): Make sure this is defined.
639 (various): Use $(SHELL) whenever we invoke move-if-change.
640
dd69d292
CD
6412003-05-03 Chris Demetriou <cgd@broadcom.com>
642
643 * cp1.c: Tweak attribution slightly.
644 * cp1.h: Likewise.
645 * mdmx.c: Likewise.
646 * mdmx.igen: Likewise.
647 * mips3d.igen: Likewise.
648 * sb1.igen: Likewise.
649
bcd0068e
CD
6502003-04-15 Richard Sandiford <rsandifo@redhat.com>
651
652 * vr.igen (do_vr_mul_op): Zero-extend the low 32 bits of
653 unsigned operands.
654
6b4a8935
AC
6552003-02-27 Andrew Cagney <cagney@redhat.com>
656
601da316
AC
657 * interp.c (sim_open): Rename _bfd to bfd.
658 (sim_create_inferior): Ditto.
6b4a8935 659
d29e330f
CD
6602003-01-14 Chris Demetriou <cgd@broadcom.com>
661
662 * mips.igen (LUXC1, SUXC1): New, for mipsV and mips64.
663
a2353a08
CD
6642003-01-14 Chris Demetriou <cgd@broadcom.com>
665
666 * mips.igen (EI, DI): Remove.
667
80551777
CD
6682003-01-05 Richard Sandiford <rsandifo@redhat.com>
669
670 * Makefile.in (tmp-run-multi): Fix mips16 filter.
671
4c54fc26
CD
6722003-01-04 Richard Sandiford <rsandifo@redhat.com>
673 Andrew Cagney <ac131313@redhat.com>
674 Gavin Romig-Koch <gavin@redhat.com>
675 Graydon Hoare <graydon@redhat.com>
676 Aldy Hernandez <aldyh@redhat.com>
677 Dave Brolley <brolley@redhat.com>
678 Chris Demetriou <cgd@broadcom.com>
679
680 * configure.in (mips64vr*): Define TARGET_ENABLE_FR to 1.
681 (sim_mach_default): New variable.
682 (mips64vr-*-*, mips64vrel-*-*): New configurations.
683 Add a new simulator generator, MULTI.
684 * configure: Regenerate.
685 * Makefile.in (SIM_MULTI_OBJ, SIM_EXTRA_DISTCLEAN): New variables.
686 (multi-run.o): New dependency.
687 (SIM_MULTI_ALL, SIM_MULTI_IGEN_CONFIGS): New variables.
688 (tmp-mach-multi, tmp-itable-multi, tmp-run-multi): New rules.
689 (tmp-multi): Combine them.
690 (BUILT_SRC_FROM_MULTI): New variable. Depend on tmp-multi.
691 (clean-extra): Remove sources in BUILT_SRC_FROM_MULTI.
692 (distclean-extra): New rule.
693 * sim-main.h: Include bfd.h.
694 (MIPS_MACH): New macro.
695 * mips.igen (vr4120, vr5400, vr5500): New models.
696 (clo, clz, dclo, dclz, madd, maddu, msub, msub, mul): Add *vr5500.
697 * vr.igen: Replace with new version.
698
e6c674b8
CD
6992003-01-04 Chris Demetriou <cgd@broadcom.com>
700
701 * configure.in: Use SIM_AC_OPTION_RESERVED_BITS(1).
702 * configure: Regenerate.
703
28f50ac8
CD
7042002-12-31 Chris Demetriou <cgd@broadcom.com>
705
706 * sim-main.h (check_branch_bug, mark_branch_bug): Remove.
707 * mips.igen: Remove all invocations of check_branch_bug and
708 mark_branch_bug.
709
5071ffe6
CD
7102002-12-16 Chris Demetriou <cgd@broadcom.com>
711
712 * tconfig.in: Include "gdb/callback.h" and "gdb/remote-sim.h".
713
06e7837e
CD
7142002-07-30 Chris Demetriou <cgd@broadcom.com>
715
716 * mips.igen (do_load_double, do_store_double): New functions.
717 (LDC1, SDC1): Rename to...
718 (LDC1b, SDC1b): respectively.
719 (LDC1a, SDC1a): New instructions for MIPS II and MIPS32 support.
720
2265c243
MS
7212002-07-29 Michael Snyder <msnyder@redhat.com>
722
723 * cp1.c (fp_recip2): Modify initialization expression so that
724 GCC will recognize it as constant.
725
a2f8b4f3
CD
7262002-06-18 Chris Demetriou <cgd@broadcom.com>
727
728 * mdmx.c (SD_): Delete.
729 (Unpredictable): Re-define, for now, to directly invoke
730 unpredictable_action().
731 (mdmx_acc_op): Fix error in .ob immediate handling.
732
b4b6c939
AC
7332002-06-18 Andrew Cagney <cagney@redhat.com>
734
735 * interp.c (sim_firmware_command): Initialize `address'.
736
c8cca39f
AC
7372002-06-16 Andrew Cagney <ac131313@redhat.com>
738
739 * configure: Regenerated to track ../common/aclocal.m4 changes.
740
e7e81181
CD
7412002-06-14 Chris Demetriou <cgd@broadcom.com>
742 Ed Satterthwaite <ehs@broadcom.com>
743
744 * mips3d.igen: New file which contains MIPS-3D ASE instructions.
745 * Makefile.in (IGEN_INCLUDE): Add mips3d.igen.
746 * mips.igen: Include mips3d.igen.
747 (mips3d): New model name for MIPS-3D ASE instructions.
748 (CVT.W.fmt): Don't use this instruction for word (source) format
749 instructions.
750 * cp1.c (fp_binary_r, fp_add_r, fp_mul_r, fpu_inv1, fpu_inv1_32)
751 (fpu_inv1_64, fp_recip1, fp_recip2, fpu_inv_sqrt1, fpu_inv_sqrt1_32)
752 (fpu_inv_sqrt1_64, fp_rsqrt1, fp_rsqrt2): New functions.
753 (NR_FRAC_GUARD, IMPLICIT_1): New macros.
754 * sim-main.h (fmt_pw, CompareAbs, AddR, MultiplyR, Recip1, Recip2)
755 (RSquareRoot1, RSquareRoot2): New macros.
756 (fp_add_r, fp_mul_r, fp_recip1, fp_recip2, fp_rsqrt1)
757 (fp_rsqrt2): New functions.
758 * configure.in: Add MIPS-3D support to mipsisa64 simulator.
759 * configure: Regenerate.
760
3a2b820e 7612002-06-13 Chris Demetriou <cgd@broadcom.com>
eab54952 762 Ed Satterthwaite <ehs@broadcom.com>
3a2b820e
CD
763
764 * cp1.c (FP_PS_upper, FP_PS_lower, FP_PS_cat, FPQNaN_PS): New macros.
765 (value_fpr, store_fpr, fp_cmp, fp_unary, fp_binary, fp_mac)
766 (fp_inv_sqrt, fpu_format_name): Add paired-single support.
767 (convert): Note that this function is not used for paired-single
768 format conversions.
769 (ps_lower, ps_upper, pack_ps, convert_ps): New functions.
770 * mips.igen (FMT, MOVtf.fmt): Add paired-single support.
771 (check_fmt_p): Enable paired-single support.
772 (ALNV.PS, CVT.PS.S, CVT.S.PL, CVT.S.PU, PLL.PS, PLU.PS, PUL.PS)
773 (PUU.PS): New instructions.
774 (CVT.S.fmt): Don't use this instruction for paired-single format
775 destinations.
776 * sim-main.h (FP_formats): New value 'fmt_ps.'
777 (ps_lower, ps_upper, pack_ps, convert_ps): New prototypes.
778 (PSLower, PSUpper, PackPS, ConvertPS): New macros.
779
d18ea9c2
CD
7802002-06-12 Chris Demetriou <cgd@broadcom.com>
781
782 * mips.igen: Fix formatting of function calls in
783 many FP operations.
784
95fd5cee
CD
7852002-06-12 Chris Demetriou <cgd@broadcom.com>
786
787 * mips.igen (MOVN, MOVZ): Trace result.
788 (TNEI): Print "tnei" as the opcode name in traces.
789 (CEIL.W): Add disassembly string for traces.
790 (RSQRT.fmt): Make location of disassembly string consistent
791 with other instructions.
792
4f0d55ae
CD
7932002-06-12 Chris Demetriou <cgd@broadcom.com>
794
795 * mips.igen (X): Delete unused function.
796
3c25f8c7
AC
7972002-06-08 Andrew Cagney <cagney@redhat.com>
798
799 * interp.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
800
f3c08b7e
CD
8012002-06-07 Chris Demetriou <cgd@broadcom.com>
802 Ed Satterthwaite <ehs@broadcom.com>
803
804 * cp1.c (inner_mac, fp_mac, inner_rsqrt, fp_inv_sqrt)
805 (fp_rsqrt, fp_madd, fp_msub, fp_nmadd, fp_nmsub): New functions.
806 * sim-main.h (fp_rsqrt, fp_madd, fp_msub, fp_nmadd)
807 (fp_nmsub): New prototypes.
808 (RSquareRoot, MultiplyAdd, MultiplySub, NegMultiplyAdd)
809 (NegMultiplySub): New defines.
810 * mips.igen (RSQRT.fmt): Use RSquareRoot().
811 (MADD.D, MADD.S): Replace with...
812 (MADD.fmt): New instruction.
813 (MSUB.D, MSUB.S): Replace with...
814 (MSUB.fmt): New instruction.
815 (NMADD.D, NMADD.S): Replace with...
816 (NMADD.fmt): New instruction.
817 (NMSUB.D, MSUB.S): Replace with...
818 (NMSUB.fmt): New instruction.
819
52714ff9
CD
8202002-06-07 Chris Demetriou <cgd@broadcom.com>
821 Ed Satterthwaite <ehs@broadcom.com>
822
823 * cp1.c: Fix more comment spelling and formatting.
824 (value_fcr, store_fcr): Use fenr_FS rather than hard-coding value.
825 (denorm_mode): New function.
826 (fpu_unary, fpu_binary): Round results after operation, collect
827 status from rounding operations, and update the FCSR.
828 (convert): Collect status from integer conversions and rounding
829 operations, and update the FCSR. Adjust NaN values that result
830 from conversions. Convert to use sim_io_eprintf rather than
831 fprintf, and remove some debugging code.
832 * cp1.h (fenr_FS): New define.
833
577d8c4b
CD
8342002-06-07 Chris Demetriou <cgd@broadcom.com>
835
836 * cp1.c (convert): Remove unusable debugging code, and move MIPS
837 rounding mode to sim FP rounding mode flag conversion code into...
838 (rounding_mode): New function.
839
196496ed
CD
8402002-06-07 Chris Demetriou <cgd@broadcom.com>
841
842 * cp1.c: Clean up formatting of a few comments.
843 (value_fpr): Reformat switch statement.
844
cfe9ea23
CD
8452002-06-06 Chris Demetriou <cgd@broadcom.com>
846 Ed Satterthwaite <ehs@broadcom.com>
847
848 * cp1.h: New file.
849 * sim-main.h: Include cp1.h.
850 (SETFCC, GETFCC, IR, UF, OF, DX, IO, UO, FP_FLAGS, FP_ENABLE)
851 (FP_CAUSE, GETFS, FP_RM_NEAREST, FP_RM_TOZERO, FP_RM_TOPINF)
852 (FP_RM_TOMINF, GETRM): Remove. Moved to cp1.h.
853 (FP_FS, FP_MASK_RM, FP_SH_RM, Nan, Less, Equal): Remove.
854 (value_fcr, store_fcr, test_fcsr, fp_cmp): New prototypes.
855 (ValueFCR, StoreFCR, TestFCSR, Compare): New macros.
856 * cp1.c: Don't include sim-fpu.h; already included by
857 sim-main.h. Clean up formatting of some comments.
858 (NaN, Equal, Less): Remove.
859 (test_fcsr, value_fcr, store_fcr, update_fcsr, fp_test)
860 (fp_cmp): New functions.
861 * mips.igen (do_c_cond_fmt): Remove.
862 (C.cond.fmta, C.cond.fmtb): Replace uses of do_c_cond_fmt_a with
863 Compare. Add result tracing.
864 (CxC1): Remove, replace with...
865 (CFC1a, CFC1b, CFC1c, CTC1a, CTC1b, CTC1c): New instructions.
866 (DMxC1): Remove, replace with...
867 (DMFC1a, DMFC1b, DMTC1a, DMTC1b): New instructions.
868 (MxC1): Remove, replace with...
869 (MFC1a, MFC1b, MTC1a, MTC1b): New instructions.
870
ee7254b0
CD
8712002-06-04 Chris Demetriou <cgd@broadcom.com>
872
873 * sim-main.h (FGRIDX): Remove, replace all uses with...
874 (FGR_BASE): New macro.
875 (FP0_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): New macros.
876 (_sim_cpu): Move 'fgr' member to be right before 'fpr_state' member.
877 (NR_FGR, FGR): Likewise.
878 * interp.c: Replace all uses of FGRIDX with FGR_BASE.
879 * mips.igen: Likewise.
880
d3eb724f
CD
8812002-06-04 Chris Demetriou <cgd@broadcom.com>
882
883 * cp1.c: Add an FSF Copyright notice to this file.
884
ba46ddd0
CD
8852002-06-04 Chris Demetriou <cgd@broadcom.com>
886 Ed Satterthwaite <ehs@broadcom.com>
887
888 * cp1.c (Infinity): Remove.
889 * sim-main.h (Infinity): Likewise.
890
891 * cp1.c (fp_unary, fp_binary): New functions.
892 (fp_abs, fp_neg, fp_add, fp_sub, fp_mul, fp_div, fp_recip)
893 (fp_sqrt): New functions, implemented in terms of the above.
894 (AbsoluteValue, Negate, Add, Sub, Multiply, Divide)
895 (Recip, SquareRoot): Remove (replaced by functions above).
896 * sim-main.h (fp_abs, fp_neg, fp_add, fp_sub, fp_mul, fp_div)
897 (fp_recip, fp_sqrt): New prototypes.
898 (AbsoluteValue, Negate, Add, Sub, Multiply, Divide)
899 (Recip, SquareRoot): Replace prototypes with #defines which
900 invoke the functions above.
901
18d8a52d
CD
9022002-06-03 Chris Demetriou <cgd@broadcom.com>
903
904 * sim-main.h (Nan, Infinity, Less, Equal, AbsoluteValue, Negate)
905 (Add, Sub, Multiply, Divide, Recip, SquareRoot): Move lower in
906 file, remove PARAMS from prototypes.
907 (value_fpr, store_fpr, convert): Likewise. Use SIM_STATE to provide
908 simulator state arguments.
909 (ValueFPR, StoreFPR, Convert): Move lower in file. Use SIM_ARGS to
910 pass simulator state arguments.
911 * cp1.c (SD): Redefine as CPU_STATE(cpu).
912 (store_fpr, convert): Remove 'sd' argument.
913 (value_fpr): Likewise. Convert to use 'SD' instead.
914
0f154cbd
CD
9152002-06-03 Chris Demetriou <cgd@broadcom.com>
916
917 * cp1.c (Min, Max): Remove #if 0'd functions.
918 * sim-main.h (Min, Max): Remove.
919
e80fc152
CD
9202002-06-03 Chris Demetriou <cgd@broadcom.com>
921
922 * cp1.c: fix formatting of switch case and default labels.
923 * interp.c: Likewise.
924 * sim-main.c: Likewise.
925
bad673a9
CD
9262002-06-03 Chris Demetriou <cgd@broadcom.com>
927
928 * cp1.c: Clean up comments which describe FP formats.
929 (FPQNaN_DOUBLE, FPQNaN_LONG): Generate using UNSIGNED64.
930
7cbea089
CD
9312002-06-03 Chris Demetriou <cgd@broadcom.com>
932 Ed Satterthwaite <ehs@broadcom.com>
933
934 * configure.in (mipsisa64sb1*-*-*): New target for supporting
935 Broadcom SiByte SB-1 processor configurations.
936 * configure: Regenerate.
937 * sb1.igen: New file.
938 * mips.igen: Include sb1.igen.
939 (sb1): New model.
940 * Makefile.in (IGEN_INCLUDE): Add sb1.igen.
941 * mdmx.igen: Add "sb1" model to all appropriate functions and
942 instructions.
943 * mdmx.c (AbsDiffOB, AvgOB, AccAbsDiffOB): New functions.
944 (ob_func, ob_acc): Reference the above.
945 (qh_acc): Adjust to keep the same size as ob_acc.
946 * sim-main.h (status_SBX, MX_VECT_ABSD, MX_VECT_AVG, MX_AbsDiff)
947 (MX_Avg, MX_VECT_ABSDA, MX_AbsDiffC): New macros.
948
909daa82
CD
9492002-06-03 Chris Demetriou <cgd@broadcom.com>
950
951 * Makefile.in (IGEN_INCLUDE): Add mdmx.igen.
952
f4f1b9f1
CD
9532002-06-02 Chris Demetriou <cgd@broadcom.com>
954 Ed Satterthwaite <ehs@broadcom.com>
955
956 * mips.igen (mdmx): New (pseudo-)model.
957 * mdmx.c, mdmx.igen: New files.
958 * Makefile.in (SIM_OBJS): Add mdmx.o.
959 * sim-main.h (MDMX_accumulator, MX_fmtsel, signed24, signed48):
960 New typedefs.
961 (ACC, MX_Add, MX_AddA, MX_AddL, MX_And, MX_C_EQ, MX_C_LT, MX_Comp)
962 (MX_FMT_OB, MX_FMT_QH, MX_Max, MX_Min, MX_Msgn, MX_Mul, MX_MulA)
963 (MX_MulL, MX_MulS, MX_MulSL, MX_Nor, MX_Or, MX_Pick, MX_RAC)
964 (MX_RAC_H, MX_RAC_L, MX_RAC_M, MX_RNAS, MX_RNAU, MX_RND_AS)
965 (MX_RND_AU, MX_RND_ES, MX_RND_EU, MX_RND_ZS, MX_RND_ZU, MX_RNES)
966 (MX_RNEU, MX_RZS, MX_RZU, MX_SHFL, MX_ShiftLeftLogical)
967 (MX_ShiftRightArith, MX_ShiftRightLogical, MX_Sub, MX_SubA, MX_SubL)
968 (MX_VECT_ADD, MX_VECT_ADDA, MX_VECT_ADDL, MX_VECT_AND)
969 (MX_VECT_MAX, MX_VECT_MIN, MX_VECT_MSGN, MX_VECT_MUL, MX_VECT_MULA)
970 (MX_VECT_MULL, MX_VECT_MULS, MX_VECT_MULSL, MX_VECT_NOR)
971 (MX_VECT_OR, MX_VECT_SLL, MX_VECT_SRA, MX_VECT_SRL, MX_VECT_SUB)
972 (MX_VECT_SUBA, MX_VECT_SUBL, MX_VECT_XOR, MX_WACH, MX_WACL, MX_Xor)
973 (SIM_ARGS, SIM_STATE, UnpredictableResult, fmt_mdmx, ob_fmtsel)
974 (qh_fmtsel): New macros.
975 (_sim_cpu): New member "acc".
976 (mdmx_acc_op, mdmx_cc_op, mdmx_cpr_op, mdmx_pick_op, mdmx_rac_op)
977 (mdmx_round_op, mdmx_shuffle, mdmx_wach, mdmx_wacl): New functions.
978
5accf1ff
CD
9792002-05-01 Chris Demetriou <cgd@broadcom.com>
980
981 * interp.c: Use 'deprecated' rather than 'depreciated.'
982 * sim-main.h: Likewise.
983
402586aa
CD
9842002-05-01 Chris Demetriou <cgd@broadcom.com>
985
986 * cp1.c (store_fpr): Remove #ifdef'd out call to UndefinedResult
987 which wouldn't compile anyway.
988 * sim-main.h (unpredictable_action): New function prototype.
989 (Unpredictable): Define to call igen function unpredictable().
990 (NotWordValue): New macro to call igen function not_word_value().
991 (UndefinedResult): Remove.
992 * interp.c (undefined_result): Remove.
993 (unpredictable_action): New function.
994 * mips.igen (not_word_value, unpredictable): New functions.
995 (ADD, ADDI, do_addiu, do_addu, BGEZAL, BGEZALL, BLTZAL, BLTZALL)
996 (CLO, CLZ, MADD, MADDU, MSUB, MSUBU, MUL, do_mult, do_multu)
997 (do_sra, do_srav, do_srl, do_srlv, SUB, do_subu): Invoke
998 NotWordValue() to check for unpredictable inputs, then
999 Unpredictable() to handle them.
1000
c9b9995a
CD
10012002-02-24 Chris Demetriou <cgd@broadcom.com>
1002
1003 * mips.igen: Fix formatting of calls to Unpredictable().
1004
e1015982
AC
10052002-04-20 Andrew Cagney <ac131313@redhat.com>
1006
1007 * interp.c (sim_open): Revert previous change.
1008
b882a66b
AO
10092002-04-18 Alexandre Oliva <aoliva@redhat.com>
1010
1011 * interp.c (sim_open): Disable chunk of code that wrote code in
1012 vector table entries.
1013
c429b7dd
CD
10142002-03-19 Chris Demetriou <cgd@broadcom.com>
1015
1016 * cp1.c (FP_S_s, FP_D_s, FP_S_be, FP_D_be, FP_S_e, FP_D_e, FP_S_f)
1017 (FP_D_f, FP_S_fb, FP_D_fb, FPINF_SINGLE, FPINF_DOUBLE): Remove
1018 unused definitions.
1019
37d146fa
CD
10202002-03-19 Chris Demetriou <cgd@broadcom.com>
1021
1022 * cp1.c: Fix many formatting issues.
1023
07892c0b
CD
10242002-03-19 Chris G. Demetriou <cgd@broadcom.com>
1025
1026 * cp1.c (fpu_format_name): New function to replace...
1027 (DOFMT): This. Delete, and update all callers.
1028 (fpu_rounding_mode_name): New function to replace...
1029 (RMMODE): This. Delete, and update all callers.
1030
487f79b7
CD
10312002-03-19 Chris G. Demetriou <cgd@broadcom.com>
1032
1033 * interp.c: Move FPU support routines from here to...
1034 * cp1.c: Here. New file.
1035 * Makefile.in (SIM_OBJS): Add cp1.o to object list.
1036 (cp1.o): New target.
1037
1e799e28
CD
10382002-03-12 Chris Demetriou <cgd@broadcom.com>
1039
1040 * configure.in (mipsisa32*-*-*, mipsisa64*-*-*): New targets.
1041 * mips.igen (mips32, mips64): New models, add to all instructions
1042 and functions as appropriate.
1043 (loadstore_ea, check_u64): New variant for model mips64.
1044 (check_fmt_p): New variant for models mipsV and mips64, remove
1045 mipsV model marking fro other variant.
1046 (SLL) Rename to...
1047 (SLLa) this.
1048 (CLO, CLZ, MADD, MADDU, MSUB, MSUBU, MUL, SLLb): New instructions
1049 for mips32 and mips64.
1050 (DCLO, DCLZ): New instructions for mips64.
1051
82f728db
CD
10522002-03-07 Chris Demetriou <cgd@broadcom.com>
1053
1054 * mips.igen (BREAK, LUI, ORI, SYSCALL, XORI): Print
1055 immediate or code as a hex value with the "%#lx" format.
1056 (ANDI): Likewise, and fix printed instruction name.
1057
b96e7ef1
CD
10582002-03-05 Chris Demetriou <cgd@broadcom.com>
1059
1060 * sim-main.h (UndefinedResult, Unpredictable): New macros
1061 which currently do nothing.
1062
d35d4f70
CD
10632002-03-05 Chris Demetriou <cgd@broadcom.com>
1064
1065 * sim-main.h (status_UX, status_SX, status_KX, status_TS)
1066 (status_PX, status_MX, status_CU0, status_CU1, status_CU2)
1067 (status_CU3): New definitions.
1068
1069 * sim-main.h (ExceptionCause): Add new values for MIPS32
1070 and MIPS64: MDMX, MCheck, CacheErr. Update comments
1071 for DebugBreakPoint and NMIReset to note their status in
1072 MIPS32 and MIPS64.
1073 (SignalExceptionMDMX, SignalExceptionWatch, SignalExceptionMCheck)
1074 (SignalExceptionCacheErr): New exception macros.
1075
3ad6f714
CD
10762002-03-05 Chris Demetriou <cgd@broadcom.com>
1077
1078 * mips.igen (check_fpu): Enable check for coprocessor 1 usability.
1079 * sim-main.h (COP_Usable): Define, but for now coprocessor 1
1080 is always enabled.
1081 (SignalExceptionCoProcessorUnusable): Take as argument the
1082 unusable coprocessor number.
1083
86b77b47
CD
10842002-03-05 Chris Demetriou <cgd@broadcom.com>
1085
1086 * mips.igen: Fix formatting of all SignalException calls.
1087
97a88e93 10882002-03-05 Chris Demetriou <cgd@broadcom.com>
3dea6720
CD
1089
1090 * sim-main.h (SIGNEXTEND): Remove.
1091
97a88e93 10922002-03-04 Chris Demetriou <cgd@broadcom.com>
b5040d49
CD
1093
1094 * mips.igen: Remove gencode comment from top of file, fix
1095 spelling in another comment.
1096
97a88e93 10972002-03-04 Chris Demetriou <cgd@broadcom.com>
8612006b
CD
1098
1099 * mips.igen (check_fmt, check_fmt_p): New functions to check
1100 whether specific floating point formats are usable.
1101 (ABS.fmt, ADD.fmt, CEIL.L.fmt, CEIL.W, DIV.fmt, FLOOR.L.fmt)
1102 (FLOOR.W.fmt, MOV.fmt, MUL.fmt, NEG.fmt, RECIP.fmt, ROUND.L.fmt)
1103 (ROUND.W.fmt, RSQRT.fmt, SQRT.fmt, SUB.fmt, TRUNC.L.fmt, TRUNC.W):
1104 Use the new functions.
1105 (do_c_cond_fmt): Remove format checks...
1106 (C.cond.fmta, C.cond.fmtb): And move them into all callers.
1107
97a88e93 11082002-03-03 Chris Demetriou <cgd@broadcom.com>
9b17d183
CD
1109
1110 * mips.igen: Fix formatting of check_fpu calls.
1111
41774c9d
CD
11122002-03-03 Chris Demetriou <cgd@broadcom.com>
1113
1114 * mips.igen (FLOOR.L.fmt): Store correct destination register.
1115
4a0bd876
CD
11162002-03-03 Chris Demetriou <cgd@broadcom.com>
1117
1118 * mips.igen: Remove whitespace at end of lines.
1119
09297648
CD
11202002-03-02 Chris Demetriou <cgd@broadcom.com>
1121
1122 * mips.igen (loadstore_ea): New function to do effective
1123 address calculations.
1124 (do_load, do_load_left, do_load_right, LL, LDD, PREF, do_store,
1125 do_store_left, do_store_right, SC, SCD, PREFX, SWC1, SWXC1,
1126 CACHE): Use loadstore_ea to do effective address computations.
1127
043b7057
CD
11282002-03-02 Chris Demetriou <cgd@broadcom.com>
1129
1130 * interp.c (load_word): Use EXTEND32 rather than SIGNEXTEND.
1131 * mips.igen (LL, CxC1, MxC1): Likewise.
1132
c1e8ada4
CD
11332002-03-02 Chris Demetriou <cgd@broadcom.com>
1134
1135 * mips.igen (LL, LLD, PREF, SC, SCD, ABS.fmt, ADD.fmt, CEIL.L.fmt,
1136 CEIL.W, CVT.D.fmt, CVT.L.fmt, CVT.S.fmt, CVT.W.fmt, DIV.fmt,
1137 FLOOR.L.fmt, FLOOR.W.fmt, MADD.D, MADD.S, MOV.fmt, MOVtf.fmt,
1138 MSUB.D, MSUB.S, MUL.fmt, NEG.fmt, NMADD.D, NMADD.S, NMSUB.D,
1139 NMSUB.S, PREFX, RECIP.fmt, ROUND.L.fmt, ROUND.W.fmt, RSQRT.fmt,
1140 SQRT.fmt, SUB.fmt, SWC1, SWXC1, TRUNC.L.fmt, TRUNC.W, CACHE):
1141 Don't split opcode fields by hand, use the opcode field values
1142 provided by igen.
1143
3e1dca16
CD
11442002-03-01 Chris Demetriou <cgd@broadcom.com>
1145
1146 * mips.igen (do_divu): Fix spacing.
1147
1148 * mips.igen (do_dsllv): Move to be right before DSLLV,
1149 to match the rest of the do_<shift> functions.
1150
fff8d27d
CD
11512002-03-01 Chris Demetriou <cgd@broadcom.com>
1152
1153 * mips.igen (do_dsll, do_dsllv, DSLL32, do_dsra, DSRA32, do_dsrl,
1154 DSRL32, do_dsrlv): Trace inputs and results.
1155
0d3e762b
CD
11562002-03-01 Chris Demetriou <cgd@broadcom.com>
1157
1158 * mips.igen (CACHE): Provide instruction-printing string.
1159
1160 * interp.c (signal_exception): Comment tokens after #endif.
1161
eb5fcf93
CD
11622002-02-28 Chris Demetriou <cgd@broadcom.com>
1163
1164 * mips.igen (LWXC1): Mark with filter "64,f", rather than just "32".
1165 (MOVtf, MxC1, MxC1, DMxC1, DMxC1, CxC1, CxC1, SQRT.fmt, MOV.fmt,
1166 NEG.fmt, ROUND.L.fmt, TRUNC.L.fmt, CEIL.L.fmt, FLOOR.L.fmt,
1167 ROUND.W.fmt, TRUNC.W, CEIL.W, FLOOR.W.fmt, RECIP.fmt, RSQRT.fmt,
1168 CVT.S.fmt, CVT.D.fmt, CVT.W.fmt, CVT.L.fmt, MOVtf.fmt, C.cond.fmta,
1169 C.cond.fmtb, SUB.fmt, MUL.fmt, DIV.fmt, MOVZ.fmt, MOVN.fmt, LDXC1,
1170 SWXC1, SDXC1, MSUB.D, MSUB.S, NMADD.S, NMADD.D, NMSUB.S, NMSUB.D,
1171 LWC1, SWC1): Add "f" to filter, since these are FP instructions.
1172
bb22bd7d
CD
11732002-02-28 Chris Demetriou <cgd@broadcom.com>
1174
1175 * mips.igen (DSRA32, DSRAV): Fix order of arguments in
1176 instruction-printing string.
1177 (LWU): Use '64' as the filter flag.
1178
91a177cf
CD
11792002-02-28 Chris Demetriou <cgd@broadcom.com>
1180
1181 * mips.igen (SDXC1): Fix instruction-printing string.
1182
387f484a
CD
11832002-02-28 Chris Demetriou <cgd@broadcom.com>
1184
1185 * mips.igen (LDC1, SDC1): Remove mipsI model, and mark with
1186 filter flags "32,f".
1187
3d81f391
CD
11882002-02-27 Chris Demetriou <cgd@broadcom.com>
1189
1190 * mips.igen (PREFX): This is a 64-bit instruction, use '64'
1191 as the filter flag.
1192
af5107af
CD
11932002-02-27 Chris Demetriou <cgd@broadcom.com>
1194
1195 * mips.igen (PREFX): Tweak instruction opcode fields (i.e.,
1196 add a comma) so that it more closely match the MIPS ISA
1197 documentation opcode partitioning.
1198 (PREF): Put useful names on opcode fields, and include
1199 instruction-printing string.
1200
ca971540
CD
12012002-02-27 Chris Demetriou <cgd@broadcom.com>
1202
1203 * mips.igen (check_u64): New function which in the future will
1204 check whether 64-bit instructions are usable and signal an
1205 exception if not. Currently a no-op.
1206 (DADD, DADDI, DADDIU, DADDU, DDIV, DDIVU, DMULT, DMULTU, DSLL,
1207 DSLL32, DSLLV, DSRA, DSRA32, DSRAV, DSRL, DSRL32, DSRLV, DSUB,
1208 DSUBU, LD, LDL, LDR, LLD, LWU, SCD, SD, SDL, SDR, DMxC1, LDXC1,
1209 LWXC1, SDXC1, SWXC1, DMFC0, DMTC0): Use check_u64.
1210
1211 * mips.igen (check_fpu): New function which in the future will
1212 check whether FPU instructions are usable and signal an exception
1213 if not. Currently a no-op.
1214 (ABS.fmt, ADD.fmt, BC1a, BC1b, C.cond.fmta, C.cond.fmtb,
1215 CEIL.L.fmt, CEIL.W, CxC1, CVT.D.fmt, CVT.L.fmt, CVT.S.fmt,
1216 CVT.W.fmt, DIV.fmt, DMxC1, DMxC1, FLOOR.L.fmt, FLOOR.W.fmt, LDC1,
1217 LDXC1, LWC1, LWXC1, MADD.D, MADD.S, MxC1, MOV.fmt, MOVtf,
1218 MOVtf.fmt, MOVN.fmt, MOVZ.fmt, MSUB.D, MSUB.S, MUL.fmt, NEG.fmt,
1219 NMADD.D, NMADD.S, NMSUB.D, NMSUB.S, RECIP.fmt, ROUND.L.fmt,
1220 ROUND.W.fmt, RSQRT.fmt, SDC1, SDXC1, SQRT.fmt, SUB.fmt, SWC1,
1221 SWXC1, TRUNC.L.fmt, TRUNC.W): Use check_fpu.
1222
1c47a468
CD
12232002-02-27 Chris Demetriou <cgd@broadcom.com>
1224
1225 * mips.igen (do_load_left, do_load_right): Move to be immediately
1226 following do_load.
1227 (do_store_left, do_store_right): Move to be immediately following
1228 do_store.
1229
603a98e7
CD
12302002-02-27 Chris Demetriou <cgd@broadcom.com>
1231
1232 * mips.igen (mipsV): New model name. Also, add it to
1233 all instructions and functions where it is appropriate.
1234
c5d00cc7
CD
12352002-02-18 Chris Demetriou <cgd@broadcom.com>
1236
1237 * mips.igen: For all functions and instructions, list model
1238 names that support that instruction one per line.
1239
074e9cb8
CD
12402002-02-11 Chris Demetriou <cgd@broadcom.com>
1241
1242 * mips.igen: Add some additional comments about supported
1243 models, and about which instructions go where.
1244 (BC1b, MFC0, MTC0, RFE): Sort supported models in the same
1245 order as is used in the rest of the file.
1246
9805e229
CD
12472002-02-11 Chris Demetriou <cgd@broadcom.com>
1248
1249 * mips.igen (ADD, ADDI, DADDI, DSUB, SUB): Add comment
1250 indicating that ALU32_END or ALU64_END are there to check
1251 for overflow.
1252 (DADD): Likewise, but also remove previous comment about
1253 overflow checking.
1254
f701dad2
CD
12552002-02-10 Chris Demetriou <cgd@broadcom.com>
1256
1257 * mips.igen (DDIV, DIV, DIVU, DMULT, DMULTU, DSLL, DSLL32,
1258 DSLLV, DSRA, DSRA32, DSRAV, DSRL, DSRL32, DSRLV, DSUB, DSUBU,
1259 JALR, JR, MOVN, MOVZ, MTLO, MULT, MULTU, SLL, SLLV, SLT, SLTU,
1260 SRAV, SRLV, SUB, SUBU, SYNC, XOR, MOVtf, DI, DMFC0, DMTC0, EI,
1261 ERET, RFE, TLBP, TLBR, TLBWI, TLBWR): Tweak instruction opcode
1262 fields (i.e., add and move commas) so that they more closely
1263 match the MIPS ISA documentation opcode partitioning.
1264
12652002-02-10 Chris Demetriou <cgd@broadcom.com>
20ae0098
CD
1266
1267 * mips.igen (ADDI): Print immediate value.
1268 (BREAK): Print code.
1269 (DADDIU, DSRAV, DSRLV): Print correct instruction name.
1270 (SLL): Print "nop" specially, and don't run the code
1271 that does the shift for the "nop" case.
1272
9e52972e
FF
12732001-11-17 Fred Fish <fnf@redhat.com>
1274
1275 * sim-main.h (float_operation): Move enum declaration outside
1276 of _sim_cpu struct declaration.
1277
c0efbca4
JB
12782001-04-12 Jim Blandy <jimb@redhat.com>
1279
1280 * mips.igen (CFC1, CTC1): Pass the correct register numbers to
1281 PENDING_FILL. Use PENDING_SCHED directly to handle the pending
1282 set of the FCSR.
1283 * sim-main.h (COCIDX): Remove definition; this isn't supported by
1284 PENDING_FILL, and you can get the intended effect gracefully by
1285 calling PENDING_SCHED directly.
1286
fb891446
BE
12872001-02-23 Ben Elliston <bje@redhat.com>
1288
1289 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Only define if not
1290 already defined elsewhere.
1291
8030f857
BE
12922001-02-19 Ben Elliston <bje@redhat.com>
1293
1294 * sim-main.h (sim_monitor): Return an int.
1295 * interp.c (sim_monitor): Add return values.
1296 (signal_exception): Handle error conditions from sim_monitor.
1297
56b48a7a
CD
12982001-02-08 Ben Elliston <bje@redhat.com>
1299
1300 * sim-main.c (load_memory): Pass cia to sim_core_read* functions.
1301 (store_memory): Likewise, pass cia to sim_core_write*.
1302
d3ee60d9
FCE
13032000-10-19 Frank Ch. Eigler <fche@redhat.com>
1304
1305 On advice from Chris G. Demetriou <cgd@sibyte.com>:
1306 * sim-main.h (GPR_CLEAR): Remove unused alternative macro.
1307
071da002
AC
1308Thu Jul 27 22:02:05 2000 Andrew Cagney <cagney@b1.cygnus.com>
1309
1310 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
1311 * Makefile.in: Don't delete *.igen when cleaning directory.
1312
a28c02cd
AC
1313Wed Jul 19 18:50:51 2000 Andrew Cagney <cagney@b1.cygnus.com>
1314
1315 * m16.igen (break): Call SignalException not sim_engine_halt.
1316
80ee11fa
AC
1317Mon Jul 3 11:13:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
1318
1319 From Jason Eckhardt:
1320 * mips.igen (MOVZ.fmt, MOVN.fmt): Move conditional on GPR[RT].
1321
673388c0
AC
1322Tue Jun 13 20:52:07 2000 Andrew Cagney <cagney@b1.cygnus.com>
1323
1324 * mips.igen (MxC1, DMxC1): Fix printf formatting.
1325
4c0deff4
NC
13262000-05-24 Michael Hayes <mhayes@cygnus.com>
1327
1328 * mips.igen (do_dmultx): Fix typo.
1329
eb2d80b4
AC
1330Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
1331
1332 * configure: Regenerated to track ../common/aclocal.m4 changes.
1333
dd37a34b
AC
1334Fri Apr 28 20:48:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
1335
1336 * mips.igen (DMxC1): Fix format arguments for sim_io_eprintf call.
1337
4c0deff4
NC
13382000-04-12 Frank Ch. Eigler <fche@redhat.com>
1339
1340 * sim-main.h (GPR_CLEAR): Define macro.
1341
e30db738
AC
1342Mon Apr 10 00:07:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
1343
1344 * interp.c (decode_coproc): Output long using %lx and not %s.
1345
cb7450ea
FCE
13462000-03-21 Frank Ch. Eigler <fche@redhat.com>
1347
1348 * interp.c (sim_open): Sort & extend dummy memory regions for
1349 --board=jmr3904 for eCos.
1350
a3027dd7
FCE
13512000-03-02 Frank Ch. Eigler <fche@redhat.com>
1352
1353 * configure: Regenerated.
1354
1355Tue Feb 8 18:35:01 2000 Donald Lindsay <dlindsay@hound.cygnus.com>
1356
1357 * interp.c, mips.igen: all 5 DEADC0DE situations now have sim_io_eprintf
1358 calls, conditional on the simulator being in verbose mode.
1359
dfcd3bfb
JM
1360Fri Feb 4 09:45:15 2000 Donald Lindsay <dlindsay@cygnus.com>
1361
1362 * sim-main.c (cache_op): Added case arm so that CACHE ops to a secondary
1363 cache don't get ReservedInstruction traps.
1364
c2d11a7d
JM
13651999-11-29 Mark Salter <msalter@cygnus.com>
1366
1367 * dv-tx3904sio.c (tx3904sio_io_write_buffer): Use write value as a mask
1368 to clear status bits in sdisr register. This is how the hardware works.
1369
1370 * interp.c (sim_open): Added more memory aliases for jmr3904 hardware
1371 being used by cygmon.
1372
4ce44c66
JM
13731999-11-11 Andrew Haley <aph@cygnus.com>
1374
1375 * interp.c (decode_coproc): Correctly handle DMFC0 and DMTC0
1376 instructions.
1377
cff3e48b
JM
1378Thu Sep 9 15:12:08 1999 Geoffrey Keating <geoffk@cygnus.com>
1379
1380 * mips.igen (MULT): Correct previous mis-applied patch.
1381
d4f3574e
SS
1382Tue Sep 7 13:34:54 1999 Geoffrey Keating <geoffk@cygnus.com>
1383
1384 * mips.igen (delayslot32): Handle sequence like
1385 mtc1 $at,$f12 ; jal fp_add ; mov.s $f13,$f12
1386 correctly by calling ENGINE_ISSUE_PREFIX_HOOK() before issue.
1387 (MULT): Actually pass the third register...
1388
13891999-09-03 Mark Salter <msalter@cygnus.com>
1390
1391 * interp.c (sim_open): Added more memory aliases for additional
1392 hardware being touched by cygmon on jmr3904 board.
1393
1394Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1395
1396 * configure: Regenerated to track ../common/aclocal.m4 changes.
1397
a0b3c4fd
JM
1398Tue Jul 27 16:36:51 1999 Andrew Cagney <cagney@amy.cygnus.com>
1399
1400 * interp.c (sim_store_register): Handle case where client - GDB -
1401 specifies that a 4 byte register is 8 bytes in size.
1402 (sim_fetch_register): Ditto.
1403
adf40b2e
JM
14041999-07-14 Frank Ch. Eigler <fche@cygnus.com>
1405
1406 Implement "sim firmware" option, inspired by jimb's version of 1998-01.
1407 * interp.c (firmware_option_p): New global flag: "sim firmware" given.
1408 (idt_monitor_base): Base address for IDT monitor traps.
1409 (pmon_monitor_base): Ditto for PMON.
1410 (lsipmon_monitor_base): Ditto for LSI PMON.
1411 (MONITOR_BASE, MONITOR_SIZE): Removed macros.
1412 (mips_option): Add "firmware" option with new OPTION_FIRMWARE key.
1413 (sim_firmware_command): New function.
1414 (mips_option_handler): Call it for OPTION_FIRMWARE.
1415 (sim_open): Allocate memory for idt_monitor region. If "--board"
1416 option was given, add no monitor by default. Add BREAK hooks only if
1417 monitors are also there.
1418
43e526b9
JM
1419Mon Jul 12 00:02:27 1999 Andrew Cagney <cagney@amy.cygnus.com>
1420
1421 * interp.c (sim_monitor): Flush output before reading input.
1422
1423Sun Jul 11 19:28:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
1424
1425 * tconfig.in (SIM_HANDLES_LMA): Always define.
1426
1427Thu Jul 8 16:06:59 1999 Andrew Cagney <cagney@b1.cygnus.com>
1428
1429 From Mark Salter <msalter@cygnus.com>:
1430 * interp.c (BOARD_BSP): Define. Add to list of possible boards.
1431 (sim_open): Add setup for BSP board.
1432
9846de1b
JM
1433Wed Jul 7 12:45:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1434
1435 * mips.igen (MULT, MULTU): Add syntax for two operand version.
1436 (DMFC0, DMTC0): Recognize. Call DecodeCoproc which will report
1437 them as unimplemented.
1438
cd0fc7c3
SS
14391999-05-08 Felix Lee <flee@cygnus.com>
1440
1441 * configure: Regenerated to track ../common/aclocal.m4 changes.
1442
7a292a7a
SS
14431999-04-21 Frank Ch. Eigler <fche@cygnus.com>
1444
1445 * mips.igen (bc0f): For the TX39 only, decode this as a no-op stub.
1446
1447Thu Apr 15 14:15:17 1999 Andrew Cagney <cagney@amy.cygnus.com>
1448
1449 * configure.in: Any mips64vr5*-*-* target should have
1450 -DTARGET_ENABLE_FR=1.
1451 (default_endian): Any mips64vr*el-*-* target should default to
1452 LITTLE_ENDIAN.
1453 * configure: Re-generate.
1454
14551999-02-19 Gavin Romig-Koch <gavin@cygnus.com>
1456
1457 * mips.igen (ldl): Extend from _16_, not 32.
1458
1459Wed Jan 27 18:51:38 1999 Andrew Cagney <cagney@chook.cygnus.com>
1460
1461 * interp.c (sim_store_register): Force registers written to by GDB
1462 into an un-interpreted state.
1463
c906108c
SS
14641999-02-05 Frank Ch. Eigler <fche@cygnus.com>
1465
1466 * dv-tx3904sio.c (tx3904sio_tickle): After a polled I/O from the
1467 CPU, start periodic background I/O polls.
1468 (tx3904sio_poll): New function: periodic I/O poller.
1469
14701998-12-30 Frank Ch. Eigler <fche@cygnus.com>
1471
1472 * mips.igen (BREAK): Call signal_exception instead of sim_engine_halt.
1473
1474Tue Dec 29 16:03:53 1998 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1475
1476 * configure.in, configure (mips64vr5*-*-*): Added missing ;; in
1477 case statement.
1478
14791998-12-29 Frank Ch. Eigler <fche@cygnus.com>
1480
1481 * interp.c (sim_open): Allocate jm3904 memory in smaller chunks.
1482 (load_word): Call SIM_CORE_SIGNAL hook on error.
1483 (signal_exception): Call SIM_CPU_EXCEPTION_TRIGGER hook before
1484 starting. For exception dispatching, pass PC instead of NULL_CIA.
1485 (decode_coproc): Use COP0_BADVADDR to store faulting address.
1486 * sim-main.h (COP0_BADVADDR): Define.
1487 (SIM_CORE_SIGNAL): Define hook to call mips_core_signal.
1488 (SIM_CPU_EXCEPTION*): Define hooks to call mips_cpu_exception*().
1489 (_sim_cpu): Add exc_* fields to store register value snapshots.
1490 * mips.igen (*): Replace memory-related SignalException* calls
1491 with references to SIM_CORE_SIGNAL hook.
1492
1493 * dv-tx3904irc.c (tx3904irc_port_event): printf format warning
1494 fix.
1495 * sim-main.c (*): Minor warning cleanups.
1496
14971998-12-24 Gavin Romig-Koch <gavin@cygnus.com>
1498
1499 * m16.igen (DADDIU5): Correct type-o.
1500
1501Mon Dec 21 10:34:48 1998 Andrew Cagney <cagney@chook>
1502
1503 * mips.igen (do_ddiv, do_ddivu): Pacify GCC. Update hi/lo via tmp
1504 variables.
1505
1506Wed Dec 16 18:20:28 1998 Andrew Cagney <cagney@chook>
1507
1508 * Makefile.in (SIM_EXTRA_CFLAGS): No longer need to add .../newlib
1509 to include path.
1510 (interp.o): Add dependency on itable.h
1511 (oengine.c, gencode): Delete remaining references.
1512 (BUILT_SRC_FROM_GEN): Clean up.
1513
15141998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
1515
1516 * vr4run.c: New.
1517 * Makefile.in (SIM_HACK_OBJ,HACK_OBJS,HACK_GEN_SRCS,libhack.a,
1518 tmp-hack,tmp-m32-hack,tmp-m16-hack,tmp-itable-hack,
1519 tmp-run-hack) : New.
1520 * m16.igen (LD,DADDIU,DADDUI5,DADJSP,DADDIUSP,DADDI,DADDU,DSUBU,
1521 DSLL,DSRL,DSRA,DSLLV,DSRAV,DMULT,DMULTU,DDIV,DDIVU,JALX32,JALX):
1522 Drop the "64" qualifier to get the HACK generator working.
1523 Use IMMEDIATE rather than IMMED. Use SHAMT rather than SHIFT.
1524 * mips.igen (do_daddiu,do_ddiv,do_divu): Remove the 64-only
1525 qualifier to get the hack generator working.
1526 (do_dsll,do_dsllv,do_dsra,do_dsrl,do_dsrlv): New.
1527 (DSLL): Use do_dsll.
1528 (DSLLV): Use do_dsllv.
1529 (DSRA): Use do_dsra.
1530 (DSRL): Use do_dsrl.
1531 (DSRLV): Use do_dsrlv.
1532 (BC1): Move *vr4100 to get the HACK generator working.
1533 (CxC1, DMxC1, MxC1,MACCU,MACCHI,MACCHIU): Rename to
1534 get the HACK generator working.
1535 (MACC) Rename to get the HACK generator working.
1536 (DMACC,MACCS,DMACCS): Add the 64.
1537
15381998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
1539
1540 * mips.igen (BC1): Renamed to BC1a and BC1b to avoid conflicts.
1541 * sim-main.h (SizeFGR): Handle TARGET_ENABLE_FR.
1542
15431998-12-11 Gavin Romig-Koch <gavin@cygnus.com>
1544
1545 * mips/interp.c (DEBUG): Cleanups.
1546
15471998-12-10 Frank Ch. Eigler <fche@cygnus.com>
1548
1549 * dv-tx3904sio.c (tx3904sio_io_read_buffer): Endianness fixes.
1550 (tx3904sio_tickle): fflush after a stdout character output.
1551
15521998-12-03 Frank Ch. Eigler <fche@cygnus.com>
1553
1554 * interp.c (sim_close): Uninstall modules.
1555
1556Wed Nov 25 13:41:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
1557
1558 * sim-main.h, interp.c (sim_monitor): Change to global
1559 function.
1560
1561Wed Nov 25 17:33:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
1562
1563 * configure.in (vr4100): Only include vr4100 instructions in
1564 simulator.
1565 * configure: Re-generate.
1566 * m16.igen (*): Tag all mips16 instructions as also being vr4100.
1567
1568Mon Nov 23 18:20:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
1569
1570 * Makefile.in (SIM_CFLAGS): Do not define WITH_IGEN.
1571 * sim-main.h, sim-main.c, interp.c: Delete #if WITH_IGEN keeping
1572 true alternative.
1573
1574 * configure.in (sim_default_gen, sim_use_gen): Replace with
1575 sim_gen.
1576 (--enable-sim-igen): Delete config option. Always using IGEN.
1577 * configure: Re-generate.
1578
1579 * Makefile.in (gencode): Kill, kill, kill.
1580 * gencode.c: Ditto.
1581
1582Mon Nov 23 18:07:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
1583
1584 * configure.in: Configure mips64vr4100-elf nee mips64vr41* as a 64
1585 bit mips16 igen simulator.
1586 * configure: Re-generate.
1587
1588 * mips.igen (check_div_hilo, check_mult_hilo, check_mf_hilo): Mark
1589 as part of vr4100 ISA.
1590 * vr.igen: Mark all instructions as 64 bit only.
1591
1592Mon Nov 23 17:07:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
1593
1594 * interp.c (get_cell, sim_monitor, fetch_str, CoProcPresent):
1595 Pacify GCC.
1596
1597Mon Nov 23 13:23:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
1598
1599 * configure.in: Configure mips-lsi-elf nee mips*lsi* as a
1600 mipsIII/mips16 igen simulator. Fix sim_gen VS sim_igen typos.
1601 * configure: Re-generate.
1602
1603 * m16.igen (BREAK): Define breakpoint instruction.
1604 (JALX32): Mark instruction as mips16 and not r3900.
1605 * mips.igen (C.cond.fmt): Fix typo in instruction format.
1606
1607 * sim-main.h (PENDING_FILL): Wrap C statements in do/while.
1608
1609Sat Nov 7 09:54:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
1610
1611 * gencode.c (build_instruction - BREAK): For MIPS16, handle BREAK
1612 insn as a debug breakpoint.
1613
1614 * sim-main.h (PENDING_SLOT_BIT): Fix, was incorrectly defined as
1615 pending.slot_size.
1616 (PENDING_SCHED): Clean up trace statement.
1617 (PENDING_SCHED): Increment PENDING_IN and PENDING_TOTAL.
1618 (PENDING_FILL): Delay write by only one cycle.
1619 (PENDING_FILL): For FSRs, write fmt_uninterpreted to FPR_STATE.
1620
1621 * sim-main.c (pending_tick): Clean up trace statements. Add trace
1622 of pending writes.
1623 (pending_tick): Fix sizes in switch statements, 4 & 8 instead of
1624 32 & 64.
1625 (pending_tick): Move incrementing of index to FOR statement.
1626 (pending_tick): Only update PENDING_OUT after a write has occured.
1627
1628 * configure.in: Add explicit mips-lsi-* target. Use gencode to
1629 build simulator.
1630 * configure: Re-generate.
1631
1632 * interp.c (sim_engine_run OLD): Delete explicit call to
1633 PENDING_TICK. Now called via ENGINE_ISSUE_PREFIX_HOOK.
1634
1635Sat Oct 30 09:49:10 1998 Frank Ch. Eigler <fche@cygnus.com>
1636
1637 * dv-tx3904cpu.c (deliver_tx3904cpu_interrupt): Add dummy
1638 interrupt level number to match changed SignalExceptionInterrupt
1639 macro.
1640
1641Fri Oct 9 18:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
1642
1643 * interp.c: #include "itable.h" if WITH_IGEN.
1644 (get_insn_name): New function.
1645 (sim_open): Initialize CPU_INSN_NAME,CPU_MAX_INSNS.
1646 * sim-main.h (MAX_INSNS,INSN_NAME): Delete.
1647
1648Mon Sep 14 12:36:44 1998 Frank Ch. Eigler <fche@cygnus.com>
1649
1650 * configure: Rebuilt to inhale new common/aclocal.m4.
1651
1652Tue Sep 1 15:39:18 1998 Frank Ch. Eigler <fche@cygnus.com>
1653
1654 * dv-tx3904sio.c: Include sim-assert.h.
1655
1656Tue Aug 25 12:49:46 1998 Frank Ch. Eigler <fche@cygnus.com>
1657
1658 * dv-tx3904sio.c: New file: tx3904 serial I/O module.
1659 * configure.in: Add dv-tx3904sio, dv-sockser for tx39 target.
1660 Reorganize target-specific sim-hardware checks.
1661 * configure: rebuilt.
1662 * interp.c (sim_open): For tx39 target boards, set
1663 OPERATING_ENVIRONMENT, add tx3904sio devices.
1664 * tconfig.in: For tx39 target, set SIM_HANDLES_LMA for loading
1665 ROM executables. Install dv-sockser into sim-modules list.
1666
1667 * dv-tx3904irc.c: Compiler warning clean-up.
1668 * dv-tx3904tmr.c: Compiler warning clean-up. Remove particularly
1669 frequent hw-trace messages.
1670
1671Fri Jul 31 18:14:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
1672
1673 * vr.igen (MulAcc): Identify as a vr4100 specific function.
1674
1675Sat Jul 25 16:03:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
1676
1677 * Makefile.in (IGEN_INCLUDE): Add vr.igen.
1678
1679 * vr.igen: New file.
1680 (MAC/MADD16, DMAC/DMADD16): Implement using code from gencode.c.
1681 * mips.igen: Define vr4100 model. Include vr.igen.
1682Mon Jun 29 09:21:07 1998 Gavin Koch <gavin@cygnus.com>
1683
1684 * mips.igen (check_mf_hilo): Correct check.
1685
1686Wed Jun 17 12:20:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
1687
1688 * sim-main.h (interrupt_event): Add prototype.
1689
1690 * dv-tx3904tmr.c (tx3904tmr_io_write_buffer): Delete unused
1691 register_ptr, register_value.
1692 (deliver_tx3904tmr_tick): Fix types passed to printf fmt.
1693
1694 * sim-main.h (tracefh): Make extern.
1695
1696Tue Jun 16 14:39:00 1998 Frank Ch. Eigler <fche@cygnus.com>
1697
1698 * dv-tx3904tmr.c: Deschedule timer event after dispatching.
1699 Reduce unnecessarily high timer event frequency.
1700 * dv-tx3904cpu.c: Ditto for interrupt event.
1701
1702Wed Jun 10 13:22:32 1998 Frank Ch. Eigler <fche@cygnus.com>
1703
1704 * interp.c (decode_coproc): For TX39, add stub COP0 register #7,
1705 to allay warnings.
1706 (interrupt_event): Made non-static.
1707
1708 * dv-tx3904tmr.c (deliver_tx3904tmr_tick): Correct accidental
1709 interchange of configuration values for external vs. internal
1710 clock dividers.
1711
1712Tue Jun 9 12:46:24 1998 Ian Carmichael <iancarm@cygnus.com>
1713
1714 * mips.igen (BREAK): Moved code to here for
1715 simulator-reserved break instructions.
1716 * gencode.c (build_instruction): Ditto.
1717 * interp.c (signal_exception): Code moved from here. Non-
1718 reserved instructions now use exception vector, rather
1719 than halting sim.
1720 * sim-main.h: Moved magic constants to here.
1721
1722Tue Jun 9 12:29:50 1998 Frank Ch. Eigler <fche@cygnus.com>
1723
1724 * dv-tx3904cpu.c (deliver_*_interrupt,*_port_event): Set the CAUSE
1725 register upon non-zero interrupt event level, clear upon zero
1726 event value.
1727 * dv-tx3904irc.c (*_port_event): Handle deactivated interrupt signal
1728 by passing zero event value.
1729 (*_io_{read,write}_buffer): Endianness fixes.
1730 * dv-tx3904tmr.c (*_io_{read,write}_buffer): Endianness fixes.
1731 (deliver_*_tick): Reduce sim event interval to 75% of count interval.
1732
1733 * interp.c (sim_open): Added jmr3904pal board type that adds PAL-based
1734 serial I/O and timer module at base address 0xFFFF0000.
1735
1736Tue Jun 9 11:52:29 1998 Gavin Koch <gavin@cygnus.com>
1737
1738 * mips.igen (SWC1) : Correct the handling of ReverseEndian
1739 and BigEndianCPU.
1740
1741Tue Jun 9 11:40:57 1998 Gavin Koch <gavin@cygnus.com>
1742
1743 * configure.in (mips_fpu_bitsize) : Set this correctly for 32-bit mips
1744 parts.
1745 * configure: Update.
1746
1747Thu Jun 4 15:37:33 1998 Frank Ch. Eigler <fche@cygnus.com>
1748
1749 * dv-tx3904tmr.c: New file - implements tx3904 timer.
1750 * dv-tx3904{irc,cpu}.c: Mild reformatting.
1751 * configure.in: Include tx3904tmr in hw_device list.
1752 * configure: Rebuilt.
1753 * interp.c (sim_open): Instantiate three timer instances.
1754 Fix address typo of tx3904irc instance.
1755
1756Tue Jun 2 15:48:02 1998 Ian Carmichael <iancarm@cygnus.com>
1757
1758 * interp.c (signal_exception): SystemCall exception now uses
1759 the exception vector.
1760
1761Mon Jun 1 18:18:26 1998 Frank Ch. Eigler <fche@cygnus.com>
1762
1763 * interp.c (decode_coproc): For TX39, add stub COP0 register #3,
1764 to allay warnings.
1765
1766Fri May 29 11:40:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
1767
1768 * configure.in (sim_igen_filter): Match mips*tx39 not mipst*tx39.
1769
1770Mon May 25 20:47:45 1998 Andrew Cagney <cagney@b1.cygnus.com>
1771
1772 * dv-tx3904cpu.c, dv-tx3904irc.c: Rename *_callback to *_method.
1773
1774 * dv-tx3904cpu.c, dv-tx3904irc.c: Include hw-main.h and
1775 sim-main.h. Declare a struct hw_descriptor instead of struct
1776 hw_device_descriptor.
1777
1778Mon May 25 12:41:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
1779
1780 * mips.igen (do_store_left, do_load_left): Compute nr of left and
1781 right bits and then re-align left hand bytes to correct byte
1782 lanes. Fix incorrect computation in do_store_left when loading
1783 bytes from second word.
1784
1785Fri May 22 13:34:20 1998 Andrew Cagney <cagney@b1.cygnus.com>
1786
1787 * configure.in (SIM_AC_OPTION_HARDWARE): Only enable when tx3904.
1788 * interp.c (sim_open): Only create a device tree when HW is
1789 enabled.
1790
1791 * dv-tx3904irc.c (tx3904irc_finish): Pacify GCC.
1792 * interp.c (signal_exception): Ditto.
1793
1794Thu May 21 14:24:11 1998 Gavin Koch <gavin@cygnus.com>
1795
1796 * gencode.c: Mark BEGEZALL as LIKELY.
1797
1798Thu May 21 18:57:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
1799
1800 * sim-main.h (ALU32_END): Sign extend 32 bit results.
1801 * mips.igen (ADD, SUB, ADDI, DADD, DSUB): Trace.
1802
1803Mon May 18 18:22:42 1998 Frank Ch. Eigler <fche@cygnus.com>
1804
1805 * configure.in (SIM_AC_OPTION_HARDWARE): Added common hardware
1806 modules. Recognize TX39 target with "mips*tx39" pattern.
1807 * configure: Rebuilt.
1808 * sim-main.h (*): Added many macros defining bits in
1809 TX39 control registers.
1810 (SignalInterrupt): Send actual PC instead of NULL.
1811 (SignalNMIReset): New exception type.
1812 * interp.c (board): New variable for future use to identify
1813 a particular board being simulated.
1814 (mips_option_handler,mips_options): Added "--board" option.
1815 (interrupt_event): Send actual PC.
1816 (sim_open): Make memory layout conditional on board setting.
1817 (signal_exception): Initial implementation of hardware interrupt
1818 handling. Accept another break instruction variant for simulator
1819 exit.
1820 (decode_coproc): Implement RFE instruction for TX39.
1821 (mips.igen): Decode RFE instruction as such.
1822 * configure.in (tx3904cpu,tx3904irc): Added devices for tx3904.
1823 * interp.c: Define "jmr3904" and "jmr3904debug" board types and
1824 bbegin to implement memory map.
1825 * dv-tx3904cpu.c: New file.
1826 * dv-tx3904irc.c: New file.
1827
1828Wed May 13 14:40:11 1998 Gavin Koch <gavin@cygnus.com>
1829
1830 * mips.igen (check_mt_hilo): Create a separate r3900 version.
1831
1832Wed May 13 14:11:46 1998 Gavin Koch <gavin@cygnus.com>
1833
1834 * tx.igen (madd,maddu): Replace calls to check_op_hilo
1835 with calls to check_div_hilo.
1836
1837Wed May 13 09:59:27 1998 Gavin Koch <gavin@cygnus.com>
1838
1839 * mips/mips.igen (check_op_hilo,check_mult_hilo,check_div_hilo):
1840 Replace check_op_hilo with check_mult_hilo and check_div_hilo.
1841 Add special r3900 version of do_mult_hilo.
1842 (do_dmultx,do_mult,do_multu): Replace calls to check_op_hilo
1843 with calls to check_mult_hilo.
1844 (do_ddiv,do_ddivu,do_div,do_divu): Replace calls to check_op_hilo
1845 with calls to check_div_hilo.
1846
1847Tue May 12 15:22:11 1998 Andrew Cagney <cagney@b1.cygnus.com>
1848
1849 * configure.in (SUBTARGET_R3900): Define for mipstx39 target.
1850 Document a replacement.
1851
1852Fri May 8 17:48:19 1998 Ian Carmichael <iancarm@cygnus.com>
1853
1854 * interp.c (sim_monitor): Make mon_printf work.
1855
1856Wed May 6 19:42:19 1998 Doug Evans <devans@canuck.cygnus.com>
1857
1858 * sim-main.h (INSN_NAME): New arg `cpu'.
1859
1860Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
1861
1862 * configure: Regenerated to track ../common/aclocal.m4 changes.
1863
1864Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
1865
1866 * configure: Regenerated to track ../common/aclocal.m4 changes.
1867 * config.in: Ditto.
1868
1869Sun Apr 26 15:20:01 1998 Tom Tromey <tromey@cygnus.com>
1870
1871 * acconfig.h: New file.
1872 * configure.in: Reverted change of Apr 24; use sinclude again.
1873
1874Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
1875
1876 * configure: Regenerated to track ../common/aclocal.m4 changes.
1877 * config.in: Ditto.
1878
1879Fri Apr 24 11:19:20 1998 Tom Tromey <tromey@cygnus.com>
1880
1881 * configure.in: Don't call sinclude.
1882
1883Fri Apr 24 11:35:01 1998 Andrew Cagney <cagney@chook.cygnus.com>
1884
1885 * mips.igen (do_store_left): Pass 0 not NULL to store_memory.
1886
1887Tue Apr 21 11:59:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
1888
1889 * mips.igen (ERET): Implement.
1890
1891 * interp.c (decode_coproc): Return sign-extended EPC.
1892
1893 * mips.igen (ANDI, LUI, MFC0): Add tracing code.
1894
1895 * interp.c (signal_exception): Do not ignore Trap.
1896 (signal_exception): On TRAP, restart at exception address.
1897 (HALT_INSTRUCTION, HALT_INSTRUCTION_MASK): Define.
1898 (signal_exception): Update.
1899 (sim_open): Patch V_COMMON interrupt vector with an abort sequence
1900 so that TRAP instructions are caught.
1901
1902Mon Apr 20 11:26:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
1903
1904 * sim-main.h (struct hilo_access, struct hilo_history): Define,
1905 contains HI/LO access history.
1906 (struct _sim_cpu): Make hiaccess and loaccess of type hilo_access.
1907 (HIACCESS, LOACCESS): Delete, replace with
1908 (HIHISTORY, LOHISTORY): New macros.
1909 (CHECKHILO): Delete all, moved to mips.igen
1910
1911 * gencode.c (build_instruction): Do not generate checks for
1912 correct HI/LO register usage.
1913
1914 * interp.c (old_engine_run): Delete checks for correct HI/LO
1915 register usage.
1916
1917 * mips.igen (check_mt_hilo, check_mf_hilo, check_op_hilo,
1918 check_mf_cycles): New functions.
1919 (do_mfhi, do_mflo, "mthi", "mtlo", do_ddiv, do_ddivu, do_div,
1920 do_divu, domultx, do_mult, do_multu): Use.
1921
1922 * tx.igen ("madd", "maddu"): Use.
1923
1924Wed Apr 15 18:31:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
1925
1926 * mips.igen (DSRAV): Use function do_dsrav.
1927 (SRAV): Use new function do_srav.
1928
1929 * m16.igen (BEQZ, BNEZ): Compare GPR[TRX] not GPR[RX].
1930 (B): Sign extend 11 bit immediate.
1931 (EXT-B*): Shift 16 bit immediate left by 1.
1932 (ADDIU*): Don't sign extend immediate value.
1933
1934Wed Apr 15 10:32:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
1935
1936 * m16run.c (sim_engine_run): Restore CIA after handling an event.
1937
1938 * sim-main.h (DELAY_SLOT, NULLIFY_NEXT_INSTRUCTION): For IGEN, use
1939 functions.
1940
1941 * mips.igen (delayslot32, nullify_next_insn): New functions.
1942 (m16.igen): Always include.
1943 (do_*): Add more tracing.
1944
1945 * m16.igen (delayslot16): Add NIA argument, could be called by a
1946 32 bit MIPS16 instruction.
1947
1948 * interp.c (ifetch16): Move function from here.
1949 * sim-main.c (ifetch16): To here.
1950
1951 * sim-main.c (ifetch16, ifetch32): Update to match current
1952 implementations of LH, LW.
1953 (signal_exception): Don't print out incorrect hex value of illegal
1954 instruction.
1955
1956Wed Apr 15 00:17:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
1957
1958 * m16run.c (sim_engine_run): Use IMEM16 and IMEM32 to fetch an
1959 instruction.
1960
1961 * m16.igen: Implement MIPS16 instructions.
1962
1963 * mips.igen (do_addiu, do_addu, do_and, do_daddiu, do_daddu,
1964 do_ddiv, do_ddivu, do_div, do_divu, do_dmultx, do_dmultu, do_srav,
1965 do_dsubu, do_mfhi, do_mflo, do_mult, do_multu, do_nor, do_or,
1966 do_sll, do_sllv, do_slt, do_slti, do_sltiu, do_sltu, do_sra,
1967 do_srl, do_srlv, do_subu, do_xor, do_xori): New functions. Move
1968 bodies of corresponding code from 32 bit insn to these. Also used
1969 by MIPS16 versions of functions.
1970
1971 * sim-main.h (RAIDX, T8IDX, T8, SPIDX): Define.
1972 (IMEM16): Drop NR argument from macro.
1973
1974Sat Apr 4 22:39:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
1975
1976 * Makefile.in (SIM_OBJS): Add sim-main.o.
1977
1978 * sim-main.h (address_translation, load_memory, store_memory,
1979 cache_op, sync_operation, prefetch, ifetch32, pending_tick): Mark
1980 as INLINE_SIM_MAIN.
1981 (pr_addr, pr_uword64): Declare.
1982 (sim-main.c): Include when H_REVEALS_MODULE_P.
1983
1984 * interp.c (address_translation, load_memory, store_memory,
1985 cache_op, sync_operation, prefetch, ifetch32, pending_tick): Move
1986 from here.
1987 * sim-main.c: To here. Fix compilation problems.
1988
1989 * configure.in: Enable inlining.
1990 * configure: Re-config.
1991
1992Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
1993
1994 * configure: Regenerated to track ../common/aclocal.m4 changes.
1995
1996Fri Apr 3 04:32:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
1997
1998 * mips.igen: Include tx.igen.
1999 * Makefile.in (IGEN_INCLUDE): Add tx.igen.
2000 * tx.igen: New file, contains MADD and MADDU.
2001
2002 * interp.c (load_memory): When shifting bytes, use LOADDRMASK not
2003 the hardwired constant `7'.
2004 (store_memory): Ditto.
2005 (LOADDRMASK): Move definition to sim-main.h.
2006
2007 mips.igen (MTC0): Enable for r3900.
2008 (ADDU): Add trace.
2009
2010 mips.igen (do_load_byte): Delete.
2011 (do_load, do_store, do_load_left, do_load_write, do_store_left,
2012 do_store_right): New functions.
2013 (SW*, LW*, SD*, LD*, SH, LH, SB, LB): Use.
2014
2015 configure.in: Let the tx39 use igen again.
2016 configure: Update.
2017
2018Thu Apr 2 10:59:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
2019
2020 * interp.c (sim_monitor): get_mem_info returns a 4 byte quantity,
2021 not an address sized quantity. Return zero for cache sizes.
2022
2023Wed Apr 1 23:47:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
2024
2025 * mips.igen (r3900): r3900 does not support 64 bit integer
2026 operations.
2027
2028Mon Mar 30 14:46:05 1998 Gavin Koch <gavin@cygnus.com>
2029
2030 * configure.in (mipstx39*-*-*): Use gencode simulator rather
2031 than igen one.
2032 * configure : Rebuild.
2033
2034Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
2035
2036 * configure: Regenerated to track ../common/aclocal.m4 changes.
2037
2038Fri Mar 27 15:01:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
2039
2040 * interp.c (mips_option_handler): Iterate over MAX_NR_PROCESSORS.
2041
2042Wed Mar 25 16:44:27 1998 Ian Carmichael <iancarm@cygnus.com>
2043
2044 * configure: Regenerated to track ../common/aclocal.m4 changes.
2045 * config.in: Regenerated to track ../common/aclocal.m4 changes.
2046
2047Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
2048
2049 * configure: Regenerated to track ../common/aclocal.m4 changes.
2050
2051Wed Mar 25 10:05:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
2052
2053 * interp.c (Max, Min): Comment out functions. Not yet used.
2054
2055Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
2056
2057 * configure: Regenerated to track ../common/aclocal.m4 changes.
2058
2059Tue Mar 17 19:05:20 1998 Frank Ch. Eigler <fche@cygnus.com>
2060
2061 * Makefile.in (MIPS_EXTRA_LIBS, SIM_EXTRA_LIBS): Added
2062 configurable settings for stand-alone simulator.
2063
2064 * configure.in: Added X11 search, just in case.
2065
2066 * configure: Regenerated.
2067
2068Wed Mar 11 14:09:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
2069
2070 * interp.c (sim_write, sim_read, load_memory, store_memory):
2071 Replace sim_core_*_map with read_map, write_map, exec_map resp.
2072
2073Tue Mar 3 13:58:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
2074
2075 * sim-main.h (GETFCC): Return an unsigned value.
2076
2077Tue Mar 3 13:21:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
2078
2079 * mips.igen (DIV): Fix check for -1 / MIN_INT.
2080 (DADD): Result destination is RD not RT.
2081
2082Fri Feb 27 13:49:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
2083
2084 * sim-main.h (HIACCESS, LOACCESS): Always define.
2085
2086 * mdmx.igen (Maxi, Mini): Rename Max, Min.
2087
2088 * interp.c (sim_info): Delete.
2089
2090Fri Feb 27 18:41:01 1998 Doug Evans <devans@canuck.cygnus.com>
2091
2092 * interp.c (DECLARE_OPTION_HANDLER): Use it.
2093 (mips_option_handler): New argument `cpu'.
2094 (sim_open): Update call to sim_add_option_table.
2095
2096Wed Feb 25 18:56:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
2097
2098 * mips.igen (CxC1): Add tracing.
2099
2100Fri Feb 20 17:43:21 1998 Andrew Cagney <cagney@b1.cygnus.com>
2101
2102 * sim-main.h (Max, Min): Declare.
2103
2104 * interp.c (Max, Min): New functions.
2105
2106 * mips.igen (BC1): Add tracing.
2107
2108Thu Feb 19 14:50:00 1998 John Metzler <jmetzler@cygnus.com>
2109
2110 * interp.c Added memory map for stack in vr4100
2111
2112Thu Feb 19 10:21:21 1998 Gavin Koch <gavin@cygnus.com>
2113
2114 * interp.c (load_memory): Add missing "break"'s.
2115
2116Tue Feb 17 12:45:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
2117
2118 * interp.c (sim_store_register, sim_fetch_register): Pass in
2119 length parameter. Return -1.
2120
2121Tue Feb 10 11:57:40 1998 Ian Carmichael <iancarm@cygnus.com>
2122
2123 * interp.c: Added hardware init hook, fixed warnings.
2124
2125Sat Feb 7 17:16:20 1998 Andrew Cagney <cagney@b1.cygnus.com>
2126
2127 * Makefile.in (itable.h itable.c): Depend on SIM_@sim_gen@_ALL.
2128
2129Tue Feb 3 11:36:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
2130
2131 * interp.c (ifetch16): New function.
2132
2133 * sim-main.h (IMEM32): Rename IMEM.
2134 (IMEM16_IMMED): Define.
2135 (IMEM16): Define.
2136 (DELAY_SLOT): Update.
2137
2138 * m16run.c (sim_engine_run): New file.
2139
2140 * m16.igen: All instructions except LB.
2141 (LB): Call do_load_byte.
2142 * mips.igen (do_load_byte): New function.
2143 (LB): Call do_load_byte.
2144
2145 * mips.igen: Move spec for insn bit size and high bit from here.
2146 * Makefile.in (tmp-igen, tmp-m16): To here.
2147
2148 * m16.dc: New file, decode mips16 instructions.
2149
2150 * Makefile.in (SIM_NO_ALL): Define.
2151 (tmp-m16): Generate both 16 bit and 32 bit simulator engines.
2152
2153Tue Feb 3 11:28:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
2154
2155 * configure.in (mips_fpu_bitsize): For tx39, restrict floating
2156 point unit to 32 bit registers.
2157 * configure: Re-generate.
2158
2159Sun Feb 1 15:47:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
2160
2161 * configure.in (sim_use_gen): Make IGEN the default simulator
2162 generator for generic 32 and 64 bit mips targets.
2163 * configure: Re-generate.
2164
2165Sun Feb 1 16:52:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
2166
2167 * sim-main.h (SizeFGR): Determine from floating-point and not gpr
2168 bitsize.
2169
2170 * interp.c (sim_fetch_register, sim_store_register): Read/write
2171 FGR from correct location.
2172 (sim_open): Set size of FGR's according to
2173 WITH_TARGET_FLOATING_POINT_BITSIZE.
2174
2175 * sim-main.h (FGR): Store floating point registers in a separate
2176 array.
2177
2178Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
2179
2180 * configure: Regenerated to track ../common/aclocal.m4 changes.
2181
2182Tue Feb 3 00:10:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
2183
2184 * interp.c (ColdReset): Call PENDING_INVALIDATE.
2185
2186 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Call PENDING_TICK.
2187
2188 * interp.c (pending_tick): New function. Deliver pending writes.
2189
2190 * sim-main.h (PENDING_FILL, PENDING_TICK, PENDING_SCHED,
2191 PENDING_BIT, PENDING_INVALIDATE): Re-write pipeline code so that
2192 it can handle mixed sized quantites and single bits.
2193
2194Mon Feb 2 17:43:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
2195
2196 * interp.c (oengine.h): Do not include when building with IGEN.
2197 (sim_open): Replace GPRLEN by WITH_TARGET_WORD_BITSIZE.
2198 (sim_info): Ditto for PROCESSOR_64BIT.
2199 (sim_monitor): Replace ut_reg with unsigned_word.
2200 (*): Ditto for t_reg.
2201 (LOADDRMASK): Define.
2202 (sim_open): Remove defunct check that host FP is IEEE compliant,
2203 using software to emulate floating point.
2204 (value_fpr, ...): Always compile, was conditional on HASFPU.
2205
2206Sun Feb 1 11:15:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
2207
2208 * sim-main.h (sim_state): Make the cpu array MAX_NR_PROCESSORS in
2209 size.
2210
2211 * interp.c (SD, CPU): Define.
2212 (mips_option_handler): Set flags in each CPU.
2213 (interrupt_event): Assume CPU 0 is the one being iterrupted.
2214 (sim_close): Do not clear STATE, deleted anyway.
2215 (sim_write, sim_read): Assume CPU zero's vm should be used for
2216 data transfers.
2217 (sim_create_inferior): Set the PC for all processors.
2218 (sim_monitor, store_word, load_word, mips16_entry): Add cpu
2219 argument.
2220 (mips16_entry): Pass correct nr of args to store_word, load_word.
2221 (ColdReset): Cold reset all cpu's.
2222 (signal_exception): Pass cpu to sim_monitor & mips16_entry.
2223 (sim_monitor, load_memory, store_memory, signal_exception): Use
2224 `CPU' instead of STATE_CPU.
2225
2226
2227 * sim-main.h: Replace uses of STATE_CPU with CPU. Replace sd with
2228 SD or CPU_.
2229
2230 * sim-main.h (signal_exception): Add sim_cpu arg.
2231 (SignalException*): Pass both SD and CPU to signal_exception.
2232 * interp.c (signal_exception): Update.
2233
2234 * sim-main.h (value_fpr, store_fpr, dotrace, ifetch32), interp.c:
2235 Ditto
2236 (sync_operation, prefetch, cache_op, store_memory, load_memory,
2237 address_translation): Ditto
2238 (decode_coproc, cop_lw, cop_ld, cop_sw, cop_sd): Ditto.
2239
2240Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
2241
2242 * configure: Regenerated to track ../common/aclocal.m4 changes.
2243
2244Sat Jan 31 14:49:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
2245
2246 * interp.c (sim_engine_run): Add `nr_cpus' argument.
2247
2248 * mips.igen (model): Map processor names onto BFD name.
2249
2250 * sim-main.h (CPU_CIA): Delete.
2251 (SET_CIA, GET_CIA): Define
2252
2253Wed Jan 21 16:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
2254
2255 * sim-main.h (GPR_SET): Define, used by igen when zeroing a
2256 regiser.
2257
2258 * configure.in (default_endian): Configure a big-endian simulator
2259 by default.
2260 * configure: Re-generate.
2261
2262Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
2263
2264 * configure: Regenerated to track ../common/aclocal.m4 changes.
2265
2266Mon Jan 5 20:38:54 1998 Mark Alexander <marka@cygnus.com>
2267
2268 * interp.c (sim_monitor): Handle Densan monitor outbyte
2269 and inbyte functions.
2270
22711997-12-29 Felix Lee <flee@cygnus.com>
2272
2273 * interp.c (sim_engine_run): msvc cpp barfs on #if (a==b!=c).
2274
2275Wed Dec 17 14:48:20 1997 Jeffrey A Law (law@cygnus.com)
2276
2277 * Makefile.in (tmp-igen): Arrange for $zero to always be
2278 reset to zero after every instruction.
2279
2280Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
2281
2282 * configure: Regenerated to track ../common/aclocal.m4 changes.
2283 * config.in: Ditto.
2284
2285Wed Dec 10 17:10:45 1997 Jeffrey A Law (law@cygnus.com)
2286
2287 * mips.igen (MSUB): Fix to work like MADD.
2288 * gencode.c (MSUB): Similarly.
2289
2290Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
2291
2292 * configure: Regenerated to track ../common/aclocal.m4 changes.
2293
2294Wed Nov 26 11:00:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
2295
2296 * mips.igen (LWC1): Correct assembler - lwc1 not swc1.
2297
2298Sun Nov 23 01:45:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
2299
2300 * sim-main.h (sim-fpu.h): Include.
2301
2302 * interp.c (convert, SquareRoot, Recip, Divide, Multiply, Sub,
2303 Add, Negate, AbsoluteValue, Equal, Less, Infinity, NaN): Rewrite
2304 using host independant sim_fpu module.
2305
2306Thu Nov 20 19:56:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
2307
2308 * interp.c (signal_exception): Report internal errors with SIGABRT
2309 not SIGQUIT.
2310
2311 * sim-main.h (C0_CONFIG): New register.
2312 (signal.h): No longer include.
2313
2314 * interp.c (decode_coproc): Allow access C0_CONFIG to register.
2315
2316Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
2317
2318 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
2319
2320Fri Nov 14 11:56:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
2321
2322 * mips.igen: Tag vr5000 instructions.
2323 (ANDI): Was missing mipsIV model, fix assembler syntax.
2324 (do_c_cond_fmt): New function.
2325 (C.cond.fmt): Handle mips I-III which do not support CC field
2326 separatly.
2327 (bc1): Handle mips IV which do not have a delaed FCC separatly.
2328 (SDR): Mask paddr when BigEndianMem, not the converse as specified
2329 in IV3.2 spec.
2330 (DMULT, DMULTU): Force use of hosts 64bit multiplication. Handle
2331 vr5000 which saves LO in a GPR separatly.
2332
2333 * configure.in (enable-sim-igen): For vr5000, select vr5000
2334 specific instructions.
2335 * configure: Re-generate.
2336
2337Wed Nov 12 14:42:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
2338
2339 * Makefile.in (SIM_OBJS): Add sim-fpu module.
2340
2341 * interp.c (store_fpr), sim-main.h: Add separate fmt_uninterpreted_32 and
2342 fmt_uninterpreted_64 bit cases to switch. Convert to
2343 fmt_formatted,
2344
2345 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Define,
2346
2347 * mips.igen (SWR): Mask paddr when BigEndianMem, not the converse
2348 as specified in IV3.2 spec.
2349 (MTC1, DMTC1): Call StoreFPR to store the GPR in the FPR.
2350
2351Tue Nov 11 12:38:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
2352
2353 * mips.igen: Delay slot branches add OFFSET to NIA not CIA.
2354 (MFC0, MTC0, SWC1, LWC1, SDC1, LDC1): Implement.
2355 (MTC1, MFC1, DMTC1, DMFC1, CFC1, CTC1): Implement separate non
2356 PENDING_FILL versions of instructions. Simplify.
2357 (X): New function.
2358 (MULT, MULTU): Implement separate RD==0 and RD!=0 versions of
2359 instructions.
2360 (BEQZ, ..., SLT, SLTI, TLT, TLE, TLI, ...): Explicitly cast GPR to
2361 a signed value.
2362 (MTHI, MFHI): Disable code checking HI-LO.
2363
2364 * sim-main.h (dotrace,tracefh), interp.c: Make dotrace & tracefh
2365 global.
2366 (NULLIFY_NEXT_INSTRUCTION): Call dotrace.
2367
2368Thu Nov 6 16:36:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
2369
2370 * gencode.c (build_mips16_operands): Replace IPC with cia.
2371
2372 * interp.c (sim_monitor, signal_exception, cache_op, store_fpr,
2373 value_fpr, cop_ld, cop_lw, cop_sw, cop_sd, decode_coproc): Replace
2374 IPC to `cia'.
2375 (UndefinedResult): Replace function with macro/function
2376 combination.
2377 (sim_engine_run): Don't save PC in IPC.
2378
2379 * sim-main.h (IPC): Delete.
2380
2381
2382 * interp.c (signal_exception, store_word, load_word,
2383 address_translation, load_memory, store_memory, cache_op,
2384 prefetch, sync_operation, ifetch, value_fpr, store_fpr, convert,
2385 cop_lw, cop_ld, cop_sw, cop_sd, decode_coproc, sim_monitor): Add
2386 current instruction address - cia - argument.
2387 (sim_read, sim_write): Call address_translation directly.
2388 (sim_engine_run): Rename variable vaddr to cia.
2389 (signal_exception): Pass cia to sim_monitor
2390
2391 * sim-main.h (SignalException, LoadWord, StoreWord, CacheOp,
2392 Prefetch, SyncOperation, ValueFPR, StoreFPR, Convert, COP_LW,
2393 COP_LD, COP_SW, COP_SD, DecodeCoproc): Update.
2394
2395 * sim-main.h (SignalExceptionSimulatorFault): Delete definition.
2396 * interp.c (sim_open): Replace SignalExceptionSimulatorFault with
2397 SIM_ASSERT.
2398
2399 * interp.c (signal_exception): Pass restart address to
2400 sim_engine_restart.
2401
2402 * Makefile.in (semantics.o, engine.o, support.o, itable.o,
2403 idecode.o): Add dependency.
2404
2405 * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESUME_HOOK):
2406 Delete definitions
2407 (DELAY_SLOT): Update NIA not PC with branch address.
2408 (NULLIFY_NEXT_INSTRUCTION): Set NIA to instruction after next.
2409
2410 * mips.igen: Use CIA not PC in branch calculations.
2411 (illegal): Call SignalException.
2412 (BEQ, ADDIU): Fix assembler.
2413
2414Wed Nov 5 12:19:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
2415
2416 * m16.igen (JALX): Was missing.
2417
2418 * configure.in (enable-sim-igen): New configuration option.
2419 * configure: Re-generate.
2420
2421 * sim-main.h (MAX_INSNS, INSN_NAME): Define.
2422
2423 * interp.c (load_memory, store_memory): Delete parameter RAW.
2424 (sim_read, sim_write): Use sim_core_{read,write}_buffer directly
2425 bypassing {load,store}_memory.
2426
2427 * sim-main.h (ByteSwapMem): Delete definition.
2428
2429 * Makefile.in (SIM_OBJS): Add sim-memopt module.
2430
2431 * interp.c (sim_do_command, sim_commands): Delete mips specific
2432 commands. Handled by module sim-options.
2433
2434 * sim-main.h (SIM_HAVE_FLATMEM): Undefine, use sim-core.o module.
2435 (WITH_MODULO_MEMORY): Define.
2436
2437 * interp.c (sim_info): Delete code printing memory size.
2438
2439 * interp.c (mips_size): Nee sim_size, delete function.
2440 (power2): Delete.
2441 (monitor, monitor_base, monitor_size): Delete global variables.
2442 (sim_open, sim_close): Delete code creating monitor and other
2443 memory regions. Use sim-memopts module, via sim_do_commandf, to
2444 manage memory regions.
2445 (load_memory, store_memory): Use sim-core for memory model.
2446
2447 * interp.c (address_translation): Delete all memory map code
2448 except line forcing 32 bit addresses.
2449
2450Wed Nov 5 11:21:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
2451
2452 * sim-main.h (WITH_TRACE): Delete definition. Enables common
2453 trace options.
2454
2455 * interp.c (logfh, logfile): Delete globals.
2456 (sim_open, sim_close): Delete code opening & closing log file.
2457 (mips_option_handler): Delete -l and -n options.
2458 (OPTION mips_options): Ditto.
2459
2460 * interp.c (OPTION mips_options): Rename option trace to dinero.
2461 (mips_option_handler): Update.
2462
2463Wed Nov 5 09:35:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
2464
2465 * interp.c (fetch_str): New function.
2466 (sim_monitor): Rewrite using sim_read & sim_write.
2467 (sim_open): Check magic number.
2468 (sim_open): Write monitor vectors into memory using sim_write.
2469 (MONITOR_BASE, MONITOR_SIZE, MEM_SIZE): Define.
2470 (sim_read, sim_write): Simplify - transfer data one byte at a
2471 time.
2472 (load_memory, store_memory): Clarify meaning of parameter RAW.
2473
2474 * sim-main.h (isHOST): Defete definition.
2475 (isTARGET): Mark as depreciated.
2476 (address_translation): Delete parameter HOST.
2477
2478 * interp.c (address_translation): Delete parameter HOST.
2479
2480Wed Oct 29 11:13:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
2481
2482 * mips.igen:
2483
2484 * Makefile.in (IGEN_INCLUDE): Files included by mips.igen.
2485 (tmp-igen, tmp-m16): Depend on IGEN_INCLUDE.
2486
2487Tue Oct 28 11:06:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
2488
2489 * mips.igen: Add model filter field to records.
2490
2491Mon Oct 27 17:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
2492
2493 * Makefile.in (SIM_NO_CFLAGS): Define. Define WITH_IGEN=0.
2494
2495 interp.c (sim_engine_run): Do not compile function sim_engine_run
2496 when WITH_IGEN == 1.
2497
2498 * configure.in (sim_igen_flags, sim_m16_flags): Set according to
2499 target architecture.
2500
2501 Makefile.in (tmp-igen, tmp-m16): Drop -F and -M options to
2502 igen. Replace with configuration variables sim_igen_flags /
2503 sim_m16_flags.
2504
2505 * m16.igen: New file. Copy mips16 insns here.
2506 * mips.igen: From here.
2507
2508Mon Oct 27 13:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
2509
2510 * Makefile.in (SIM_NO_OBJ): Define, move SIM_M16_OBJ, SIM_IGEN_OBJ
2511 to top.
2512 (tmp-igen, tmp-m16): Pass -I srcdir to igen.
2513
2514Sat Oct 25 16:51:40 1997 Gavin Koch <gavin@cygnus.com>
2515
2516 * gencode.c (build_instruction): Follow sim_write's lead in using
2517 BigEndianMem instead of !ByteSwapMem.
2518
2519Fri Oct 24 17:41:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
2520
2521 * configure.in (sim_gen): Dependent on target, select type of
2522 generator. Always select old style generator.
2523
2524 configure: Re-generate.
2525
2526 Makefile.in (tmp-igen, tmp-m16, clean-m16, clean-igen): New
2527 targets.
2528 (SIM_M16_CFLAGS, SIM_M16_ALL, SIM_M16_OBJ, BUILT_SRC_FROM_M16,
2529 SIM_IGEN_CFLAGS, SIM_IGEN_ALL, SIM_IGEN_OBJ, BUILT_SRC_FROM_IGEN,
2530 IGEN_TRACE, IGEN_INSN, IGEN_DC): Define
2531 (SIM_EXTRA_CFLAGS, SIM_EXTRA_ALL, SIM_OBJS): Add member
2532 SIM_@sim_gen@_*, set by autoconf.
2533
2534Wed Oct 22 12:52:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
2535
2536 * sim-main.h (NULLIFY_NEXT_INSTRUCTION, DELAY_SLOT): Define.
2537
2538 * interp.c (ColdReset): Remove #ifdef HASFPU, check
2539 CURRENT_FLOATING_POINT instead.
2540
2541 * interp.c (ifetch32): New function. Fetch 32 bit instruction.
2542 (address_translation): Raise exception InstructionFetch when
2543 translation fails and isINSTRUCTION.
2544
2545 * interp.c (sim_open, sim_write, sim_monitor, store_word,
2546 sim_engine_run): Change type of of vaddr and paddr to
2547 address_word.
2548 (address_translation, prefetch, load_memory, store_memory,
2549 cache_op): Change type of vAddr and pAddr to address_word.
2550
2551 * gencode.c (build_instruction): Change type of vaddr and paddr to
2552 address_word.
2553
2554Mon Oct 20 15:29:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
2555
2556 * sim-main.h (ALU64_END, ALU32_END): Use ALU*_OVERFLOW_RESULT
2557 macro to obtain result of ALU op.
2558
2559Tue Oct 21 17:39:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
2560
2561 * interp.c (sim_info): Call profile_print.
2562
2563Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
2564
2565 * Makefile.in (SIM_OBJS): Add sim-profile.o module.
2566
2567 * sim-main.h (WITH_PROFILE): Do not define, defined in
2568 common/sim-config.h. Use sim-profile module.
2569 (simPROFILE): Delete defintion.
2570
2571 * interp.c (PROFILE): Delete definition.
2572 (mips_option_handler): Delete 'p', 'y' and 'x' profile options.
2573 (sim_close): Delete code writing profile histogram.
2574 (mips_set_profile, mips_set_profile_size, writeout16, writeout32):
2575 Delete.
2576 (sim_engine_run): Delete code profiling the PC.
2577
2578Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
2579
2580 * sim-main.h (SIGNEXTEND): Force type of result to unsigned_word.
2581
2582 * interp.c (sim_monitor): Make register pointers of type
2583 unsigned_word*.
2584
2585 * sim-main.h: Make registers of type unsigned_word not
2586 signed_word.
2587
2588Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
2589
2590 * interp.c (sync_operation): Rename from SyncOperation, make
2591 global, add SD argument.
2592 (prefetch): Rename from Prefetch, make global, add SD argument.
2593 (decode_coproc): Make global.
2594
2595 * sim-main.h (SyncOperation, DecodeCoproc, Pefetch): Define.
2596
2597 * gencode.c (build_instruction): Generate DecodeCoproc not
2598 decode_coproc calls.
2599
2600 * interp.c (SETFCC, GETFCC, PREVCOC1): Move to sim-main.h
2601 (SizeFGR): Move to sim-main.h
2602 (simHALTEX, simHALTIN, simTRACE, simPROFILE, simDELAYSLOT,
2603 simSIGINT, simJALDELAYSLOT): Move to sim-main.h
2604 (FP_FLAGS, FP_ENABLE, FP_CAUSE, IR, UF, OF, DZ, IO, UO): Move to
2605 sim-main.h.
2606 (FP_FS, FP_MASK_RM, FP_SH_RM, FP_RM_NEAREST, FP_RM_TOPINF,
2607 FP_RM_TOMINF, GETRM): Move to sim-main.h.
2608 (Uncached, CachedNoncoherent, CachedCoherent, Cached,
2609 isINSTRUCTION, ..., AccessLength_BYTE, ...): Move to sim-main.h.
2610 (UserMode, BigEndianMem, ByteSwapMem, ReverseEndian,
2611 BigEndianCPU, status_KSU_mask, ...). Moved to sim-main.h
2612
2613 * sim-main.h (ALU32_END, ALU64_END): Define. When overflow raise
2614 exception.
2615 (sim-alu.h): Include.
2616 (NULLIFY_NIA, NULL_CIA, CPU_CIA): Define.
2617 (sim_cia): Typedef to instruction_address.
2618
2619Thu Oct 16 10:31:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
2620
2621 * Makefile.in (interp.o): Rename generated file engine.c to
2622 oengine.c.
2623
2624 * interp.c: Update.
2625
2626Thu Oct 16 10:31:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
2627
2628 * gencode.c (build_instruction): Use FPR_STATE not fpr_state.
2629
2630Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
2631
2632 * gencode.c (build_instruction): For "FPSQRT", output correct
2633 number of arguments to Recip.
2634
2635Tue Oct 14 17:38:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
2636
2637 * Makefile.in (interp.o): Depends on sim-main.h
2638
2639 * interp.c (mips16_entry, ColdReset,dotrace): Add SD argument. Use GPR not registers.
2640
2641 * sim-main.h (sim_cpu): Add registers, register_widths, fpr_state,
2642 ipc, dspc, pending_*, hiaccess, loaccess, state, dsstate fields.
2643 (REGISTERS, REGISTER_WIDTHS, FPR_STATE, IPC, DSPC, PENDING_*,
2644 STATE, DSSTATE): Define
2645 (GPR, FGRIDX, ..): Define.
2646
2647 * interp.c (registers, register_widths, fpr_state, ipc, dspc,
2648 pending_*, hiaccess, loaccess, state, dsstate): Delete globals.
2649 (GPR, FGRIDX, ...): Delete macros.
2650
2651 * interp.c: Update names to match defines from sim-main.h
2652
2653Tue Oct 14 15:11:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
2654
2655 * interp.c (sim_monitor): Add SD argument.
2656 (sim_warning): Delete. Replace calls with calls to
2657 sim_io_eprintf.
2658 (sim_error): Delete. Replace calls with sim_io_error.
2659 (open_trace, writeout32, writeout16, getnum): Add SD argument.
2660 (mips_set_profile): Rename from sim_set_profile. Add SD argument.
2661 (mips_set_profile_size): Rename from sim_set_profile_size. Add SD
2662 argument.
2663 (mips_size): Rename from sim_size. Add SD argument.
2664
2665 * interp.c (simulator): Delete global variable.
2666 (callback): Delete global variable.
2667 (mips_option_handler, sim_open, sim_write, sim_read,
2668 sim_store_register, sim_fetch_register, sim_info, sim_do_command,
2669 sim_size,sim_monitor): Use sim_io_* not callback->*.
2670 (sim_open): ZALLOC simulator struct.
2671 (PROFILE): Do not define.
2672
2673Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
2674
2675 * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
2676 support.h with corresponding code.
2677
2678 * sim-main.h (word64, uword64), support.h: Move definition to
2679 sim-main.h.
2680 (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
2681
2682 * support.h: Delete
2683 * Makefile.in: Update dependencies
2684 * interp.c: Do not include.
2685
2686Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
2687
2688 * interp.c (address_translation, load_memory, store_memory,
2689 cache_op): Rename to from AddressTranslation et.al., make global,
2690 add SD argument
2691
2692 * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
2693 CacheOp): Define.
2694
2695 * interp.c (SignalException): Rename to signal_exception, make
2696 global.
2697
2698 * interp.c (Interrupt, ...): Move definitions to sim-main.h.
2699
2700 * sim-main.h (SignalException, SignalExceptionInterrupt,
2701 SignalExceptionInstructionFetch, SignalExceptionAddressStore,
2702 SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
2703 SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
2704 Define.
2705
2706 * interp.c, support.h: Use.
2707
2708Tue Oct 14 13:19:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
2709
2710 * interp.c (ValueFPR, StoreFPR), sim-main.h: Make global, rename
2711 to value_fpr / store_fpr. Add SD argument.
2712 (NaN, Infinity, Less, Equal, AbsoluteValue, Negate, Add, Sub,
2713 Multiply, Divide, Recip, SquareRoot, Convert): Make global.
2714
2715 * sim-main.h (ValueFPR, StoreFPR): Define.
2716
2717Tue Oct 14 13:06:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
2718
2719 * interp.c (sim_engine_run): Check consistency between configure
2720 WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
2721 and HASFPU.
2722
2723 * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
2724 (mips_fpu): Configure WITH_FLOATING_POINT.
2725 (mips_endian): Configure WITH_TARGET_ENDIAN.
2726 * configure: Update.
2727
2728Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
2729
2730 * configure: Regenerated to track ../common/aclocal.m4 changes.
2731
2732Mon Sep 29 14:45:00 1997 Bob Manson <manson@charmed.cygnus.com>
2733
2734 * configure: Regenerated.
2735
2736Fri Sep 26 12:48:18 1997 Mark Alexander <marka@cygnus.com>
2737
2738 * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
2739
2740Thu Sep 25 11:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
2741
2742 * gencode.c (print_igen_insn_models): Assume certain architectures
2743 include all mips* instructions.
2744 (print_igen_insn_format): Use data_size==-1 as marker for MIPS16
2745 instruction.
2746
2747 * Makefile.in (tmp.igen): Add target. Generate igen input from
2748 gencode file.
2749
2750 * gencode.c (FEATURE_IGEN): Define.
2751 (main): Add --igen option. Generate output in igen format.
2752 (process_instructions): Format output according to igen option.
2753 (print_igen_insn_format): New function.
2754 (print_igen_insn_models): New function.
2755 (process_instructions): Only issue warnings and ignore
2756 instructions when no FEATURE_IGEN.
2757
2758Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
2759
2760 * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
2761 MIPS targets.
2762
2763Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
2764
2765 * configure: Regenerated to track ../common/aclocal.m4 changes.
2766
2767Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
2768
2769 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
2770 SIM_RESERVED_BITS): Delete, moved to common.
2771 (SIM_EXTRA_CFLAGS): Update.
2772
2773Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
2774
2775 * configure.in: Configure non-strict memory alignment.
2776 * configure: Regenerated to track ../common/aclocal.m4 changes.
2777
2778Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
2779
2780 * configure: Regenerated to track ../common/aclocal.m4 changes.
2781
2782Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
2783
2784 * gencode.c (SDBBP,DERET): Added (3900) insns.
2785 (RFE): Turn on for 3900.
2786 * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
2787 (dsstate): Made global.
2788 (SUBTARGET_R3900): Added.
2789 (CANCELDELAYSLOT): New.
2790 (SignalException): Ignore SystemCall rather than ignore and
2791 terminate. Add DebugBreakPoint handling.
2792 (decode_coproc): New insns RFE, DERET; and new registers Debug
2793 and DEPC protected by SUBTARGET_R3900.
2794 (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
2795 bits explicitly.
2796 * Makefile.in,configure.in: Add mips subtarget option.
2797 * configure: Update.
2798
2799Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
2800
2801 * gencode.c: Add r3900 (tx39).
2802
2803
2804Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
2805
2806 * gencode.c (build_instruction): Don't need to subtract 4 for
2807 JALR, just 2.
2808
2809Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
2810
2811 * interp.c: Correct some HASFPU problems.
2812
2813Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
2814
2815 * configure: Regenerated to track ../common/aclocal.m4 changes.
2816
2817Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
2818
2819 * interp.c (mips_options): Fix samples option short form, should
2820 be `x'.
2821
2822Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
2823
2824 * interp.c (sim_info): Enable info code. Was just returning.
2825
2826Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
2827
2828 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
2829 MFC0.
2830
2831Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
2832
2833 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
2834 constants.
2835 (build_instruction): Ditto for LL.
2836
2837Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
2838
2839 * configure: Regenerated to track ../common/aclocal.m4 changes.
2840
2841Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
2842
2843 * configure: Regenerated to track ../common/aclocal.m4 changes.
2844 * config.in: Ditto.
2845
2846Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
2847
2848 * interp.c (sim_open): Add call to sim_analyze_program, update
2849 call to sim_config.
2850
2851Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
2852
2853 * interp.c (sim_kill): Delete.
2854 (sim_create_inferior): Add ABFD argument. Set PC from same.
2855 (sim_load): Move code initializing trap handlers from here.
2856 (sim_open): To here.
2857 (sim_load): Delete, use sim-hload.c.
2858
2859 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
2860
2861Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
2862
2863 * configure: Regenerated to track ../common/aclocal.m4 changes.
2864 * config.in: Ditto.
2865
2866Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
2867
2868 * interp.c (sim_open): Add ABFD argument.
2869 (sim_load): Move call to sim_config from here.
2870 (sim_open): To here. Check return status.
2871
2872Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
2873
2874 * gencode.c (build_instruction): Two arg MADD should
2875 not assign result to $0.
2876
2877Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
2878
2879 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
2880 * sim/mips/configure.in: Regenerate.
2881
2882Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
2883
2884 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
2885 signed8, unsigned8 et.al. types.
2886
2887 * interp.c (SUB_REG_FETCH): Handle both little and big endian
2888 hosts when selecting subreg.
2889
2890Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
2891
2892 * interp.c (sim_engine_run): Reset the ZERO register to zero
2893 regardless of FEATURE_WARN_ZERO.
2894 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
2895
2896Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
2897
2898 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
2899 (SignalException): For BreakPoints ignore any mode bits and just
2900 save the PC.
2901 (SignalException): Always set the CAUSE register.
2902
2903Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
2904
2905 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
2906 exception has been taken.
2907
2908 * interp.c: Implement the ERET and mt/f sr instructions.
2909
2910Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
2911
2912 * interp.c (SignalException): Don't bother restarting an
2913 interrupt.
2914
2915Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
2916
2917 * interp.c (SignalException): Really take an interrupt.
2918 (interrupt_event): Only deliver interrupts when enabled.
2919
2920Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
2921
2922 * interp.c (sim_info): Only print info when verbose.
2923 (sim_info) Use sim_io_printf for output.
2924
2925Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
2926
2927 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
2928 mips architectures.
2929
2930Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
2931
2932 * interp.c (sim_do_command): Check for common commands if a
2933 simulator specific command fails.
2934
2935Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
2936
2937 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
2938 and simBE when DEBUG is defined.
2939
2940Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
2941
2942 * interp.c (interrupt_event): New function. Pass exception event
2943 onto exception handler.
2944
2945 * configure.in: Check for stdlib.h.
2946 * configure: Regenerate.
2947
2948 * gencode.c (build_instruction): Add UNUSED attribute to tempS
2949 variable declaration.
2950 (build_instruction): Initialize memval1.
2951 (build_instruction): Add UNUSED attribute to byte, bigend,
2952 reverse.
2953 (build_operands): Ditto.
2954
2955 * interp.c: Fix GCC warnings.
2956 (sim_get_quit_code): Delete.
2957
2958 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
2959 * Makefile.in: Ditto.
2960 * configure: Re-generate.
2961
2962 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
2963
2964Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
2965
2966 * interp.c (mips_option_handler): New function parse argumes using
2967 sim-options.
2968 (myname): Replace with STATE_MY_NAME.
2969 (sim_open): Delete check for host endianness - performed by
2970 sim_config.
2971 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
2972 (sim_open): Move much of the initialization from here.
2973 (sim_load): To here. After the image has been loaded and
2974 endianness set.
2975 (sim_open): Move ColdReset from here.
2976 (sim_create_inferior): To here.
2977 (sim_open): Make FP check less dependant on host endianness.
2978
2979 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
2980 run.
2981 * interp.c (sim_set_callbacks): Delete.
2982
2983 * interp.c (membank, membank_base, membank_size): Replace with
2984 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
2985 (sim_open): Remove call to callback->init. gdb/run do this.
2986
2987 * interp.c: Update
2988
2989 * sim-main.h (SIM_HAVE_FLATMEM): Define.
2990
2991 * interp.c (big_endian_p): Delete, replaced by
2992 current_target_byte_order.
2993
2994Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
2995
2996 * interp.c (host_read_long, host_read_word, host_swap_word,
2997 host_swap_long): Delete. Using common sim-endian.
2998 (sim_fetch_register, sim_store_register): Use H2T.
2999 (pipeline_ticks): Delete. Handled by sim-events.
3000 (sim_info): Update.
3001 (sim_engine_run): Update.
3002
3003Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
3004
3005 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
3006 reason from here.
3007 (SignalException): To here. Signal using sim_engine_halt.
3008 (sim_stop_reason): Delete, moved to common.
3009
3010Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
3011
3012 * interp.c (sim_open): Add callback argument.
3013 (sim_set_callbacks): Delete SIM_DESC argument.
3014 (sim_size): Ditto.
3015
3016Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
3017
3018 * Makefile.in (SIM_OBJS): Add common modules.
3019
3020 * interp.c (sim_set_callbacks): Also set SD callback.
3021 (set_endianness, xfer_*, swap_*): Delete.
3022 (host_read_word, host_read_long, host_swap_word, host_swap_long):
3023 Change to functions using sim-endian macros.
3024 (control_c, sim_stop): Delete, use common version.
3025 (simulate): Convert into.
3026 (sim_engine_run): This function.
3027 (sim_resume): Delete.
3028
3029 * interp.c (simulation): New variable - the simulator object.
3030 (sim_kind): Delete global - merged into simulation.
3031 (sim_load): Cleanup. Move PC assignment from here.
3032 (sim_create_inferior): To here.
3033
3034 * sim-main.h: New file.
3035 * interp.c (sim-main.h): Include.
3036
3037Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
3038
3039 * configure: Regenerated to track ../common/aclocal.m4 changes.
3040
3041Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
3042
3043 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
3044
3045Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
3046
3047 * gencode.c (build_instruction): DIV instructions: check
3048 for division by zero and integer overflow before using
3049 host's division operation.
3050
3051Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
3052
3053 * Makefile.in (SIM_OBJS): Add sim-load.o.
3054 * interp.c: #include bfd.h.
3055 (target_byte_order): Delete.
3056 (sim_kind, myname, big_endian_p): New static locals.
3057 (sim_open): Set sim_kind, myname. Move call to set_endianness to
3058 after argument parsing. Recognize -E arg, set endianness accordingly.
3059 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
3060 load file into simulator. Set PC from bfd.
3061 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
3062 (set_endianness): Use big_endian_p instead of target_byte_order.
3063
3064Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
3065
3066 * interp.c (sim_size): Delete prototype - conflicts with
3067 definition in remote-sim.h. Correct definition.
3068
3069Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3070
3071 * configure: Regenerated to track ../common/aclocal.m4 changes.
3072 * config.in: Ditto.
3073
3074Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
3075
3076 * interp.c (sim_open): New arg `kind'.
3077
3078 * configure: Regenerated to track ../common/aclocal.m4 changes.
3079
3080Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3081
3082 * configure: Regenerated to track ../common/aclocal.m4 changes.
3083
3084Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
3085
3086 * interp.c (sim_open): Set optind to 0 before calling getopt.
3087
3088Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3089
3090 * configure: Regenerated to track ../common/aclocal.m4 changes.
3091
3092Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
3093
3094 * interp.c : Replace uses of pr_addr with pr_uword64
3095 where the bit length is always 64 independent of SIM_ADDR.
3096 (pr_uword64) : added.
3097
3098Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3099
3100 * configure: Re-generate.
3101
3102Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
3103
3104 * configure: Regenerate to track ../common/aclocal.m4 changes.
3105
3106Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
3107
3108 * interp.c (sim_open): New SIM_DESC result. Argument is now
3109 in argv form.
3110 (other sim_*): New SIM_DESC argument.
3111
3112Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
3113
3114 * interp.c: Fix printing of addresses for non-64-bit targets.
3115 (pr_addr): Add function to print address based on size.
3116
3117Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
3118
3119 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
3120
3121Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
3122
3123 * gencode.c (build_mips16_operands): Correct computation of base
3124 address for extended PC relative instruction.
3125
3126Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
3127
3128 * interp.c (mips16_entry): Add support for floating point cases.
3129 (SignalException): Pass floating point cases to mips16_entry.
3130 (ValueFPR): Don't restrict fmt_single and fmt_word to even
3131 registers.
3132 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
3133 or fmt_word.
3134 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
3135 and then set the state to fmt_uninterpreted.
3136 (COP_SW): Temporarily set the state to fmt_word while calling
3137 ValueFPR.
3138
3139Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
3140
3141 * gencode.c (build_instruction): The high order may be set in the
3142 comparison flags at any ISA level, not just ISA 4.
3143
3144Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
3145
3146 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
3147 COMMON_{PRE,POST}_CONFIG_FRAG instead.
3148 * configure.in: sinclude ../common/aclocal.m4.
3149 * configure: Regenerated.
3150
3151Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
3152
3153 * configure: Rebuild after change to aclocal.m4.
3154
3155Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
3156
3157 * configure configure.in Makefile.in: Update to new configure
3158 scheme which is more compatible with WinGDB builds.
3159 * configure.in: Improve comment on how to run autoconf.
3160 * configure: Re-run autoconf to get new ../common/aclocal.m4.
3161 * Makefile.in: Use autoconf substitution to install common
3162 makefile fragment.
3163
3164Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
3165
3166 * gencode.c (build_instruction): Use BigEndianCPU instead of
3167 ByteSwapMem.
3168
3169Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
3170
3171 * interp.c (sim_monitor): Make output to stdout visible in
3172 wingdb's I/O log window.
3173
3174Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
3175
3176 * support.h: Undo previous change to SIGTRAP
3177 and SIGQUIT values.
3178
3179Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
3180
3181 * interp.c (store_word, load_word): New static functions.
3182 (mips16_entry): New static function.
3183 (SignalException): Look for mips16 entry and exit instructions.
3184 (simulate): Use the correct index when setting fpr_state after
3185 doing a pending move.
3186
3187Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
3188
3189 * interp.c: Fix byte-swapping code throughout to work on
3190 both little- and big-endian hosts.
3191
3192Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
3193
3194 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
3195 with gdb/config/i386/xm-windows.h.
3196
3197Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
3198
3199 * gencode.c (build_instruction): Work around MSVC++ code gen bug
3200 that messes up arithmetic shifts.
3201
3202Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
3203
3204 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
3205 SIGTRAP and SIGQUIT for _WIN32.
3206
3207Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
3208
3209 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
3210 force a 64 bit multiplication.
3211 (build_instruction) [OR]: In mips16 mode, don't do anything if the
3212 destination register is 0, since that is the default mips16 nop
3213 instruction.
3214
3215Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
3216
3217 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
3218 (build_endian_shift): Don't check proc64.
3219 (build_instruction): Always set memval to uword64. Cast op2 to
3220 uword64 when shifting it left in memory instructions. Always use
3221 the same code for stores--don't special case proc64.
3222
3223 * gencode.c (build_mips16_operands): Fix base PC value for PC
3224 relative operands.
3225 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
3226 jal instruction.
3227 * interp.c (simJALDELAYSLOT): Define.
3228 (JALDELAYSLOT): Define.
3229 (INDELAYSLOT, INJALDELAYSLOT): Define.
3230 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
3231
3232Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
3233
3234 * interp.c (sim_open): add flush_cache as a PMON routine
3235 (sim_monitor): handle flush_cache by ignoring it
3236
3237Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
3238
3239 * gencode.c (build_instruction): Use !ByteSwapMem instead of
3240 BigEndianMem.
3241 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
3242 (BigEndianMem): Rename to ByteSwapMem and change sense.
3243 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
3244 BigEndianMem references to !ByteSwapMem.
3245 (set_endianness): New function, with prototype.
3246 (sim_open): Call set_endianness.
3247 (sim_info): Use simBE instead of BigEndianMem.
3248 (xfer_direct_word, xfer_direct_long, swap_direct_word,
3249 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
3250 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
3251 ifdefs, keeping the prototype declaration.
3252 (swap_word): Rewrite correctly.
3253 (ColdReset): Delete references to CONFIG. Delete endianness related
3254 code; moved to set_endianness.
3255
3256Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
3257
3258 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
3259 * interp.c (CHECKHILO): Define away.
3260 (simSIGINT): New macro.
3261 (membank_size): Increase from 1MB to 2MB.
3262 (control_c): New function.
3263 (sim_resume): Rename parameter signal to signal_number. Add local
3264 variable prev. Call signal before and after simulate.
3265 (sim_stop_reason): Add simSIGINT support.
3266 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
3267 functions always.
3268 (sim_warning): Delete call to SignalException. Do call printf_filtered
3269 if logfh is NULL.
3270 (AddressTranslation): Add #ifdef DEBUG around debugging message and
3271 a call to sim_warning.
3272
3273Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
3274
3275 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
3276 16 bit instructions.
3277
3278Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
3279
3280 Add support for mips16 (16 bit MIPS implementation):
3281 * gencode.c (inst_type): Add mips16 instruction encoding types.
3282 (GETDATASIZEINSN): Define.
3283 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
3284 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
3285 mtlo.
3286 (MIPS16_DECODE): New table, for mips16 instructions.
3287 (bitmap_val): New static function.
3288 (struct mips16_op): Define.
3289 (mips16_op_table): New table, for mips16 operands.
3290 (build_mips16_operands): New static function.
3291 (process_instructions): If PC is odd, decode a mips16
3292 instruction. Break out instruction handling into new
3293 build_instruction function.
3294 (build_instruction): New static function, broken out of
3295 process_instructions. Check modifiers rather than flags for SHIFT
3296 bit count and m[ft]{hi,lo} direction.
3297 (usage): Pass program name to fprintf.
3298 (main): Remove unused variable this_option_optind. Change
3299 ``*loptarg++'' to ``loptarg++''.
3300 (my_strtoul): Parenthesize && within ||.
3301 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
3302 (simulate): If PC is odd, fetch a 16 bit instruction, and
3303 increment PC by 2 rather than 4.
3304 * configure.in: Add case for mips16*-*-*.
3305 * configure: Rebuild.
3306
3307Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
3308
3309 * interp.c: Allow -t to enable tracing in standalone simulator.
3310 Fix garbage output in trace file and error messages.
3311
3312Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
3313
3314 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
3315 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
3316 * configure.in: Simplify using macros in ../common/aclocal.m4.
3317 * configure: Regenerated.
3318 * tconfig.in: New file.
3319
3320Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
3321
3322 * interp.c: Fix bugs in 64-bit port.
3323 Use ansi function declarations for msvc compiler.
3324 Initialize and test file pointer in trace code.
3325 Prevent duplicate definition of LAST_EMED_REGNUM.
3326
3327Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
3328
3329 * interp.c (xfer_big_long): Prevent unwanted sign extension.
3330
3331Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
3332
3333 * interp.c (SignalException): Check for explicit terminating
3334 breakpoint value.
3335 * gencode.c: Pass instruction value through SignalException()
3336 calls for Trap, Breakpoint and Syscall.
3337
3338Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
3339
3340 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
3341 only used on those hosts that provide it.
3342 * configure.in: Add sqrt() to list of functions to be checked for.
3343 * config.in: Re-generated.
3344 * configure: Re-generated.
3345
3346Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
3347
3348 * gencode.c (process_instructions): Call build_endian_shift when
3349 expanding STORE RIGHT, to fix swr.
3350 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
3351 clear the high bits.
3352 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
3353 Fix float to int conversions to produce signed values.
3354
3355Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
3356
3357 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
3358 (process_instructions): Correct handling of nor instruction.
3359 Correct shift count for 32 bit shift instructions. Correct sign
3360 extension for arithmetic shifts to not shift the number of bits in
3361 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
3362 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
3363 Fix madd.
3364 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
3365 It's OK to have a mult follow a mult. What's not OK is to have a
3366 mult follow an mfhi.
3367 (Convert): Comment out incorrect rounding code.
3368
3369Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
3370
3371 * interp.c (sim_monitor): Improved monitor printf
3372 simulation. Tidied up simulator warnings, and added "--log" option
3373 for directing warning message output.
3374 * gencode.c: Use sim_warning() rather than WARNING macro.
3375
3376Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
3377
3378 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
3379 getopt1.o, rather than on gencode.c. Link objects together.
3380 Don't link against -liberty.
3381 (gencode.o, getopt.o, getopt1.o): New targets.
3382 * gencode.c: Include <ctype.h> and "ansidecl.h".
3383 (AND): Undefine after including "ansidecl.h".
3384 (ULONG_MAX): Define if not defined.
3385 (OP_*): Don't define macros; now defined in opcode/mips.h.
3386 (main): Call my_strtoul rather than strtoul.
3387 (my_strtoul): New static function.
3388
3389Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
3390
3391 * gencode.c (process_instructions): Generate word64 and uword64
3392 instead of `long long' and `unsigned long long' data types.
3393 * interp.c: #include sysdep.h to get signals, and define default
3394 for SIGBUS.
3395 * (Convert): Work around for Visual-C++ compiler bug with type
3396 conversion.
3397 * support.h: Make things compile under Visual-C++ by using
3398 __int64 instead of `long long'. Change many refs to long long
3399 into word64/uword64 typedefs.
3400
3401Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3402
3403 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
3404 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
3405 (docdir): Removed.
3406 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
3407 (AC_PROG_INSTALL): Added.
3408 (AC_PROG_CC): Moved to before configure.host call.
3409 * configure: Rebuilt.
3410
3411Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
3412
3413 * configure.in: Define @SIMCONF@ depending on mips target.
3414 * configure: Rebuild.
3415 * Makefile.in (run): Add @SIMCONF@ to control simulator
3416 construction.
3417 * gencode.c: Change LOADDRMASK to 64bit memory model only.
3418 * interp.c: Remove some debugging, provide more detailed error
3419 messages, update memory accesses to use LOADDRMASK.
3420
3421Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
3422
3423 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
3424 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
3425 stamp-h.
3426 * configure: Rebuild.
3427 * config.in: New file, generated by autoheader.
3428 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
3429 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
3430 HAVE_ANINT and HAVE_AINT, as appropriate.
3431 * Makefile.in (run): Use @LIBS@ rather than -lm.
3432 (interp.o): Depend upon config.h.
3433 (Makefile): Just rebuild Makefile.
3434 (clean): Remove stamp-h.
3435 (mostlyclean): Make the same as clean, not as distclean.
3436 (config.h, stamp-h): New targets.
3437
3438Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
3439
3440 * interp.c (ColdReset): Fix boolean test. Make all simulator
3441 globals static.
3442
3443Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
3444
3445 * interp.c (xfer_direct_word, xfer_direct_long,
3446 swap_direct_word, swap_direct_long, xfer_big_word,
3447 xfer_big_long, xfer_little_word, xfer_little_long,
3448 swap_word,swap_long): Added.
3449 * interp.c (ColdReset): Provide function indirection to
3450 host<->simulated_target transfer routines.
3451 * interp.c (sim_store_register, sim_fetch_register): Updated to
3452 make use of indirected transfer routines.
3453
3454Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
3455
3456 * gencode.c (process_instructions): Ensure FP ABS instruction
3457 recognised.
3458 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
3459 system call support.
3460
3461Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
3462
3463 * interp.c (sim_do_command): Complain if callback structure not
3464 initialised.
3465
3466Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
3467
3468 * interp.c (Convert): Provide round-to-nearest and round-to-zero
3469 support for Sun hosts.
3470 * Makefile.in (gencode): Ensure the host compiler and libraries
3471 used for cross-hosted build.
3472
3473Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
3474
3475 * interp.c, gencode.c: Some more (TODO) tidying.
3476
3477Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
3478
3479 * gencode.c, interp.c: Replaced explicit long long references with
3480 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
3481 * support.h (SET64LO, SET64HI): Macros added.
3482
3483Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
3484
3485 * configure: Regenerate with autoconf 2.7.
3486
3487Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
3488
3489 * interp.c (LoadMemory): Enclose text following #endif in /* */.
3490 * support.h: Remove superfluous "1" from #if.
3491 * support.h (CHECKSIM): Remove stray 'a' at end of line.
3492
3493Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
3494
3495 * interp.c (StoreFPR): Control UndefinedResult() call on
3496 WARN_RESULT manifest.
3497
3498Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
3499
3500 * gencode.c: Tidied instruction decoding, and added FP instruction
3501 support.
3502
3503 * interp.c: Added dineroIII, and BSD profiling support. Also
3504 run-time FP handling.
3505
3506Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
3507
3508 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
3509 gencode.c, interp.c, support.h: created.
This page took 0.788268 seconds and 4 git commands to generate.