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