* r5900.igen (rsqrt.s): Update based on r5900 ISA manual version 2.1.
[external/binutils.git] / sim / mips / ChangeLog
1 start-sanitize-r5900
2 Mon Jun  1 10:28:25 1998  Jeffrey A Law  (law@cygnus.com)
3
4         * r5900.igen (rsqrt.s): Update based on r5900 ISA manual version 2.1.
5         (sqrt.s): Likewise.
6
7 end-sanitize-r5900
8 Fri May 29 11:40:39 1998  Andrew Cagney  <cagney@b1.cygnus.com>
9
10         * configure.in (sim_igen_filter): Match mips*tx39 not mipst*tx39.
11
12 start-sanitize-tx3904
13 Mon May 25 20:47:45 1998  Andrew Cagney  <cagney@b1.cygnus.com>
14
15         * dv-tx3904cpu.c, dv-tx3904irc.c: Rename *_callback to *_method.
16
17         * dv-tx3904cpu.c, dv-tx3904irc.c: Include hw-main.h and
18         sim-main.h. Declare a struct hw_descriptor instead of struct
19         hw_device_descriptor.
20
21 end-sanitize-tx3904
22 Mon May 25 12:41:38 1998  Andrew Cagney  <cagney@b1.cygnus.com>
23
24         * mips.igen (do_store_left, do_load_left): Compute nr of left and
25         right bits and then re-align left hand bytes to correct byte
26         lanes.  Fix incorrect computation in do_store_left when loading
27         bytes from second word.
28
29 start-sanitize-tx3904
30 Fri May 22 13:34:20 1998  Andrew Cagney  <cagney@b1.cygnus.com>
31
32         * configure.in (SIM_AC_OPTION_HARDWARE): Only enable when tx3904.
33         * interp.c (sim_open): Only create a device tree when HW is
34         enabled.
35
36         * dv-tx3904irc.c (tx3904irc_finish): Pacify GCC.
37         * interp.c (signal_exception): Ditto.
38
39 end-sanitize-tx3904
40 Thu May 21 14:24:11 1998  Gavin Koch  <gavin@cygnus.com>
41
42         * gencode.c: Mark BEGEZALL as LIKELY.
43
44 Thu May 21 18:57:19 1998  Andrew Cagney  <cagney@b1.cygnus.com>
45
46         * sim-main.h (ALU32_END): Sign extend 32 bit results.
47         * mips.igen (ADD, SUB, ADDI, DADD, DSUB): Trace.
48         
49 start-sanitize-r5900
50 Thu May 21 17:15:39 1998  Andrew Cagney  <cagney@b1.cygnus.com>
51
52         * interp.c (sim_fetch_register): Convert internal r5900 regs to
53         target byte order
54         
55 end-sanitize-r5900
56 Mon May 18 18:22:42 1998  Frank Ch. Eigler  <fche@cygnus.com>
57
58         * configure.in (SIM_AC_OPTION_HARDWARE): Added common hardware
59         modules.  Recognize TX39 target with "mips*tx39" pattern.
60         * configure: Rebuilt.
61         * sim-main.h (*): Added many macros defining bits in
62         TX39 control registers.
63         (SignalInterrupt): Send actual PC instead of NULL.
64         (SignalNMIReset): New exception type.
65         * interp.c (board): New variable for future use to identify
66         a particular board being simulated.
67         (mips_option_handler,mips_options): Added "--board" option.
68         (interrupt_event): Send actual PC.
69         (sim_open): Make memory layout conditional on board setting.
70         (signal_exception): Initial implementation of hardware interrupt
71         handling.  Accept another break instruction variant for simulator
72         exit.
73         (decode_coproc): Implement RFE instruction for TX39.
74         (mips.igen): Decode RFE instruction as such.
75 start-sanitize-tx3904
76         * configure.in (tx3904cpu,tx3904irc): Added devices for tx3904.
77         * interp.c: Define "jmr3904" and "jmr3904debug" board types and
78         bbegin to implement memory map.
79         * dv-tx3904cpu.c: New file.
80         * dv-tx3904irc.c: New file.
81 end-sanitize-tx3904
82
83 Wed May 13 14:40:11 1998  Gavin Koch  <gavin@cygnus.com>
84
85         * mips.igen (check_mt_hilo): Create a separate r3900 version.
86
87 start-sanitize-r5900
88 Wed May 13 14:27:53 1998  Gavin Koch  <gavin@cygnus.com>
89
90         * r5900.igen: Replace the calls and the definition of the
91         function check_op_hilo_hi1lo1 with the pair 
92         check_mult_hilo_hi1lo1 and check_mult_hilo_hi1lo1.
93
94 end-sanitize-r5900
95 Wed May 13 14:11:46 1998  Gavin Koch  <gavin@cygnus.com>
96
97         * tx.igen (madd,maddu):  Replace calls to check_op_hilo
98         with calls to check_div_hilo.
99
100 Wed May 13 09:59:27 1998  Gavin Koch  <gavin@cygnus.com>
101
102         * mips/mips.igen (check_op_hilo,check_mult_hilo,check_div_hilo):
103         Replace check_op_hilo with check_mult_hilo and check_div_hilo.
104         Add special r3900 version of do_mult_hilo.  
105         (do_dmultx,do_mult,do_multu): Replace calls to check_op_hilo
106         with calls to check_mult_hilo.
107         (do_ddiv,do_ddivu,do_div,do_divu): Replace calls to check_op_hilo
108         with calls to check_div_hilo.
109
110 Tue May 12 15:22:11 1998  Andrew Cagney  <cagney@b1.cygnus.com>
111
112         * configure.in (SUBTARGET_R3900): Define for mipstx39 target.
113         Document a replacement.
114
115 Fri May  8 17:48:19 1998  Ian Carmichael  <iancarm@cygnus.com>
116
117         * interp.c (sim_monitor): Make mon_printf work.
118
119 Wed May  6 19:42:19 1998  Doug Evans  <devans@canuck.cygnus.com>
120
121         * sim-main.h (INSN_NAME): New arg `cpu'.
122
123 start-sanitize-sky
124 Thu Apr 30 18:51:26 1998  Andrew Cagney  <cagney@b1.cygnus.com>
125
126         * sky-libvpe.c (FMAdd, FMSub): Replace r59fp_op3 call with
127         r59fp_mula.
128
129 end-sanitize-sky
130 start-sanitize-r5900
131 Wed Apr 29 22:54:45 1998  Andrew Cagney  <cagney@b1.cygnus.com>
132
133         * sim-main.h (R5900_FP_MAX, R5900_FP_MIN): Define.
134         * r5900.igen (r59fp_overflow): Use.
135
136         * r5900.igen (r59fp_op3): Rename to
137         (r59fp_mula): This, delete opm argument.
138         (MADD.S, MADDA.S, MSUB.S, MSUBS.S): Update.
139         (r59fp_mula): Overflowing product propogates through to result.
140         (r59fp_mula): ACC to the MAX propogates to result.
141         (r59fp_mula): Underflow during multiply only sets SU.
142
143 end-sanitize-r5900
144 Tue Apr 28 18:33:31 1998  Geoffrey Noer  <noer@cygnus.com>
145
146         * configure: Regenerated to track ../common/aclocal.m4 changes.
147
148 Sun Apr 26 15:31:55 1998  Tom Tromey  <tromey@creche>
149
150         * configure: Regenerated to track ../common/aclocal.m4 changes.
151         * config.in: Ditto.
152
153 Sun Apr 26 15:20:01 1998  Tom Tromey  <tromey@cygnus.com>
154
155         * acconfig.h: New file.
156         * configure.in: Reverted change of Apr 24; use sinclude again.
157
158 Fri Apr 24 14:16:40 1998  Tom Tromey  <tromey@creche>
159
160         * configure: Regenerated to track ../common/aclocal.m4 changes.
161         * config.in: Ditto.
162
163 Fri Apr 24 11:19:20 1998  Tom Tromey  <tromey@cygnus.com>
164
165         * configure.in: Don't call sinclude.
166
167 Fri Apr 24 11:35:01 1998  Andrew Cagney  <cagney@chook.cygnus.com>
168
169         * mips.igen (do_store_left): Pass 0 not NULL to store_memory.
170
171 Tue Apr 21 11:59:50 1998  Andrew Cagney  <cagney@b1.cygnus.com>
172
173         * mips.igen (ERET): Implement.
174
175         * interp.c (decode_coproc): Return sign-extended EPC.
176
177         * mips.igen (ANDI, LUI, MFC0): Add tracing code.
178
179         * interp.c (signal_exception): Do not ignore Trap.
180         (signal_exception): On TRAP, restart at exception address.
181         (HALT_INSTRUCTION, HALT_INSTRUCTION_MASK): Define.
182         (signal_exception): Update.
183         (sim_open): Patch V_COMMON interrupt vector with an abort sequence
184         so that TRAP instructions are caught.
185
186 Mon Apr 20 11:26:55 1998  Andrew Cagney  <cagney@b1.cygnus.com>
187
188         * sim-main.h (struct hilo_access, struct hilo_history): Define,
189         contains HI/LO access history.
190         (struct _sim_cpu): Make hiaccess and loaccess of type hilo_access.
191         (HIACCESS, LOACCESS): Delete, replace with
192         (HIHISTORY, LOHISTORY): New macros.
193         (start-sanitize-r5900):
194         (struct sim_5900_cpu): Make hi1access, lo1access of type
195         hilo_access.
196         (HI1ACCESS, LO1ACCESS): Delete, replace with
197         (HI1HISTORY, LO1HISTORY): New macros.
198         (end-sanitize-r5900):
199         (CHECKHILO): Delete all, moved to mips.igen
200         
201         * gencode.c (build_instruction): Do not generate checks for
202         correct HI/LO register usage.
203
204         * interp.c (old_engine_run): Delete checks for correct HI/LO
205         register usage.
206
207         * mips.igen (check_mt_hilo, check_mf_hilo, check_op_hilo,
208         check_mf_cycles): New functions.
209         (do_mfhi, do_mflo, "mthi", "mtlo", do_ddiv, do_ddivu, do_div,
210         do_divu, domultx, do_mult, do_multu): Use.
211
212         * tx.igen ("madd", "maddu"): Use.
213         (start-sanitize-r5900):
214         
215         r5900.igen: Update all HI/LO checks.
216         ("mfhi1", "mflo1", "mthi1", "mthi1", "pmfhi", "pmflo", "pmfhl",
217         "pmthi", "pmtlo", "mpthl"): Check MF/MT HI/LO.
218         ("mult1", "div1", "divu1", "multu1", "madd1", "maddu1", "pdivbw",
219         "pdivuw", "pdivw", "phmaddh", "phmsubh", "pmaddh", "madduw",
220         "pmaddw", "pmsubh", "pmsubw", "pmulth", "pmultuw", "pmultw"):
221         Check HI/LO op.
222         (end-sanitize-r5900):
223         
224 start-sanitize-sky
225 Mon Apr 20 18:39:47 1998  Frank Ch. Eigler  <fche@cygnus.com>
226
227         * interp.c (decode_coproc): Correct CMFC2/QMTC2
228         GPR access.
229
230         * r5900.igen (LQ,SQ): Use a pair of 64-bit accesses
231         instead of a single 128-bit access.
232
233 end-sanitize-sky
234 start-sanitize-sky
235 Fri Apr 17 14:50:39 1998  Frank Ch. Eigler  <fche@cygnus.com>
236
237         * r5900.igen (COP_[LS]Q): Transfer COP2 quadwords.
238         * interp.c (cop_[ls]q): Fixes corresponding to above.
239         
240 end-sanitize-sky
241 start-sanitize-sky
242 Thu Apr 16 15:24:14 1998  Frank Ch. Eigler  <fche@cygnus.com>
243
244         * interp.c (decode_coproc): Adapt COP2 micro interlock to
245         clarified specs.  Reset "M" bit; exit also on "E" bit.
246
247 end-sanitize-sky
248 start-sanitize-r5900
249 Thu Apr 16 10:40:29 1998  Andrew Cagney  <cagney@b1.cygnus.com>
250
251         * r5900.igen (CFC1, CTC1): Implement R5900 specific version.
252         * mips.igen (CFC1, CTC1): R5900 des not use generic version.
253
254         * r5900.igen (r59fp_unpack): New function.
255         (r59fp_op1, r59fp_op2, r59fp_op3, C.cond.S, CVT.S.W, DIV.S,
256         RSQRT.S, SQRT.S): Use.
257         (r59fp_zero): New function.
258         (r59fp_overflow): Generate r5900 specific overflow value.
259         (r59fp_store): Re-write, overflow to MAX_R5900_FP value, underflow
260         to zero.
261         (CVT.S.W, CVT.W.S): Exchange implementations.
262         
263         * sim-main.h (R5900_EXPMAX, R5900_EXPMIN, R5900_EXPBIAS): Defile.
264         
265 end-sanitize-r5900
266 start-sanitize-tx19
267 Thu Apr 16 09:14:44 1998  Andrew Cagney  <cagney@b1.cygnus.com>
268
269         * configure.in (tx19, sim_use_gen): Switch to igen.
270         * configure: Re-build.
271         
272 end-sanitize-tx19
273 start-sanitize-sky
274 Wed Apr 15 12:41:18 1998  Frank Ch. Eigler  <fche@cygnus.com>
275
276         * interp.c (decode_coproc): Make COP2 branch code compile after
277         igen signature changes.
278         
279 end-sanitize-sky
280 Wed Apr 15 18:31:54 1998  Andrew Cagney  <cagney@b1.cygnus.com>
281
282         * mips.igen (DSRAV): Use function do_dsrav.
283         (SRAV): Use new function do_srav.
284
285         * m16.igen (BEQZ, BNEZ): Compare GPR[TRX] not GPR[RX].
286         (B): Sign extend 11 bit immediate.
287         (EXT-B*): Shift 16 bit immediate left by 1.
288         (ADDIU*): Don't sign extend immediate value.
289
290 Wed Apr 15 10:32:15 1998  Andrew Cagney  <cagney@b1.cygnus.com>
291
292         * m16run.c (sim_engine_run): Restore CIA after handling an event.
293
294 start-sanitize-tx19
295         * mips.igen (mtc0): Valid tx19 instruction.
296
297 end-sanitize-tx19
298         * sim-main.h (DELAY_SLOT, NULLIFY_NEXT_INSTRUCTION): For IGEN, use
299         functions.
300
301         * mips.igen (delayslot32, nullify_next_insn): New functions.
302         (m16.igen): Always include.
303         (do_*): Add more tracing.
304
305         * m16.igen (delayslot16): Add NIA argument, could be called by a
306         32 bit MIPS16 instruction.
307         
308         * interp.c (ifetch16): Move function from here.
309         * sim-main.c (ifetch16): To here.
310         
311         * sim-main.c (ifetch16, ifetch32): Update to match current
312         implementations of LH, LW.
313         (signal_exception): Don't print out incorrect hex value of illegal
314         instruction.
315
316 Wed Apr 15 00:17:25 1998  Andrew Cagney  <cagney@b1.cygnus.com>
317
318         * m16run.c (sim_engine_run): Use IMEM16 and IMEM32 to fetch an
319         instruction.
320
321         * m16.igen: Implement MIPS16 instructions.
322         
323         * mips.igen (do_addiu, do_addu, do_and, do_daddiu, do_daddu,
324         do_ddiv, do_ddivu, do_div, do_divu, do_dmultx, do_dmultu, do_srav,
325         do_dsubu, do_mfhi, do_mflo, do_mult, do_multu, do_nor, do_or,
326         do_sll, do_sllv, do_slt, do_slti, do_sltiu, do_sltu, do_sra,
327         do_srl, do_srlv, do_subu, do_xor, do_xori): New functions.  Move
328         bodies of corresponding code from 32 bit insn to these.  Also used
329         by MIPS16 versions of functions.
330         
331         * sim-main.h (RAIDX, T8IDX, T8, SPIDX): Define.
332         (IMEM16): Drop NR argument from macro.
333
334 start-sanitize-sky
335 Mon Apr 13 16:28:52 1998  Frank Ch. Eigler  <fche@cygnus.com>
336
337         * interp.c (decode_coproc): Add proper 1000000 bit-string at top
338         of VU lower instruction.
339
340 end-sanitize-sky
341 start-sanitize-sky
342 Thu Apr  9 16:38:23 1998  Frank Ch. Eigler  <fche@cygnus.com>
343
344         * r5900.igen (LQC,SQC): Adapted code to DOUBLEWORD accesses
345         instead of QUADWORD.
346
347         * sim-main.h: Removed attempt at allowing 128-bit access.
348
349 end-sanitize-sky
350 start-sanitize-sky
351 Wed Apr  8 18:12:13 1998  Frank Ch. Eigler  <fche@cygnus.com>
352
353         * Makefile.in (SIM_SKY_OBJS): Added sky-vudis.o.
354
355         * interp.c (decode_coproc): Refer to VU CIA as a "special"
356         register, not as a "misc" register.  Aha.  Add activity 
357         assertions after VCALLMS* instructions.
358         
359 end-sanitize-sky
360 start-sanitize-sky
361 Tue Apr  7 18:32:49 1998  Frank Ch. Eigler  <fche@cygnus.com>
362
363         * interp.c (decode_coproc): Do not apply superfluous E (end) flag
364         to upper code of generated VU instruction.
365         
366 end-sanitize-sky
367 start-sanitize-sky
368 Mon Apr  6 19:55:56 1998  Frank Ch. Eigler  <fche@cygnus.com>
369
370         * interp.c (cop_[ls]q): Replaced stub with proper COP2 code.
371
372         * sim-main.h (LOADADDRMASK): Redefine to allow 128-bit accesses
373         for TARGET_SKY.
374
375         * r5900.igen (SQC2): Thinko.
376         
377 end-sanitize-sky
378 start-sanitize-sky
379 Sun Apr  5 12:05:44 1998  Frank Ch. Eigler  <fche@cygnus.com>
380
381         * interp.c (*): Adapt code to merged VU device & state structs.
382         (decode_coproc): Execute COP2 each macroinstruction without
383         pipelining, by stepping VU to completion state.  Adapted to
384         read_vu_*_reg style of register access.
385
386         * mips.igen ([SL]QC2): Removed these COP2 instructions.
387         
388         * r5900.igen ([SL]QC2): Transplanted these COP2 instructions here.
389
390         * sim-main.h (cop_[ls]q): Enclosed in TARGET_SKY guards.
391         
392 end-sanitize-sky
393 Sat Apr  4 22:39:50 1998  Andrew Cagney  <cagney@b1.cygnus.com>
394
395         * Makefile.in (SIM_OBJS): Add sim-main.o.
396
397         * sim-main.h (address_translation, load_memory, store_memory,
398         cache_op, sync_operation, prefetch, ifetch32, pending_tick): Mark
399         as INLINE_SIM_MAIN.
400         (pr_addr, pr_uword64): Declare.
401         (sim-main.c): Include when H_REVEALS_MODULE_P.
402         
403         * interp.c (address_translation, load_memory, store_memory,
404         cache_op, sync_operation, prefetch, ifetch32, pending_tick): Move
405         from here.
406         * sim-main.c: To here. Fix compilation problems.
407         
408         * configure.in: Enable inlining.
409         * configure: Re-config.
410
411 Sat Apr  4 20:36:25 1998  Andrew Cagney  <cagney@b1.cygnus.com>
412
413         * configure: Regenerated to track ../common/aclocal.m4 changes.
414
415 Fri Apr  3 04:32:35 1998  Andrew Cagney  <cagney@b1.cygnus.com>
416
417         * mips.igen: Include tx.igen.
418         * Makefile.in (IGEN_INCLUDE): Add tx.igen.
419         * tx.igen: New file, contains MADD and MADDU.
420
421         * interp.c (load_memory): When shifting bytes, use LOADDRMASK not
422         the hardwired constant `7'.
423         (store_memory): Ditto.
424         (LOADDRMASK): Move definition to sim-main.h.
425
426         mips.igen (MTC0): Enable for r3900.
427         (ADDU): Add trace.
428
429         mips.igen (do_load_byte): Delete.
430         (do_load, do_store, do_load_left, do_load_write, do_store_left,
431         do_store_right): New functions.
432         (SW*, LW*, SD*, LD*, SH, LH, SB, LB): Use.
433
434         configure.in: Let the tx39 use igen again.
435         configure: Update.
436         
437 Thu Apr  2 10:59:39 1998  Andrew Cagney  <cagney@b1.cygnus.com>
438
439         * interp.c (sim_monitor): get_mem_info returns a 4 byte quantity,
440         not an address sized quantity.  Return zero for cache sizes.
441
442 Wed Apr  1 23:47:53 1998  Andrew Cagney  <cagney@b1.cygnus.com>
443
444         * mips.igen (r3900): r3900 does not support 64 bit integer
445         operations.
446
447 start-sanitize-sky
448 Wed Apr 1 08:20:31 1998  Frank Ch. Eigler  <fche@cygnus.com>
449
450         * mips.igen (SQC2/LQC2): Make bodies sky-target-only also.
451         
452 end-sanitize-sky
453 start-sanitize-sky
454 Mon Mar 30 18:41:43 1998  Frank Ch. Eigler  <fche@cygnus.com>
455
456         * interp.c (decode_coproc): Continuing COP2 work.
457         (cop_[ls]q): Make sky-target-only.
458
459         * sim-main.h (COP_[LS]Q): Make sky-target-only.
460 end-sanitize-sky
461 Mon Mar 30 14:46:05 1998  Gavin Koch  <gavin@cygnus.com>
462
463         * configure.in (mipstx39*-*-*): Use gencode simulator rather
464         than igen one.
465         * configure : Rebuild.
466         
467 start-sanitize-sky
468 Sun Mar 29 17:50:11       Frank Ch. Eigler  <fche@cygnus.com>
469
470         * interp.c (decode_coproc): Added a missing TARGET_SKY check
471         around COP2 implementation skeleton.
472
473 end-sanitize-sky
474 start-sanitize-sky
475 Fri Mar 27 16:19:29 1998  Frank Ch. Eigler  <fche@cygnus.com>
476
477         * Makefile.in (SIM_SKY_OBJS): Replaced sky-vu[01].o with sky-vu.o.
478
479         * interp.c (sim_{load,store}_register): Use new vu[01]_device
480         static to access VU registers.
481         (decode_coproc): Added skeleton of sky COP2 (VU) instruction
482         decoding.  Work in progress.
483
484         * mips.igen (LDCzz, SDCzz): Removed *5900 case for this
485         overlapping/redundant bit pattern.
486         (LQC2, SQC2): Added *5900 COP2 instruction skeleta.  Work in
487         progress.
488
489         * sim-main.h (status_CU[012]): Added COP[n]-enabled flags for
490         status register.
491         
492         * interp.c (cop_lq, cop_sq): New functions for future 128-bit
493         access to coprocessor registers.
494
495         * sim-main.h (COP_LQ, COP_SQ): New macro front-ends for above.
496 end-sanitize-sky
497 Fri Mar 27 16:15:52 1998  Andrew Cagney  <cagney@b1.cygnus.com>
498
499         * configure: Regenerated to track ../common/aclocal.m4 changes.
500
501 Fri Mar 27 15:01:50 1998  Andrew Cagney  <cagney@b1.cygnus.com>
502
503         * interp.c (mips_option_handler): Iterate over MAX_NR_PROCESSORS.
504
505 Wed Mar 25 16:44:27 1998  Ian Carmichael  <iancarm@cygnus.com>
506
507         * configure: Regenerated to track ../common/aclocal.m4 changes.
508         * config.in: Regenerated to track ../common/aclocal.m4 changes.
509
510 Wed Mar 25 12:35:29 1998  Andrew Cagney  <cagney@b1.cygnus.com>
511
512         * configure: Regenerated to track ../common/aclocal.m4 changes.
513
514 Wed Mar 25 10:05:46 1998  Andrew Cagney  <cagney@b1.cygnus.com>
515
516         * interp.c (Max, Min): Comment out functions. Not yet used.
517
518 start-sanitize-vr4320
519 Wed Mar 25 10:04:13 1998  Andrew Cagney  <cagney@b1.cygnus.com>
520
521         * vr4320.igen (DCLZ): Pacify GCC, 64 bit arg, int format.
522
523 end-sanitize-vr4320
524 Wed Mar 18 12:38:12 1998  Andrew Cagney  <cagney@b1.cygnus.com>
525
526         * configure: Regenerated to track ../common/aclocal.m4 changes.
527
528 Tue Mar 17 19:05:20 1998  Frank Ch. Eigler  <fche@cygnus.com>
529
530         * Makefile.in (MIPS_EXTRA_LIBS, SIM_EXTRA_LIBS): Added
531         configurable settings for stand-alone simulator.
532         
533 start-sanitize-sky
534         * configure.in: Added --with-sim-gpu2 option to specify path of
535         sky GPU2 library.  Triggers -DSKY_GPU2 for sky-gpuif.c, and
536         links/compiles stand-alone simulator with this library.
537         
538         * interp.c (MEM_SIZE): Increased default sky memory size to 16MB.
539 end-sanitize-sky        
540         * configure.in: Added X11 search, just in case.
541         
542         * configure: Regenerated.
543
544 Wed Mar 11 14:09:10 1998  Andrew Cagney  <cagney@b1.cygnus.com>
545
546         * interp.c (sim_write, sim_read, load_memory, store_memory):
547         Replace sim_core_*_map with read_map, write_map, exec_map resp.
548
549 start-sanitize-vr4320
550 Tue Mar 10 10:32:22 1998  Gavin Koch  <gavin@cygnus.com>
551
552         * vr4320.igen (clz,dclz) : Added.
553         (dmac): Replaced 99, with LO.
554
555 end-sanitize-vr4320
556 start-sanitize-vr5400
557 Fri Mar  6 08:30:58 1998  Andrew Cagney  <cagney@b1.cygnus.com>
558
559         * mdmx.igen (SHFL.REPA.fmt, SHFL.REPB.fmt): Fix bit fields.
560
561 end-sanitize-vr5400
562 start-sanitize-vr4320
563 Tue Mar  3 11:56:29 1998  Gavin Koch  <gavin@cygnus.com>
564
565         * vr4320.igen: New file.
566         * Makefile.in (vr4320.igen) : Added.
567         * configure.in (mips64vr4320-*-*): Added.
568         * configure : Rebuilt.
569         * mips.igen : Correct the bfd-names in the mips-ISA model entries.
570         Add the vr4320 model entry and mark the vr4320 insn as necessary.
571
572 end-sanitize-vr4320
573 Tue Mar  3 13:58:43 1998  Andrew Cagney  <cagney@b1.cygnus.com>
574
575         * sim-main.h (GETFCC): Return an unsigned value.
576
577 start-sanitize-r5900
578         * r5900.igen: Use an unsigned array index variable `i'.
579         (QFSRV): Ditto for variable bytes.
580         
581 end-sanitize-r5900
582 Tue Mar  3 13:21:37 1998  Andrew Cagney  <cagney@b1.cygnus.com>
583
584         * mips.igen (DIV): Fix check for -1 / MIN_INT.
585         (DADD): Result destination is RD not RT.
586
587 start-sanitize-r5900
588         * r5900.igen (DIV1): Fix check for -1 / MIN_INT.
589         (DIVU1): Don't check for MIN_INT / -1 as performing unsigned
590         divide.
591
592 end-sanitize-r5900
593 Fri Feb 27 13:49:49 1998  Andrew Cagney  <cagney@b1.cygnus.com>
594
595         * sim-main.h (HIACCESS, LOACCESS): Always define.
596
597         * mdmx.igen (Maxi, Mini): Rename Max, Min.
598
599         * interp.c (sim_info): Delete.
600
601 Fri Feb 27 18:41:01 1998  Doug Evans  <devans@canuck.cygnus.com>
602
603         * interp.c (DECLARE_OPTION_HANDLER): Use it.
604         (mips_option_handler): New argument `cpu'.
605         (sim_open): Update call to sim_add_option_table.
606
607 Wed Feb 25 18:56:22 1998  Andrew Cagney  <cagney@b1.cygnus.com>
608
609         * mips.igen (CxC1): Add tracing.
610
611 start-sanitize-r5900
612 Wed Feb 25 13:59:03 1998  Andrew Cagney  <cagney@b1.cygnus.com>
613
614         * r5900.igen (StoreFP): Delete.
615         (r59fp_store, r59fp_overflow, r59fp_op1, r59fp_op2, r59fp_op3):
616         New functions.
617         (rsqrt.s, sqrt.s): Implement.
618         (r59cond): New function.
619         (C.COND.S): Call r59cond in assembler line.
620         (cvt.w.s, cvt.s.w): Implement.
621         
622         * mips.igen (rsqrt.fmt, sqrt.fmt, cvt.*.*): Remove from r5900
623         instruction set.
624
625         * sim-main.h: Define an enum of r5900 FCSR bit fields.
626         
627 end-sanitize-r5900
628 start-sanitize-r5900
629 Tue Feb 24 14:44:18 1998  Andrew Cagney  <cagney@b1.cygnus.com>
630
631         * r5900.igen: Add tracing to all p* instructions.
632
633 Tue Feb 24 02:47:33 1998  Andrew Cagney  <cagney@b1.cygnus.com>
634
635         * interp.c (sim_store_register, sim_fetch_register): Pull swifty
636         to get gdb talking to re-aranged sim_cpu register structure.
637
638 end-sanitize-r5900
639 Fri Feb 20 17:43:21 1998  Andrew Cagney  <cagney@b1.cygnus.com>
640
641         * sim-main.h (Max, Min): Declare.
642
643         * interp.c (Max, Min): New functions.
644
645         * mips.igen (BC1): Add tracing.
646         
647 start-sanitize-vr5400
648 Fri Feb 20 16:27:17 1998  Andrew Cagney  <cagney@b1.cygnus.com>
649
650         * mdmx.igen: Tag all functions as requiring either with mdmx or
651         vr5400 processor.
652
653 end-sanitize-vr5400
654 start-sanitize-r5900
655 Fri Feb 20 15:55:51 1998  Andrew Cagney  <cagney@b1.cygnus.com>
656
657         * configure.in (SIM_AC_OPTION_FLOAT): For r5900, set FP bit size
658         to 32.
659         (SIM_AC_OPTION_BITSIZE): For r5900, set nr address bits to 32.
660
661         * mips.igen (C.cond.fmt, ..): Not part of r5900 insn set.
662
663         * r5900.igen: Rewrite.
664
665         * sim-main.h: Move r5900 registers to a separate _sim_r5900_cpu
666         struct.
667         (GPR_SB, GPR_SH, GPR_SW, GPR_SD, GPR_UB, GPR_UH, GPR_UW, GPR_UD):
668         Define in terms of GPR/GPR1 instead of REGISTERS/REGISTERS.1
669         
670 end-sanitize-r5900
671 Thu Feb 19 14:50:00 1998  John Metzler  <jmetzler@cygnus.com>
672         
673         * interp.c Added memory map for stack in vr4100
674         
675 Thu Feb 19 10:21:21 1998  Gavin Koch  <gavin@cygnus.com>
676
677         * interp.c (load_memory): Add missing "break"'s.
678
679 Tue Feb 17 12:45:35 1998  Andrew Cagney  <cagney@b1.cygnus.com>
680
681         * interp.c (sim_store_register, sim_fetch_register): Pass in
682         length parameter.  Return -1.
683
684 Tue Feb 10 11:57:40 1998  Ian Carmichael  <iancarm@cygnus.com>
685
686         * interp.c: Added hardware init hook, fixed warnings.
687
688 Sat Feb  7 17:16:20 1998  Andrew Cagney  <cagney@b1.cygnus.com>
689
690         * Makefile.in (itable.h itable.c): Depend on SIM_@sim_gen@_ALL.
691
692 Tue Feb  3 11:36:02 1998  Andrew Cagney  <cagney@b1.cygnus.com>
693
694         * interp.c (ifetch16): New function.
695
696         * sim-main.h (IMEM32): Rename IMEM.
697         (IMEM16_IMMED): Define.
698         (IMEM16): Define.
699         (DELAY_SLOT): Update.
700         
701         * m16run.c (sim_engine_run): New file.
702         
703         * m16.igen: All instructions except LB.
704         (LB): Call do_load_byte.
705         * mips.igen (do_load_byte): New function.
706         (LB): Call do_load_byte.
707
708         * mips.igen: Move spec for insn bit size and high bit from here.
709         * Makefile.in (tmp-igen, tmp-m16): To here.
710
711         * m16.dc: New file, decode mips16 instructions.
712
713         * Makefile.in (SIM_NO_ALL): Define.
714         (tmp-m16): Generate both 16 bit and 32 bit simulator engines.
715
716 start-sanitize-tx19
717         * m16.igen: Mark all mips16 insns as being part of the tx19 insn
718         set.
719
720 end-sanitize-tx19
721 Tue Feb  3 11:28:00 1998  Andrew Cagney  <cagney@b1.cygnus.com>
722
723         * configure.in (mips_fpu_bitsize): For tx39, restrict floating
724         point unit to 32 bit registers.
725         * configure: Re-generate.
726
727 Sun Feb  1 15:47:14 1998  Andrew Cagney  <cagney@b1.cygnus.com>
728
729         * configure.in (sim_use_gen): Make IGEN the default simulator
730         generator for generic 32 and 64 bit mips targets.
731         * configure: Re-generate.
732
733 Sun Feb  1 16:52:37 1998  Andrew Cagney  <cagney@b1.cygnus.com>
734
735         * sim-main.h (SizeFGR): Determine from floating-point and not gpr
736         bitsize.
737
738         * interp.c (sim_fetch_register, sim_store_register): Read/write
739         FGR from correct location.
740         (sim_open): Set size of FGR's according to
741         WITH_TARGET_FLOATING_POINT_BITSIZE.
742         
743         * sim-main.h (FGR): Store floating point registers in a separate
744         array.
745
746 Sun Feb  1 16:47:51 1998  Andrew Cagney  <cagney@b1.cygnus.com>
747
748         * configure: Regenerated to track ../common/aclocal.m4 changes.
749
750 start-sanitize-vr5400
751         * mdmx.igen: Mark all instructions as 64bit/fp specific.
752
753 end-sanitize-vr5400
754 Tue Feb  3 00:10:50 1998  Andrew Cagney  <cagney@b1.cygnus.com>
755
756         * interp.c (ColdReset): Call PENDING_INVALIDATE.
757
758         * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Call PENDING_TICK.
759
760         * interp.c (pending_tick): New function.  Deliver pending writes.
761
762         * sim-main.h (PENDING_FILL, PENDING_TICK, PENDING_SCHED,
763         PENDING_BIT, PENDING_INVALIDATE): Re-write pipeline code so that
764         it can handle mixed sized quantites and single bits.
765         
766 Mon Feb  2 17:43:15 1998  Andrew Cagney  <cagney@b1.cygnus.com>
767
768         * interp.c (oengine.h): Do not include when building with IGEN.
769         (sim_open): Replace GPRLEN by WITH_TARGET_WORD_BITSIZE.
770         (sim_info): Ditto for PROCESSOR_64BIT.
771         (sim_monitor): Replace ut_reg with unsigned_word.
772         (*): Ditto for t_reg.
773         (LOADDRMASK): Define.
774         (sim_open): Remove defunct check that host FP is IEEE compliant,
775         using software to emulate floating point.
776         (value_fpr, ...): Always compile, was conditional on HASFPU.
777
778 Sun Feb  1 11:15:29 1998  Andrew Cagney  <cagney@b1.cygnus.com>
779
780         * sim-main.h (sim_state): Make the cpu array MAX_NR_PROCESSORS in
781         size.
782
783         * interp.c (SD, CPU): Define.
784         (mips_option_handler): Set flags in each CPU.
785         (interrupt_event): Assume CPU 0 is the one being iterrupted.
786         (sim_close): Do not clear STATE, deleted anyway.
787         (sim_write, sim_read): Assume CPU zero's vm should be used for
788         data transfers.
789         (sim_create_inferior): Set the PC for all processors.
790         (sim_monitor, store_word, load_word, mips16_entry): Add cpu
791         argument.
792         (mips16_entry): Pass correct nr of args to store_word, load_word.
793         (ColdReset): Cold reset all cpu's.
794         (signal_exception): Pass cpu to sim_monitor & mips16_entry.
795         (sim_monitor, load_memory, store_memory, signal_exception): Use
796         `CPU' instead of STATE_CPU.
797
798
799         * sim-main.h: Replace uses of STATE_CPU with CPU. Replace sd with
800         SD or CPU_.
801         
802         * sim-main.h (signal_exception): Add sim_cpu arg.
803         (SignalException*): Pass both SD and CPU to signal_exception.
804         * interp.c (signal_exception): Update.
805         
806         * sim-main.h (value_fpr, store_fpr, dotrace, ifetch32), interp.c:
807         Ditto
808         (sync_operation, prefetch, cache_op, store_memory, load_memory,
809         address_translation): Ditto
810         (decode_coproc, cop_lw, cop_ld, cop_sw, cop_sd): Ditto.
811         
812 start-sanitize-vr5400
813         * mdmx.igen (get_scale): Pass CPU_ to semantic_illegal instead of
814         `sd'.
815         (ByteAlign): Use StoreFPR, pass args in correct order.
816         
817 end-sanitize-vr5400
818 start-sanitize-r5900
819 Sun Feb  1 10:59:55 1998  Andrew Cagney  <cagney@b1.cygnus.com>
820
821         * configure.in (sim_igen_filter): For r5900, configure as SMP.
822
823 end-sanitize-r5900
824 Sat Jan 31 18:15:41 1998  Andrew Cagney  <cagney@b1.cygnus.com>
825
826         * configure: Regenerated to track ../common/aclocal.m4 changes.
827
828 Sat Jan 31 14:49:24 1998  Andrew Cagney  <cagney@b1.cygnus.com>
829
830 start-sanitize-r5900
831         * configure.in (sim_igen_filter): For r5900, use igen.
832         * configure: Re-generate.
833         
834 end-sanitize-r5900
835         * interp.c (sim_engine_run): Add `nr_cpus' argument.
836
837         * mips.igen (model): Map processor names onto BFD name. 
838
839         * sim-main.h (CPU_CIA): Delete.
840         (SET_CIA, GET_CIA): Define
841
842 Wed Jan 21 16:16:27 1998  Andrew Cagney  <cagney@b1.cygnus.com>
843
844         * sim-main.h (GPR_SET): Define, used by igen when zeroing a
845         regiser.
846
847         * configure.in (default_endian): Configure a big-endian simulator
848         by default.
849         * configure: Re-generate.
850         
851 Mon Jan 19 22:26:29 1998  Doug Evans  <devans@seba>
852
853         * configure: Regenerated to track ../common/aclocal.m4 changes.
854
855 Mon Jan  5 20:38:54 1998  Mark Alexander  <marka@cygnus.com>
856
857         * interp.c (sim_monitor): Handle Densan monitor outbyte
858         and inbyte functions.
859
860 1997-12-29  Felix Lee  <flee@cygnus.com>
861
862         * interp.c (sim_engine_run): msvc cpp barfs on #if (a==b!=c).
863
864 Wed Dec 17 14:48:20 1997  Jeffrey A Law  (law@cygnus.com)
865
866         * Makefile.in (tmp-igen): Arrange for $zero to always be
867         reset to zero after every instruction.
868
869 Mon Dec 15 23:17:11 1997  Andrew Cagney  <cagney@b1.cygnus.com>
870
871         * configure: Regenerated to track ../common/aclocal.m4 changes.
872         * config.in: Ditto.
873
874 start-sanitize-vr5400
875 Sat Dec 13 15:18:51 1997  Andrew Cagney  <cagney@b1.cygnus.com>
876
877         * vr5400.igen (Low32Bits, High32Bits): Sign extend extracted 32
878         bit values.
879
880 end-sanitize-vr5400
881 start-sanitize-vr5400
882 Fri Dec 12 12:26:07 1997  Jeffrey A Law  (law@cygnus.com)
883
884         * configure.in (sim_igen_filter): Multi-sim vr5000 - vr5000 or
885         vr5400 with the vr5000 as the default.
886
887 end-sanitize-vr5400
888 Wed Dec 10 17:10:45 1997  Jeffrey A Law  (law@cygnus.com)
889
890         * mips.igen (MSUB): Fix to work like MADD.
891         * gencode.c (MSUB): Similarly.
892
893 start-sanitize-vr5400
894 Tue Dec  9 12:02:12 1997  Andrew Cagney  <cagney@b1.cygnus.com>
895
896         * configure.in (sim_igen_filter): Multi-sim vr5400 - vr5000 or
897         vr5400.
898
899 end-sanitize-vr5400
900 Thu Dec  4 09:21:05 1997  Doug Evans  <devans@canuck.cygnus.com>
901
902         * configure: Regenerated to track ../common/aclocal.m4 changes.
903
904 Wed Nov 26 11:00:23 1997  Andrew Cagney  <cagney@b1.cygnus.com>
905
906         * mips.igen (LWC1): Correct assembler - lwc1 not swc1.
907
908 start-sanitize-vr5400
909         * mdmx.igen (value_vr): Correct sim_io_eprintf format argument.
910         (value_cc, store_cc): Implement.
911
912         * sim-main.h: Add 8*3*8 bit accumulator.
913
914         * vr5400.igen: Move mdmx instructins from here
915         * mdmx.igen: To here - new file. Add/fix missing instructions.
916         * mips.igen: Include mdmx.igen.
917         * Makefile.in (IGEN_INCLUDE): Add mdmx.igen.
918
919 end-sanitize-vr5400
920 Sun Nov 23 01:45:20 1997  Andrew Cagney  <cagney@b1.cygnus.com>
921
922         * sim-main.h (sim-fpu.h): Include.
923
924         * interp.c (convert, SquareRoot, Recip, Divide, Multiply, Sub,
925         Add, Negate, AbsoluteValue, Equal, Less, Infinity, NaN): Rewrite
926         using host independant sim_fpu module.
927
928 Thu Nov 20 19:56:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
929
930         * interp.c (signal_exception): Report internal errors with SIGABRT
931         not SIGQUIT.
932
933         * sim-main.h (C0_CONFIG): New register.
934         (signal.h): No longer include.
935
936         * interp.c (decode_coproc): Allow access C0_CONFIG to register.
937
938 Tue Nov 18 15:33:48 1997  Doug Evans  <devans@canuck.cygnus.com>
939
940         * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
941
942 Fri Nov 14 11:56:48 1997  Andrew Cagney  <cagney@b1.cygnus.com>
943
944         * mips.igen: Tag vr5000 instructions.
945         (ANDI): Was missing mipsIV model, fix assembler syntax.
946         (do_c_cond_fmt): New function.
947         (C.cond.fmt): Handle mips I-III which do not support CC field
948         separatly.
949         (bc1): Handle mips IV which do not have a delaed FCC separatly.
950         (SDR): Mask paddr when BigEndianMem, not the converse as specified
951         in IV3.2 spec.
952         (DMULT, DMULTU): Force use of hosts 64bit multiplication.  Handle
953         vr5000 which saves LO in a GPR separatly.
954         
955         * configure.in (enable-sim-igen): For vr5000, select vr5000
956         specific instructions.
957         * configure: Re-generate.
958         
959 Wed Nov 12 14:42:52 1997  Andrew Cagney  <cagney@b1.cygnus.com>
960
961         * Makefile.in (SIM_OBJS): Add sim-fpu module.
962
963         * interp.c (store_fpr), sim-main.h: Add separate fmt_uninterpreted_32 and
964         fmt_uninterpreted_64 bit cases to switch.  Convert to
965         fmt_formatted,
966
967         * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Define,
968
969         * mips.igen (SWR): Mask paddr when BigEndianMem, not the converse
970         as specified in IV3.2 spec.
971         (MTC1, DMTC1): Call StoreFPR to store the GPR in the FPR.
972
973 Tue Nov 11 12:38:23 1997  Andrew Cagney  <cagney@b1.cygnus.com>
974
975         * mips.igen: Delay slot branches add OFFSET to NIA not CIA.
976         (MFC0, MTC0, SWC1, LWC1, SDC1, LDC1): Implement.
977         (start-sanitize-r5900):
978         (LWXC1, SWXC1): Delete from r5900 instruction set.
979         (end-sanitize-r5900):
980         (MTC1, MFC1, DMTC1, DMFC1, CFC1, CTC1): Implement separate non
981         PENDING_FILL versions of instructions.  Simplify.
982         (X): New function.
983         (MULT, MULTU): Implement separate RD==0 and RD!=0 versions of
984         instructions.
985         (BEQZ, ..., SLT, SLTI, TLT, TLE, TLI, ...): Explicitly cast GPR to
986         a signed value.
987         (MTHI, MFHI): Disable code checking HI-LO.
988         
989         * sim-main.h (dotrace,tracefh), interp.c: Make dotrace & tracefh
990         global.
991         (NULLIFY_NEXT_INSTRUCTION): Call dotrace.
992
993 Thu Nov  6 16:36:35 1997  Andrew Cagney  <cagney@b1.cygnus.com>
994
995         * gencode.c (build_mips16_operands): Replace IPC with cia.
996
997         * interp.c (sim_monitor, signal_exception, cache_op, store_fpr,
998         value_fpr, cop_ld, cop_lw, cop_sw, cop_sd, decode_coproc): Replace
999         IPC to `cia'.
1000         (UndefinedResult): Replace function with macro/function
1001         combination.
1002         (sim_engine_run): Don't save PC in IPC.
1003
1004         * sim-main.h (IPC): Delete.
1005
1006         start-sanitize-vr5400
1007         * vr5400.igen (vr): Add missing cia argument to value_fpr.
1008         (do_select): Rename function select.
1009         end-sanitize-vr5400
1010
1011         * interp.c (signal_exception, store_word, load_word,
1012         address_translation, load_memory, store_memory, cache_op,
1013         prefetch, sync_operation, ifetch, value_fpr, store_fpr, convert,
1014         cop_lw, cop_ld, cop_sw, cop_sd, decode_coproc, sim_monitor): Add
1015         current instruction address - cia - argument.
1016         (sim_read, sim_write): Call address_translation directly.
1017         (sim_engine_run): Rename variable vaddr to cia.
1018         (signal_exception): Pass cia to sim_monitor
1019         
1020         * sim-main.h (SignalException, LoadWord, StoreWord, CacheOp,
1021         Prefetch, SyncOperation, ValueFPR, StoreFPR, Convert, COP_LW,
1022         COP_LD, COP_SW, COP_SD, DecodeCoproc): Update.
1023
1024         * sim-main.h (SignalExceptionSimulatorFault): Delete definition.
1025         * interp.c (sim_open): Replace SignalExceptionSimulatorFault with
1026         SIM_ASSERT.
1027         
1028         * interp.c (signal_exception): Pass restart address to
1029         sim_engine_restart.
1030
1031         * Makefile.in (semantics.o, engine.o, support.o, itable.o,
1032         idecode.o): Add dependency.
1033
1034         * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESUME_HOOK):
1035         Delete definitions
1036         (DELAY_SLOT): Update NIA not PC with branch address.
1037         (NULLIFY_NEXT_INSTRUCTION): Set NIA to instruction after next.
1038
1039         * mips.igen: Use CIA not PC in branch calculations.
1040         (illegal): Call SignalException.
1041         (BEQ, ADDIU): Fix assembler.
1042
1043 Wed Nov  5 12:19:56 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1044
1045         * m16.igen (JALX): Was missing.
1046
1047         * configure.in (enable-sim-igen): New configuration option.
1048         * configure: Re-generate.
1049         
1050         * sim-main.h (MAX_INSNS, INSN_NAME): Define.
1051
1052         * interp.c (load_memory, store_memory): Delete parameter RAW.
1053         (sim_read, sim_write): Use sim_core_{read,write}_buffer directly
1054         bypassing {load,store}_memory.
1055
1056         * sim-main.h (ByteSwapMem): Delete definition.
1057
1058         * Makefile.in (SIM_OBJS): Add sim-memopt module.
1059
1060         * interp.c (sim_do_command, sim_commands): Delete mips specific
1061         commands.  Handled by module sim-options.
1062                 
1063         * sim-main.h (SIM_HAVE_FLATMEM): Undefine, use sim-core.o module.
1064         (WITH_MODULO_MEMORY): Define.
1065
1066         * interp.c (sim_info): Delete code printing memory size.
1067
1068         * interp.c (mips_size): Nee sim_size, delete function.
1069         (power2): Delete.
1070         (monitor, monitor_base, monitor_size): Delete global variables.
1071         (sim_open, sim_close): Delete code creating monitor and other
1072         memory regions.  Use sim-memopts module, via sim_do_commandf, to
1073         manage memory regions.
1074         (load_memory, store_memory): Use sim-core for memory model.
1075         
1076         * interp.c (address_translation): Delete all memory map code
1077         except line forcing 32 bit addresses.
1078
1079 Wed Nov  5 11:21:11 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1080
1081         * sim-main.h (WITH_TRACE): Delete definition.  Enables common
1082         trace options.
1083
1084         * interp.c (logfh, logfile): Delete globals.
1085         (sim_open, sim_close): Delete code opening & closing log file.
1086         (mips_option_handler): Delete -l and -n options.
1087         (OPTION mips_options): Ditto.
1088
1089         * interp.c (OPTION mips_options): Rename option trace to dinero.
1090         (mips_option_handler): Update.
1091
1092 Wed Nov  5 09:35:59 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1093
1094         * interp.c (fetch_str): New function.
1095         (sim_monitor): Rewrite using sim_read & sim_write.
1096         (sim_open): Check magic number.
1097         (sim_open): Write monitor vectors into memory using sim_write.
1098         (MONITOR_BASE, MONITOR_SIZE, MEM_SIZE): Define.
1099         (sim_read, sim_write): Simplify - transfer data one byte at a
1100         time.
1101         (load_memory, store_memory): Clarify meaning of parameter RAW.
1102
1103         * sim-main.h (isHOST): Defete definition.
1104         (isTARGET): Mark as depreciated.
1105         (address_translation): Delete parameter HOST.
1106
1107         * interp.c (address_translation): Delete parameter HOST.
1108
1109 start-sanitize-tx49
1110 Wed Oct 29 14:21:32 1997  Gavin Koch  <gavin@cygnus.com>
1111
1112         * gencode.c: Add tx49 configury and insns.
1113         * configure.in: Add tx49 configury.
1114         * configure: Update.
1115
1116 end-sanitize-tx49
1117 Wed Oct 29 11:13:56 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1118
1119         * mips.igen: 
1120
1121         * Makefile.in (IGEN_INCLUDE): Files included by mips.igen.
1122         (tmp-igen, tmp-m16): Depend on IGEN_INCLUDE.
1123
1124 Tue Oct 28 11:06:47 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1125
1126         * mips.igen: Add model filter field to records.
1127
1128 Mon Oct 27 17:53:59 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1129
1130         * Makefile.in (SIM_NO_CFLAGS): Define.  Define WITH_IGEN=0.
1131         
1132         interp.c (sim_engine_run): Do not compile function sim_engine_run
1133         when WITH_IGEN == 1.
1134
1135         * configure.in (sim_igen_flags, sim_m16_flags): Set according to
1136         target architecture.
1137
1138         Makefile.in (tmp-igen, tmp-m16): Drop -F and -M options to
1139         igen. Replace with configuration variables sim_igen_flags /
1140         sim_m16_flags.
1141
1142         start-sanitize-r5900
1143         * r5900.igen: New file. Copy r5900 insns here.
1144         end-sanitize-r5900
1145         start-sanitize-vr5400
1146         * vr5400.igen: New file. 
1147         end-sanitize-vr5400
1148         * m16.igen: New file.  Copy mips16 insns here.
1149         * mips.igen: From here.
1150
1151 Mon Oct 27 13:53:59 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1152
1153         start-sanitize-vr5400
1154         * mips.igen: Tag all mipsIV instructions with vr5400 model.
1155
1156         * configure.in: Add mips64vr5400 target.
1157         * configure: Re-generate.
1158
1159         end-sanitize-vr5400
1160         * Makefile.in (SIM_NO_OBJ): Define, move SIM_M16_OBJ, SIM_IGEN_OBJ
1161         to top.
1162         (tmp-igen, tmp-m16): Pass -I srcdir to igen.
1163
1164 Sat Oct 25 16:51:40 1997  Gavin Koch  <gavin@cygnus.com>
1165
1166         * gencode.c (build_instruction): Follow sim_write's lead in using
1167         BigEndianMem instead of !ByteSwapMem.
1168
1169 Fri Oct 24 17:41:49 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1170
1171         * configure.in (sim_gen): Dependent on target, select type of
1172         generator.  Always select old style generator.
1173
1174         configure: Re-generate.
1175
1176         Makefile.in (tmp-igen, tmp-m16, clean-m16, clean-igen): New
1177         targets.
1178         (SIM_M16_CFLAGS, SIM_M16_ALL, SIM_M16_OBJ, BUILT_SRC_FROM_M16,
1179         SIM_IGEN_CFLAGS, SIM_IGEN_ALL, SIM_IGEN_OBJ, BUILT_SRC_FROM_IGEN,
1180         IGEN_TRACE, IGEN_INSN, IGEN_DC): Define
1181         (SIM_EXTRA_CFLAGS, SIM_EXTRA_ALL, SIM_OBJS): Add member
1182         SIM_@sim_gen@_*, set by autoconf.
1183         
1184 Wed Oct 22 12:52:06 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1185
1186         * sim-main.h (NULLIFY_NEXT_INSTRUCTION, DELAY_SLOT): Define.
1187
1188         * interp.c (ColdReset): Remove #ifdef HASFPU, check
1189         CURRENT_FLOATING_POINT instead.
1190
1191         * interp.c (ifetch32): New function. Fetch 32 bit instruction.
1192         (address_translation): Raise exception InstructionFetch when
1193         translation fails and isINSTRUCTION.
1194         
1195         * interp.c (sim_open, sim_write, sim_monitor, store_word,
1196         sim_engine_run): Change type of of vaddr and paddr to
1197         address_word.
1198         (address_translation, prefetch, load_memory, store_memory,
1199         cache_op): Change type of vAddr and pAddr to address_word.
1200
1201         * gencode.c (build_instruction): Change type of vaddr and paddr to
1202         address_word.
1203
1204 Mon Oct 20 15:29:04 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1205
1206         * sim-main.h (ALU64_END, ALU32_END): Use ALU*_OVERFLOW_RESULT
1207         macro to obtain result of ALU op.
1208
1209 Tue Oct 21 17:39:14 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1210
1211         * interp.c (sim_info): Call profile_print.
1212
1213 Mon Oct 20 13:31:20 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1214
1215         * Makefile.in (SIM_OBJS): Add sim-profile.o module.
1216
1217         * sim-main.h (WITH_PROFILE): Do not define, defined in
1218         common/sim-config.h.  Use sim-profile module.
1219         (simPROFILE): Delete defintion.
1220
1221         * interp.c (PROFILE): Delete definition.
1222         (mips_option_handler): Delete 'p', 'y' and 'x' profile options.
1223         (sim_close): Delete code writing profile histogram.
1224         (mips_set_profile, mips_set_profile_size, writeout16, writeout32):
1225         Delete.
1226         (sim_engine_run): Delete code profiling the PC.
1227
1228 Mon Oct 20 13:31:20 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1229
1230         * sim-main.h (SIGNEXTEND): Force type of result to unsigned_word.
1231
1232         * interp.c (sim_monitor): Make register pointers of type
1233         unsigned_word*.
1234
1235         * sim-main.h: Make registers of type unsigned_word not
1236         signed_word.
1237
1238 Thu Oct 16 10:31:39 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1239
1240 start-sanitize-r5900
1241         * sim-main.h (BYTES_IN_MMI_REGS, ..., SUB_REG_FETCH, ..., GPR_SB,
1242         ...): Move to sim-main.h
1243         
1244 end-sanitize-r5900
1245         * interp.c (sync_operation): Rename from SyncOperation, make
1246         global, add SD argument.
1247         (prefetch): Rename from Prefetch, make global, add SD argument.
1248         (decode_coproc): Make global.
1249
1250         * sim-main.h (SyncOperation, DecodeCoproc, Pefetch): Define.
1251
1252         * gencode.c (build_instruction): Generate DecodeCoproc not
1253         decode_coproc calls.
1254
1255         * interp.c (SETFCC, GETFCC, PREVCOC1): Move to sim-main.h
1256         (SizeFGR): Move to sim-main.h
1257         (simHALTEX, simHALTIN, simTRACE, simPROFILE, simDELAYSLOT,
1258         simSIGINT, simJALDELAYSLOT): Move to sim-main.h
1259         (FP_FLAGS, FP_ENABLE, FP_CAUSE, IR, UF, OF, DZ, IO, UO): Move to
1260         sim-main.h.
1261         (FP_FS, FP_MASK_RM, FP_SH_RM, FP_RM_NEAREST, FP_RM_TOPINF,
1262         FP_RM_TOMINF, GETRM): Move to sim-main.h.
1263         (Uncached, CachedNoncoherent, CachedCoherent, Cached,
1264         isINSTRUCTION, ..., AccessLength_BYTE, ...): Move to sim-main.h.
1265         (UserMode, BigEndianMem, ByteSwapMem, ReverseEndian,
1266         BigEndianCPU, status_KSU_mask, ...). Moved to sim-main.h
1267         
1268         * sim-main.h (ALU32_END, ALU64_END): Define. When overflow raise
1269         exception.
1270         (sim-alu.h): Include.
1271         (NULLIFY_NIA, NULL_CIA, CPU_CIA): Define.
1272         (sim_cia): Typedef to instruction_address.
1273         
1274 Thu Oct 16 10:31:41 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1275
1276         * Makefile.in (interp.o): Rename generated file engine.c to
1277         oengine.c.
1278         
1279         * interp.c: Update.
1280         
1281 Thu Oct 16 10:31:40 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1282
1283         * gencode.c (build_instruction): Use FPR_STATE not fpr_state.
1284         
1285 Thu Oct 16 10:31:39 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1286
1287         * gencode.c (build_instruction): For "FPSQRT", output correct
1288         number of arguments to Recip.
1289         
1290 Tue Oct 14 17:38:18 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1291
1292         * Makefile.in (interp.o): Depends on sim-main.h
1293
1294         * interp.c (mips16_entry, ColdReset,dotrace): Add SD argument. Use GPR not registers.
1295
1296         * sim-main.h (sim_cpu): Add registers, register_widths, fpr_state,
1297         ipc, dspc, pending_*, hiaccess, loaccess, state, dsstate fields.
1298         (REGISTERS, REGISTER_WIDTHS, FPR_STATE, IPC, DSPC, PENDING_*,
1299         STATE, DSSTATE): Define
1300         (GPR, FGRIDX, ..): Define.
1301
1302         * interp.c (registers, register_widths, fpr_state, ipc, dspc,
1303         pending_*, hiaccess, loaccess, state, dsstate): Delete globals.
1304         (GPR, FGRIDX, ...): Delete macros.
1305         
1306         * interp.c: Update names to match defines from sim-main.h
1307         
1308 Tue Oct 14 15:11:45 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1309
1310         * interp.c (sim_monitor): Add SD argument.
1311         (sim_warning): Delete.  Replace calls with calls to
1312         sim_io_eprintf.
1313         (sim_error): Delete. Replace calls with sim_io_error.
1314         (open_trace, writeout32, writeout16, getnum): Add SD argument.
1315         (mips_set_profile): Rename from sim_set_profile. Add SD argument.
1316         (mips_set_profile_size): Rename from sim_set_profile_size. Add SD
1317         argument.
1318         (mips_size): Rename from sim_size. Add SD argument.
1319
1320         * interp.c (simulator): Delete global variable.
1321         (callback): Delete global variable.
1322         (mips_option_handler, sim_open, sim_write, sim_read,
1323         sim_store_register, sim_fetch_register, sim_info, sim_do_command,
1324         sim_size,sim_monitor): Use sim_io_* not callback->*.
1325         (sim_open): ZALLOC simulator struct.
1326         (PROFILE): Do not define.
1327
1328 Tue Oct 14 13:35:48 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1329
1330         * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
1331         support.h with corresponding code.
1332
1333         * sim-main.h (word64, uword64), support.h: Move definition to
1334         sim-main.h.
1335         (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
1336
1337         * support.h: Delete
1338         * Makefile.in: Update dependencies
1339         * interp.c: Do not include.
1340         
1341 Tue Oct 14 13:35:48 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1342
1343         * interp.c (address_translation, load_memory, store_memory,
1344         cache_op): Rename to from AddressTranslation et.al., make global,
1345         add SD argument
1346         
1347         * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
1348         CacheOp): Define.
1349         
1350         * interp.c (SignalException): Rename to signal_exception, make
1351         global.
1352
1353         * interp.c (Interrupt, ...): Move definitions to sim-main.h.
1354         
1355         * sim-main.h (SignalException, SignalExceptionInterrupt,
1356         SignalExceptionInstructionFetch, SignalExceptionAddressStore,
1357         SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
1358         SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
1359         Define.
1360         
1361         * interp.c, support.h: Use.
1362         
1363 Tue Oct 14 13:19:20 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1364
1365         * interp.c (ValueFPR, StoreFPR), sim-main.h: Make global, rename
1366         to value_fpr / store_fpr. Add SD argument.
1367         (NaN, Infinity, Less, Equal, AbsoluteValue, Negate, Add, Sub,
1368         Multiply, Divide, Recip, SquareRoot, Convert): Make global.
1369
1370         * sim-main.h (ValueFPR, StoreFPR): Define.
1371         
1372 Tue Oct 14 13:06:55 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1373
1374         * interp.c (sim_engine_run): Check consistency between configure
1375         WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
1376         and HASFPU.
1377
1378         * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
1379         (mips_fpu): Configure WITH_FLOATING_POINT.
1380         (mips_endian): Configure WITH_TARGET_ENDIAN.
1381         * configure: Update.
1382
1383 Fri Oct  3 09:28:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1384
1385         * configure: Regenerated to track ../common/aclocal.m4 changes.
1386
1387 start-sanitize-r5900
1388 Mon Aug 25 19:11:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1389
1390         * interp.c (MAX_REG): Allow up-to 128 registers.
1391         (LO1, HI1): Define value that matches REGISTER_NAMES in gdb.
1392         (REGISTER_SA): Ditto.
1393         (sim_open): Initialize register_widths for r5900 specific
1394         registers.
1395         (sim_fetch_register, sim_store_register): Check for request of
1396         r5900 specific SA register.  Check for request for hi 64 bits of
1397         r5900 specific registers.
1398         
1399 end-sanitize-r5900
1400 Mon Sep 29 14:45:00 1997  Bob Manson  <manson@charmed.cygnus.com>
1401
1402         * configure: Regenerated.
1403
1404 Fri Sep 26 12:48:18 1997  Mark Alexander  <marka@cygnus.com>
1405
1406         * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
1407
1408 Thu Sep 25 11:15:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1409
1410         * gencode.c (print_igen_insn_models): Assume certain architectures
1411         include all mips* instructions.
1412         (print_igen_insn_format): Use data_size==-1 as marker for MIPS16
1413         instruction.
1414
1415         * Makefile.in (tmp.igen): Add target. Generate igen input from
1416         gencode file.
1417
1418         * gencode.c (FEATURE_IGEN): Define.
1419         (main): Add --igen option.  Generate output in igen format.
1420         (process_instructions): Format output according to igen option.
1421         (print_igen_insn_format): New function.
1422         (print_igen_insn_models): New function.
1423         (process_instructions): Only issue warnings and ignore
1424         instructions when no FEATURE_IGEN.
1425
1426 Wed Sep 24 17:38:57 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1427
1428         * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
1429         MIPS targets.
1430
1431 Tue Sep 23 11:04:38 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1432
1433         * configure: Regenerated to track ../common/aclocal.m4 changes.
1434
1435 Tue Sep 23 10:19:51 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1436
1437         * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
1438         SIM_RESERVED_BITS): Delete, moved to common.
1439         (SIM_EXTRA_CFLAGS): Update.
1440         
1441 Mon Sep 22 11:46:20 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1442
1443         * configure.in: Configure non-strict memory alignment.
1444         * configure: Regenerated to track ../common/aclocal.m4 changes.
1445
1446 Fri Sep 19 17:45:25 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1447
1448         * configure: Regenerated to track ../common/aclocal.m4 changes.
1449
1450 Sat Sep 20 14:07:28 1997  Gavin Koch  <gavin@cygnus.com>
1451
1452         * gencode.c (SDBBP,DERET): Added (3900) insns.
1453         (RFE): Turn on for 3900.
1454         * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
1455         (dsstate): Made global.
1456         (SUBTARGET_R3900): Added.
1457         (CANCELDELAYSLOT): New.
1458         (SignalException): Ignore SystemCall rather than ignore and
1459         terminate.  Add DebugBreakPoint handling.
1460         (decode_coproc): New insns RFE, DERET; and new registers Debug
1461         and DEPC protected by SUBTARGET_R3900.
1462         (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
1463         bits explicitly.
1464         * Makefile.in,configure.in: Add mips subtarget option.
1465         * configure: Update.    
1466
1467 Fri Sep 19 09:33:27 1997  Gavin Koch  <gavin@cygnus.com>
1468
1469         * gencode.c: Add r3900 (tx39).
1470         
1471 start-sanitize-tx19
1472         * gencode.c: Fix some configuration problems by improving 
1473         the relationship between tx19 and tx39.
1474 end-sanitize-tx19
1475
1476 Tue Sep 16 15:52:04 1997  Gavin Koch  <gavin@cygnus.com>
1477
1478         * gencode.c (build_instruction): Don't need to subtract 4 for
1479         JALR, just 2.
1480
1481 Tue Sep 16 11:32:28 1997  Gavin Koch  <gavin@cygnus.com>
1482
1483         * interp.c: Correct some HASFPU problems.
1484
1485 Mon Sep 15 17:36:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1486
1487         * configure: Regenerated to track ../common/aclocal.m4 changes.
1488
1489 Fri Sep 12 12:01:39 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1490
1491         * interp.c (mips_options): Fix samples option short form, should
1492         be `x'.
1493
1494 Thu Sep 11 09:35:29 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1495
1496         * interp.c (sim_info): Enable info code.  Was just returning.
1497
1498 Tue Sep  9 17:30:57 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1499
1500         * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
1501         MFC0.
1502
1503 Tue Sep  9 16:28:28 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1504
1505         * gencode.c (build_instruction): Use SIGNED64 for 64 bit
1506         constants.
1507         (build_instruction): Ditto for LL.
1508
1509 start-sanitize-tx19
1510 Sun Sep  7 16:05:46 1997  Gavin Koch  <gavin@cygnus.com>
1511
1512         * mips/configure.in, mips/gencode: Add tx19/r1900.
1513
1514 end-sanitize-tx19
1515 Thu Sep  4 17:21:23 1997  Doug Evans  <dje@seba>
1516
1517         * configure: Regenerated to track ../common/aclocal.m4 changes.
1518
1519 start-sanitize-r5900
1520 Mon Sep  1 18:43:30 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1521
1522         * gencode.c (build_instruction): For "pabsw" and "pabsh", check
1523         for overflow due to ABS of MININT, set result to MAXINT.
1524         (build_instruction): For "psrlvw", signextend bit 31.
1525
1526 end-sanitize-r5900
1527 Wed Aug 27 18:13:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1528
1529         * configure: Regenerated to track ../common/aclocal.m4 changes.
1530         * config.in: Ditto.
1531
1532 Wed Aug 27 14:12:27 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1533
1534         * interp.c (sim_open): Add call to sim_analyze_program, update
1535         call to sim_config.
1536
1537 Tue Aug 26 10:40:07 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1538
1539         * interp.c (sim_kill): Delete.
1540         (sim_create_inferior): Add ABFD argument. Set PC from same.
1541         (sim_load): Move code initializing trap handlers from here.
1542         (sim_open): To here.
1543         (sim_load): Delete, use sim-hload.c.
1544
1545         * Makefile.in (SIM_OBJS): Add sim-hload.o module.
1546
1547 Mon Aug 25 17:50:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1548
1549         * configure: Regenerated to track ../common/aclocal.m4 changes.
1550         * config.in: Ditto.
1551
1552 Mon Aug 25 15:59:48 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1553
1554         * interp.c (sim_open): Add ABFD argument.
1555         (sim_load): Move call to sim_config from here.
1556         (sim_open): To here.  Check return status.
1557
1558 start-sanitize-r5900
1559         * gencode.c (build_instruction): Do not define x8000000000000000,
1560         x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
1561
1562 end-sanitize-r5900
1563 start-sanitize-r5900
1564 Mon Jul 28 19:49:29 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1565
1566         * gencode.c (build_instruction): For "pdivw", "pdivbw" and
1567         "pdivuw" check for overflow due to signed divide by -1.
1568
1569 end-sanitize-r5900
1570 Fri Jul 25 15:00:45 1997  Gavin Koch  <gavin@cygnus.com>
1571  
1572         * gencode.c (build_instruction): Two arg MADD should
1573         not assign result to $0.
1574  
1575 start-sanitize-r5900
1576 Thu Jul 10 11:58:48 1997  Andrew Cagney  <cagney@critters.cygnus.com>
1577
1578         * gencode.c (build_instruction): For "ppac5" use unsigned
1579         arrithmetic so that the sign bit doesn't smear when right shifted.
1580         (build_instruction): For "pdiv" perform sign extension when
1581         storing results in HI and LO.
1582         (build_instructions): For "pdiv" and "pdivbw" check for
1583         divide-by-zero.
1584         (build_instruction): For "pmfhl.slw" update hi part of dest
1585         register as well as low part.
1586         (build_instruction): For "pmfhl" portably handle long long values.
1587         (build_instruction): For "pmfhl.sh" correctly negative values.
1588         Store half words 2 and three in the correct place.
1589         (build_instruction): For "psllvw", sign extend value after shift.
1590
1591 end-sanitize-r5900
1592 Thu Jun 26 12:13:17 1997  Angela Marie Thomas (angela@cygnus.com)
1593
1594         * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
1595         * sim/mips/configure.in: Regenerate.
1596
1597 Wed Jul  9 10:29:21 1997  Andrew Cagney  <cagney@critters.cygnus.com>
1598
1599         * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
1600         signed8, unsigned8 et.al. types.
1601
1602 start-sanitize-r5900
1603         * gencode.c (build_instruction): For PMULTU* do not sign extend
1604         registers.  Make generated code easier to debug.
1605
1606 end-sanitize-r5900
1607         * interp.c (SUB_REG_FETCH): Handle both little and big endian
1608         hosts when selecting subreg.
1609
1610 start-sanitize-r5900
1611 Tue Jul  8 18:07:20 1997  Andrew Cagney  <cagney@andros.cygnus.com>
1612
1613         * gencode.c (type_for_data_len): For 32bit operations concerned
1614         with overflow, perform op using 64bits.
1615         (build_instruction): For PADD, always compute operation using type
1616         returned by type_for_data_len.
1617         (build_instruction): For PSUBU, when overflow, saturate to zero as
1618         actually underflow.
1619
1620 end-sanitize-r5900
1621 Wed Jul  2 11:54:10 1997  Jeffrey A Law  (law@cygnus.com)
1622
1623 start-sanitize-r5900
1624         * gencode.c (build_instruction): Handle "pext5" according to
1625         version 1.95 of the r5900 ISA.
1626
1627         * gencode.c (build_instruction): Handle "ppac5" according to
1628         version 1.95 of the r5900 ISA.
1629
1630 end-sanitize-r5900
1631         * interp.c (sim_engine_run): Reset the ZERO register to zero
1632         regardless of FEATURE_WARN_ZERO.
1633         * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
1634
1635 Wed Jun  4 10:43:14 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1636
1637         * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
1638         (SignalException): For BreakPoints ignore any mode bits and just
1639         save the PC.
1640         (SignalException): Always set the CAUSE register.
1641
1642 Tue Jun  3 05:00:33 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1643
1644         * interp.c (SignalException): Clear the simDELAYSLOT flag when an
1645         exception has been taken.
1646
1647         * interp.c: Implement the ERET and mt/f sr instructions.
1648
1649 start-sanitize-r5900
1650 Mon Jun  2 23:28:19 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1651
1652         * gencode.c (build_instruction): For paddu, extract unsigned
1653         sub-fields.
1654
1655         * gencode.c (build_instruction): Saturate padds instead of padd
1656         instructions.
1657
1658 end-sanitize-r5900
1659 Sat May 31 00:44:16 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1660
1661         * interp.c (SignalException): Don't bother restarting an
1662         interrupt.
1663
1664 Fri May 30 23:41:48 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1665
1666         * interp.c (SignalException): Really take an interrupt.
1667         (interrupt_event): Only deliver interrupts when enabled.
1668
1669 Tue May 27 20:08:06 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1670
1671         * interp.c (sim_info): Only print info when verbose.
1672         (sim_info) Use sim_io_printf for output.
1673         
1674 Tue May 27 14:22:23 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1675
1676         * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
1677         mips architectures.
1678
1679 Tue May 27 14:22:23 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1680
1681         * interp.c (sim_do_command): Check for common commands if a
1682         simulator specific command fails.
1683
1684 Thu May 22 09:32:03 1997  Gavin Koch  <gavin@cygnus.com>
1685
1686         * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
1687         and simBE when DEBUG is defined.
1688
1689 Wed May 21 09:08:10 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1690
1691         * interp.c (interrupt_event): New function.  Pass exception event
1692         onto exception handler.
1693
1694         * configure.in: Check for stdlib.h.
1695         * configure: Regenerate.
1696
1697         * gencode.c (build_instruction): Add UNUSED attribute to tempS
1698         variable declaration.
1699         (build_instruction): Initialize memval1.
1700         (build_instruction): Add UNUSED attribute to byte, bigend,
1701         reverse.
1702         (build_operands): Ditto.
1703
1704         * interp.c: Fix GCC warnings.
1705         (sim_get_quit_code): Delete.
1706
1707         * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
1708         * Makefile.in: Ditto.
1709         * configure: Re-generate.
1710         
1711         * Makefile.in (SIM_OBJS): Add sim-watch.o module.
1712
1713 Tue May 20 15:08:56 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1714
1715         * interp.c (mips_option_handler): New function parse argumes using
1716         sim-options.
1717         (myname): Replace with STATE_MY_NAME.
1718         (sim_open): Delete check for host endianness - performed by
1719         sim_config.
1720         (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
1721         (sim_open): Move much of the initialization from here.
1722         (sim_load): To here.  After the image has been loaded and
1723         endianness set.
1724         (sim_open): Move ColdReset from here.
1725         (sim_create_inferior): To here.
1726         (sim_open): Make FP check less dependant on host endianness.
1727
1728         * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
1729         run.
1730         * interp.c (sim_set_callbacks): Delete.
1731
1732         * interp.c (membank, membank_base, membank_size): Replace with
1733         STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
1734         (sim_open): Remove call to callback->init. gdb/run do this.
1735
1736         * interp.c: Update
1737
1738         * sim-main.h (SIM_HAVE_FLATMEM): Define.
1739
1740         * interp.c (big_endian_p): Delete, replaced by
1741         current_target_byte_order.
1742
1743 Tue May 20 13:55:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1744
1745         * interp.c (host_read_long, host_read_word, host_swap_word,
1746         host_swap_long): Delete. Using common sim-endian.
1747         (sim_fetch_register, sim_store_register): Use H2T.
1748         (pipeline_ticks): Delete.  Handled by sim-events.
1749         (sim_info): Update.
1750         (sim_engine_run): Update.
1751
1752 Tue May 20 13:42:03 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1753
1754         * interp.c (sim_stop_reason): Move code determining simEXCEPTION
1755         reason from here.
1756         (SignalException): To here. Signal using sim_engine_halt.
1757         (sim_stop_reason): Delete, moved to common.
1758         
1759 Tue May 20 10:19:48 1997  Andrew Cagney  <cagney@b2.cygnus.com>
1760
1761         * interp.c (sim_open): Add callback argument.
1762         (sim_set_callbacks): Delete SIM_DESC argument.
1763         (sim_size): Ditto.
1764
1765 Mon May 19 18:20:38 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1766
1767         * Makefile.in (SIM_OBJS): Add common modules.
1768
1769         * interp.c (sim_set_callbacks): Also set SD callback.
1770         (set_endianness, xfer_*, swap_*): Delete.
1771         (host_read_word, host_read_long, host_swap_word, host_swap_long):
1772         Change to functions using sim-endian macros.
1773         (control_c, sim_stop): Delete, use common version.
1774         (simulate): Convert into.
1775         (sim_engine_run): This function.
1776         (sim_resume): Delete.
1777         
1778         * interp.c (simulation): New variable - the simulator object.
1779         (sim_kind): Delete global - merged into simulation.
1780         (sim_load): Cleanup.  Move PC assignment from here.
1781         (sim_create_inferior): To here.
1782
1783         * sim-main.h: New file.
1784         * interp.c (sim-main.h): Include.
1785         
1786 Thu Apr 24 00:39:51 1997  Doug Evans  <dje@canuck.cygnus.com>
1787
1788         * configure: Regenerated to track ../common/aclocal.m4 changes.
1789
1790 Wed Apr 23 17:32:19 1997  Doug Evans  <dje@canuck.cygnus.com>
1791
1792         * tconfig.in (SIM_HAVE_BIENDIAN): Define.
1793
1794 Mon Apr 21 17:16:13 1997  Gavin Koch  <gavin@cygnus.com>
1795
1796         * gencode.c (build_instruction): DIV instructions: check 
1797         for division by zero and integer overflow before using 
1798         host's division operation.
1799
1800 Thu Apr 17 03:18:14 1997  Doug Evans  <dje@canuck.cygnus.com>
1801
1802         * Makefile.in (SIM_OBJS): Add sim-load.o.
1803         * interp.c: #include bfd.h.
1804         (target_byte_order): Delete.
1805         (sim_kind, myname, big_endian_p): New static locals.
1806         (sim_open): Set sim_kind, myname.  Move call to set_endianness to
1807         after argument parsing.  Recognize -E arg, set endianness accordingly.
1808         (sim_load): Return SIM_RC.  New arg abfd.  Call sim_load_file to
1809         load file into simulator.  Set PC from bfd.
1810         (sim_create_inferior): Return SIM_RC.  Delete arg start_address.
1811         (set_endianness): Use big_endian_p instead of target_byte_order.
1812
1813 Wed Apr 16 17:55:37 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1814
1815         * interp.c (sim_size): Delete prototype - conflicts with
1816         definition in remote-sim.h.  Correct definition.
1817
1818 Mon Apr  7 15:45:02 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
1819
1820         * configure: Regenerated to track ../common/aclocal.m4 changes.
1821         * config.in: Ditto.
1822
1823 Wed Apr  2 15:06:28 1997  Doug Evans  <dje@canuck.cygnus.com>
1824
1825         * interp.c (sim_open): New arg `kind'.
1826
1827         * configure: Regenerated to track ../common/aclocal.m4 changes.
1828
1829 Wed Apr  2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1830
1831         * configure: Regenerated to track ../common/aclocal.m4 changes.
1832
1833 Tue Mar 25 11:38:22 1997  Doug Evans  <dje@canuck.cygnus.com>
1834
1835         * interp.c (sim_open): Set optind to 0 before calling getopt.
1836
1837 Wed Mar 19 01:14:00 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
1838
1839         * configure: Regenerated to track ../common/aclocal.m4 changes.
1840
1841 Mon Mar 17 10:52:59 1997  Gavin Koch  <gavin@cetus.cygnus.com>
1842
1843         * interp.c : Replace uses of pr_addr with pr_uword64
1844         where the bit length is always 64 independent of SIM_ADDR.
1845         (pr_uword64) : added.
1846
1847 Mon Mar 17 15:10:07 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
1848
1849         * configure: Re-generate.
1850
1851 Fri Mar 14 10:34:11 1997  Michael Meissner  <meissner@cygnus.com>
1852
1853         * configure: Regenerate to track ../common/aclocal.m4 changes.
1854
1855 Thu Mar 13 12:51:36 1997  Doug Evans  <dje@canuck.cygnus.com>
1856
1857         * interp.c (sim_open): New SIM_DESC result.  Argument is now
1858         in argv form.
1859         (other sim_*): New SIM_DESC argument.
1860
1861 start-sanitize-r5900
1862 Wed Feb 26 18:32:21 1997  Gavin Koch  <gavin@cygnus.com>
1863
1864         * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR): 
1865         Change values to avoid overloading DOUBLEWORD which is tested
1866         for all insns.
1867         * gencode.c: reinstate "offending code".
1868
1869 end-sanitize-r5900
1870 Mon Feb 24 22:47:14 1997  Dawn Perchik  <dawn@cygnus.com>
1871
1872         * interp.c: Fix printing of addresses for non-64-bit targets.
1873         (pr_addr): Add function to print address based on size.
1874 start-sanitize-r5900
1875         * gencode.c: #ifdef out offending code until a permanent fix 
1876         can be added.  Code is causing build errors for non-5900 mips targets.
1877 end-sanitize-r5900
1878
1879 start-sanitize-r5900
1880 Thu Feb 20 10:40:24 1997  Gavin Koch  <gavin@cetus.cygnus.com>
1881
1882         * gencode.c (process_instructions): Correct test for ISA dependent
1883         architecture bits in isa field of MIPS_DECODE.
1884
1885 end-sanitize-r5900
1886 Wed Feb 19 14:42:09 1997  Mark Alexander  <marka@cygnus.com>
1887
1888         * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
1889
1890 start-sanitize-r5900
1891 Tue Feb 18 17:03:47 1997  Gavin Koch  <gavin@cygnus.com>
1892
1893         * gencode.c (MIPS_DECODE): Correct instruction feature flags for 
1894         PMADDUW.
1895
1896 end-sanitize-r5900
1897 Thu Feb 13 14:08:30 1997  Ian Lance Taylor  <ian@cygnus.com>
1898
1899         * gencode.c (build_mips16_operands): Correct computation of base
1900         address for extended PC relative instruction.
1901
1902 start-sanitize-r5900
1903 Fri Feb  7 11:12:44 1997  Gavin Koch  <gavin@cygnus.com>
1904
1905         * Makefile.in, configure, configure.in, gencode.c, 
1906         interp.c, support.h: add r5900.
1907
1908 end-sanitize-r5900
1909 Thu Feb  6 17:16:15 1997  Ian Lance Taylor  <ian@cygnus.com>
1910
1911         * interp.c (mips16_entry): Add support for floating point cases.
1912         (SignalException): Pass floating point cases to mips16_entry.
1913         (ValueFPR): Don't restrict fmt_single and fmt_word to even
1914         registers.
1915         (StoreFPR): Likewise.  Also, don't clobber fpr + 1 for fmt_single
1916         or fmt_word.
1917         (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
1918         and then set the state to fmt_uninterpreted.
1919         (COP_SW): Temporarily set the state to fmt_word while calling
1920         ValueFPR.
1921
1922 Tue Feb  4 16:48:25 1997  Ian Lance Taylor  <ian@cygnus.com>
1923
1924         * gencode.c (build_instruction): The high order may be set in the
1925         comparison flags at any ISA level, not just ISA 4.
1926
1927 Tue Feb  4 13:33:30 1997  Doug Evans  <dje@canuck.cygnus.com>
1928
1929         * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1930         COMMON_{PRE,POST}_CONFIG_FRAG instead.
1931         * configure.in: sinclude ../common/aclocal.m4.
1932         * configure: Regenerated.
1933
1934 Fri Jan 31 11:11:45 1997  Ian Lance Taylor  <ian@cygnus.com>
1935
1936         * configure: Rebuild after change to aclocal.m4.
1937
1938 Thu Jan 23 11:46:23 1997  Stu Grossman  (grossman@critters.cygnus.com)
1939
1940         * configure configure.in Makefile.in:  Update to new configure
1941         scheme which is more compatible with WinGDB builds.
1942         * configure.in:  Improve comment on how to run autoconf.
1943         * configure:  Re-run autoconf to get new ../common/aclocal.m4.
1944         * Makefile.in:  Use autoconf substitution to install common
1945         makefile fragment.
1946
1947 Wed Jan  8 12:39:03 1997  Jim Wilson  <wilson@cygnus.com>
1948
1949         * gencode.c (build_instruction): Use BigEndianCPU instead of
1950         ByteSwapMem.
1951
1952 Thu Jan 02 22:23:04 1997  Mark Alexander  <marka@cygnus.com>
1953
1954         * interp.c (sim_monitor): Make output to stdout visible in
1955         wingdb's I/O log window.
1956
1957 Tue Dec 31 07:04:00 1996  Mark Alexander  <marka@cygnus.com>
1958
1959         * support.h: Undo previous change to SIGTRAP
1960         and SIGQUIT values.
1961
1962 Mon Dec 30 17:36:06 1996  Ian Lance Taylor  <ian@cygnus.com>
1963
1964         * interp.c (store_word, load_word): New static functions.
1965         (mips16_entry): New static function.
1966         (SignalException): Look for mips16 entry and exit instructions.
1967         (simulate): Use the correct index when setting fpr_state after
1968         doing a pending move.
1969
1970 Sun Dec 29 09:37:18 1996  Mark Alexander  <marka@cygnus.com>
1971
1972         * interp.c: Fix byte-swapping code throughout to work on
1973         both little- and big-endian hosts.
1974
1975 Sun Dec 29 09:18:32 1996  Mark Alexander  <marka@cygnus.com>
1976
1977         * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
1978         with gdb/config/i386/xm-windows.h.
1979
1980 Fri Dec 27 22:48:51 1996  Mark Alexander  <marka@cygnus.com>
1981
1982         * gencode.c (build_instruction): Work around MSVC++ code gen bug
1983         that messes up arithmetic shifts.
1984
1985 Fri Dec 20 11:04:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
1986
1987         * support.h:  Use _WIN32 instead of __WIN32__.  Also add defs for
1988         SIGTRAP and SIGQUIT for _WIN32.
1989
1990 Thu Dec 19 14:07:27 1996  Ian Lance Taylor  <ian@cygnus.com>
1991
1992         * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
1993         force a 64 bit multiplication.
1994         (build_instruction) [OR]: In mips16 mode, don't do anything if the
1995         destination register is 0, since that is the default mips16 nop
1996         instruction.
1997
1998 Mon Dec 16 14:59:38 1996  Ian Lance Taylor  <ian@cygnus.com>
1999
2000         * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
2001         (build_endian_shift): Don't check proc64.
2002         (build_instruction): Always set memval to uword64.  Cast op2 to
2003         uword64 when shifting it left in memory instructions.  Always use
2004         the same code for stores--don't special case proc64.
2005
2006         * gencode.c (build_mips16_operands): Fix base PC value for PC
2007         relative operands.
2008         (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
2009         jal instruction.
2010         * interp.c (simJALDELAYSLOT): Define.
2011         (JALDELAYSLOT): Define.
2012         (INDELAYSLOT, INJALDELAYSLOT): Define.
2013         (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
2014
2015 Tue Dec 24 22:11:20 1996  Angela Marie Thomas (angela@cygnus.com)
2016
2017         * interp.c (sim_open): add flush_cache as a PMON routine
2018         (sim_monitor): handle flush_cache by ignoring it
2019
2020 Wed Dec 11 13:53:51 1996  Jim Wilson  <wilson@cygnus.com>
2021
2022         * gencode.c (build_instruction): Use !ByteSwapMem instead of
2023         BigEndianMem.
2024         * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
2025         (BigEndianMem): Rename to ByteSwapMem and change sense.
2026         (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
2027         BigEndianMem references to !ByteSwapMem.
2028         (set_endianness): New function, with prototype.
2029         (sim_open): Call set_endianness.
2030         (sim_info): Use simBE instead of BigEndianMem.
2031         (xfer_direct_word, xfer_direct_long, swap_direct_word,
2032         swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
2033         xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
2034         ifdefs, keeping the prototype declaration.
2035         (swap_word): Rewrite correctly.
2036         (ColdReset): Delete references to CONFIG.  Delete endianness related
2037         code; moved to set_endianness.
2038         
2039 Tue Dec 10 11:32:04 1996  Jim Wilson  <wilson@cygnus.com>
2040
2041         * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
2042         * interp.c (CHECKHILO): Define away.
2043         (simSIGINT): New macro.
2044         (membank_size): Increase from 1MB to 2MB.
2045         (control_c): New function.
2046         (sim_resume): Rename parameter signal to signal_number.  Add local
2047         variable prev.  Call signal before and after simulate.
2048         (sim_stop_reason): Add simSIGINT support.
2049         (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
2050         functions always.
2051         (sim_warning): Delete call to SignalException.  Do call printf_filtered
2052         if logfh is NULL.
2053         (AddressTranslation): Add #ifdef DEBUG around debugging message and
2054         a call to sim_warning.
2055
2056 Wed Nov 27 11:53:50 1996  Ian Lance Taylor  <ian@cygnus.com>
2057
2058         * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
2059         16 bit instructions.
2060
2061 Tue Nov 26 11:53:12 1996  Ian Lance Taylor  <ian@cygnus.com>
2062
2063         Add support for mips16 (16 bit MIPS implementation):
2064         * gencode.c (inst_type): Add mips16 instruction encoding types.
2065         (GETDATASIZEINSN): Define.
2066         (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv.  Add
2067         jalx.  Add LEFT flag to mfhi and mflo.  Add RIGHT flag to mthi and
2068         mtlo.
2069         (MIPS16_DECODE): New table, for mips16 instructions.
2070         (bitmap_val): New static function.
2071         (struct mips16_op): Define.
2072         (mips16_op_table): New table, for mips16 operands.
2073         (build_mips16_operands): New static function.
2074         (process_instructions): If PC is odd, decode a mips16
2075         instruction.  Break out instruction handling into new
2076         build_instruction function.
2077         (build_instruction): New static function, broken out of
2078         process_instructions.  Check modifiers rather than flags for SHIFT
2079         bit count and m[ft]{hi,lo} direction.
2080         (usage): Pass program name to fprintf.
2081         (main): Remove unused variable this_option_optind.  Change
2082         ``*loptarg++'' to ``loptarg++''.
2083         (my_strtoul): Parenthesize && within ||.
2084         * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
2085         (simulate): If PC is odd, fetch a 16 bit instruction, and
2086         increment PC by 2 rather than 4.
2087         * configure.in: Add case for mips16*-*-*.
2088         * configure: Rebuild.
2089
2090 Fri Nov 22 08:49:36 1996  Mark Alexander  <marka@cygnus.com>
2091
2092         * interp.c: Allow -t to enable tracing in standalone simulator.
2093         Fix garbage output in trace file and error messages.
2094
2095 Wed Nov 20 01:54:37 1996  Doug Evans  <dje@canuck.cygnus.com>
2096
2097         * Makefile.in: Delete stuff moved to ../common/Make-common.in.
2098         (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
2099         * configure.in: Simplify using macros in ../common/aclocal.m4.
2100         * configure: Regenerated.
2101         * tconfig.in: New file.
2102
2103 Tue Nov 12 13:34:00 1996  Dawn Perchik  <dawn@cygnus.com>
2104
2105         * interp.c: Fix bugs in 64-bit port.
2106         Use ansi function declarations for msvc compiler.
2107         Initialize and test file pointer in trace code.
2108         Prevent duplicate definition of LAST_EMED_REGNUM.
2109
2110 Tue Oct 15 11:07:06 1996  Mark Alexander  <marka@cygnus.com>
2111
2112         * interp.c (xfer_big_long): Prevent unwanted sign extension.
2113
2114 Thu Sep 26 17:35:00 1996  James G. Smith  <jsmith@cygnus.co.uk>
2115
2116         * interp.c (SignalException): Check for explicit terminating
2117         breakpoint value.
2118         * gencode.c: Pass instruction value through SignalException()
2119         calls for Trap, Breakpoint and Syscall.
2120
2121 Thu Sep 26 11:35:17 1996  James G. Smith  <jsmith@cygnus.co.uk>
2122
2123         * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
2124         only used on those hosts that provide it.
2125         * configure.in: Add sqrt() to list of functions to be checked for.
2126         * config.in: Re-generated.
2127         * configure: Re-generated.
2128
2129 Fri Sep 20 15:47:12 1996  Ian Lance Taylor  <ian@cygnus.com>
2130
2131         * gencode.c (process_instructions): Call build_endian_shift when
2132         expanding STORE RIGHT, to fix swr.
2133         * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
2134         clear the high bits.
2135         * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
2136         Fix float to int conversions to produce signed values.
2137
2138 Thu Sep 19 15:34:17 1996  Ian Lance Taylor  <ian@cygnus.com>
2139
2140         * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
2141         (process_instructions): Correct handling of nor instruction.
2142         Correct shift count for 32 bit shift instructions. Correct sign
2143         extension for arithmetic shifts to not shift the number of bits in
2144         the type.  Fix 64 bit multiply high word calculation.  Fix 32 bit
2145         unsigned multiply.  Fix ldxc1 and friends to use coprocessor 1.
2146         Fix madd.
2147         * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
2148         It's OK to have a mult follow a mult.  What's not OK is to have a
2149         mult follow an mfhi.
2150         (Convert): Comment out incorrect rounding code.
2151
2152 Mon Sep 16 11:38:16 1996  James G. Smith  <jsmith@cygnus.co.uk>
2153
2154         * interp.c (sim_monitor): Improved monitor printf
2155         simulation. Tidied up simulator warnings, and added "--log" option
2156         for directing warning message output.
2157         * gencode.c: Use sim_warning() rather than WARNING macro.
2158
2159 Thu Aug 22 15:03:12 1996  Ian Lance Taylor  <ian@cygnus.com>
2160
2161         * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
2162         getopt1.o, rather than on gencode.c.  Link objects together.
2163         Don't link against -liberty.
2164         (gencode.o, getopt.o, getopt1.o): New targets.
2165         * gencode.c: Include <ctype.h> and "ansidecl.h".
2166         (AND): Undefine after including "ansidecl.h".
2167         (ULONG_MAX): Define if not defined.
2168         (OP_*): Don't define macros; now defined in opcode/mips.h.
2169         (main): Call my_strtoul rather than strtoul.
2170         (my_strtoul): New static function.
2171
2172 Wed Jul 17 18:12:38 1996  Stu Grossman  (grossman@critters.cygnus.com)
2173
2174         * gencode.c (process_instructions):  Generate word64 and uword64
2175         instead of `long long' and `unsigned long long' data types.
2176         * interp.c:  #include sysdep.h to get signals, and define default
2177         for SIGBUS.
2178         * (Convert):  Work around for Visual-C++ compiler bug with type
2179         conversion.
2180         * support.h:  Make things compile under Visual-C++ by using
2181         __int64 instead of `long long'.  Change many refs to long long
2182         into word64/uword64 typedefs.
2183
2184 Wed Jun 26 12:24:55 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
2185
2186         * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2187         INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2188         (docdir): Removed.
2189         * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2190         (AC_PROG_INSTALL): Added.
2191         (AC_PROG_CC): Moved to before configure.host call.
2192         * configure: Rebuilt.
2193         
2194 Wed Jun  5 08:28:13 1996  James G. Smith  <jsmith@cygnus.co.uk>
2195
2196         * configure.in: Define @SIMCONF@ depending on mips target.
2197         * configure: Rebuild.
2198         * Makefile.in (run): Add @SIMCONF@ to control simulator
2199         construction.
2200         * gencode.c: Change LOADDRMASK to 64bit memory model only.
2201         * interp.c: Remove some debugging, provide more detailed error
2202         messages, update memory accesses to use LOADDRMASK.
2203         
2204 Mon Jun  3 11:55:03 1996  Ian Lance Taylor  <ian@cygnus.com>
2205
2206         * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
2207         AC_CHECK_LIB, and AC_CHECK_FUNCS.  Change AC_OUTPUT to set
2208         stamp-h.
2209         * configure: Rebuild.
2210         * config.in: New file, generated by autoheader.
2211         * interp.c: Include "config.h".  Include <stdlib.h>, <string.h>,
2212         and <strings.h> if they exist.  Replace #ifdef sun with #ifdef
2213         HAVE_ANINT and HAVE_AINT, as appropriate.
2214         * Makefile.in (run): Use @LIBS@ rather than -lm.
2215         (interp.o): Depend upon config.h.
2216         (Makefile): Just rebuild Makefile.
2217         (clean): Remove stamp-h.
2218         (mostlyclean): Make the same as clean, not as distclean.
2219         (config.h, stamp-h): New targets.
2220
2221 Fri May 10 00:41:17 1996  James G. Smith  <jsmith@cygnus.co.uk>
2222
2223         * interp.c (ColdReset): Fix boolean test. Make all simulator
2224         globals static.
2225
2226 Wed May  8 15:12:58 1996  James G. Smith  <jsmith@cygnus.co.uk>
2227
2228         * interp.c (xfer_direct_word, xfer_direct_long,
2229         swap_direct_word, swap_direct_long, xfer_big_word,
2230         xfer_big_long, xfer_little_word, xfer_little_long,
2231         swap_word,swap_long): Added.
2232         * interp.c (ColdReset): Provide function indirection to
2233         host<->simulated_target transfer routines.
2234         * interp.c (sim_store_register, sim_fetch_register): Updated to
2235         make use of indirected transfer routines.
2236
2237 Fri Apr 19 15:48:24 1996  James G. Smith  <jsmith@cygnus.co.uk>
2238
2239         * gencode.c (process_instructions): Ensure FP ABS instruction
2240         recognised.
2241         * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
2242         system call support.
2243
2244 Wed Apr 10 09:51:38 1996  James G. Smith  <jsmith@cygnus.co.uk>
2245
2246         * interp.c (sim_do_command): Complain if callback structure not
2247         initialised.
2248
2249 Thu Mar 28 13:50:51 1996  James G. Smith  <jsmith@cygnus.co.uk>
2250
2251         * interp.c (Convert): Provide round-to-nearest and round-to-zero
2252         support for Sun hosts.
2253         * Makefile.in (gencode): Ensure the host compiler and libraries
2254         used for cross-hosted build.
2255
2256 Wed Mar 27 14:42:12 1996  James G. Smith  <jsmith@cygnus.co.uk>
2257
2258         * interp.c, gencode.c: Some more (TODO) tidying.
2259
2260 Thu Mar  7 11:19:33 1996  James G. Smith  <jsmith@cygnus.co.uk>
2261
2262         * gencode.c, interp.c: Replaced explicit long long references with
2263         WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
2264         * support.h (SET64LO, SET64HI): Macros added.
2265
2266 Wed Feb 21 12:16:21 1996  Ian Lance Taylor  <ian@cygnus.com>
2267
2268         * configure: Regenerate with autoconf 2.7.
2269
2270 Tue Jan 30 08:48:18 1996  Fred Fish  <fnf@cygnus.com>
2271
2272         * interp.c (LoadMemory): Enclose text following #endif in /* */.
2273         * support.h: Remove superfluous "1" from #if.
2274         * support.h (CHECKSIM): Remove stray 'a' at end of line.
2275
2276 Mon Dec  4 11:44:40 1995  Jamie Smith  <jsmith@cygnus.com>
2277
2278         * interp.c (StoreFPR): Control UndefinedResult() call on
2279         WARN_RESULT manifest.
2280
2281 Fri Dec  1 16:37:19 1995  James G. Smith  <jsmith@cygnus.co.uk>
2282
2283         * gencode.c: Tidied instruction decoding, and added FP instruction
2284         support.
2285
2286         * interp.c: Added dineroIII, and BSD profiling support. Also
2287         run-time FP handling.
2288
2289 Sun Oct 22 00:57:18 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
2290
2291         * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
2292         gencode.c, interp.c, support.h: created.