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