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