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