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